AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DeploymentGitSource.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyGen3 {
20namespace Model {
21
28 public:
29 AWS_AMPLIFYGEN3_API DeploymentGitSource() = default;
30 AWS_AMPLIFYGEN3_API DeploymentGitSource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetGitRef() const { return m_gitRef; }
39 inline bool GitRefHasBeenSet() const { return m_gitRefHasBeenSet; }
40 template <typename GitRefT = Aws::String>
41 void SetGitRef(GitRefT&& value) {
42 m_gitRefHasBeenSet = true;
43 m_gitRef = std::forward<GitRefT>(value);
44 }
45 template <typename GitRefT = Aws::String>
46 DeploymentGitSource& WithGitRef(GitRefT&& value) {
47 SetGitRef(std::forward<GitRefT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRepositoryUrl() const { return m_repositoryUrl; }
57 inline bool RepositoryUrlHasBeenSet() const { return m_repositoryUrlHasBeenSet; }
58 template <typename RepositoryUrlT = Aws::String>
59 void SetRepositoryUrl(RepositoryUrlT&& value) {
60 m_repositoryUrlHasBeenSet = true;
61 m_repositoryUrl = std::forward<RepositoryUrlT>(value);
62 }
63 template <typename RepositoryUrlT = Aws::String>
64 DeploymentGitSource& WithRepositoryUrl(RepositoryUrlT&& value) {
65 SetRepositoryUrl(std::forward<RepositoryUrlT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCommitId() const { return m_commitId; }
75 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
76 template <typename CommitIdT = Aws::String>
77 void SetCommitId(CommitIdT&& value) {
78 m_commitIdHasBeenSet = true;
79 m_commitId = std::forward<CommitIdT>(value);
80 }
81 template <typename CommitIdT = Aws::String>
82 DeploymentGitSource& WithCommitId(CommitIdT&& value) {
83 SetCommitId(std::forward<CommitIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
93 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
94 template <typename CommitMessageT = Aws::String>
95 void SetCommitMessage(CommitMessageT&& value) {
96 m_commitMessageHasBeenSet = true;
97 m_commitMessage = std::forward<CommitMessageT>(value);
98 }
99 template <typename CommitMessageT = Aws::String>
100 DeploymentGitSource& WithCommitMessage(CommitMessageT&& value) {
101 SetCommitMessage(std::forward<CommitMessageT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetAuthor() const { return m_author; }
111 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
112 template <typename AuthorT = Aws::String>
113 void SetAuthor(AuthorT&& value) {
114 m_authorHasBeenSet = true;
115 m_author = std::forward<AuthorT>(value);
116 }
117 template <typename AuthorT = Aws::String>
118 DeploymentGitSource& WithAuthor(AuthorT&& value) {
119 SetAuthor(std::forward<AuthorT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_gitRef;
125
126 Aws::String m_repositoryUrl;
127
128 Aws::String m_commitId;
129
130 Aws::String m_commitMessage;
131
132 Aws::String m_author;
133 bool m_gitRefHasBeenSet = false;
134 bool m_repositoryUrlHasBeenSet = false;
135 bool m_commitIdHasBeenSet = false;
136 bool m_commitMessageHasBeenSet = false;
137 bool m_authorHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace AmplifyGen3
142} // namespace Aws
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentGitSource & WithGitRef(GitRefT &&value)
AWS_AMPLIFYGEN3_API DeploymentGitSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentGitSource & WithCommitId(CommitIdT &&value)
DeploymentGitSource & WithRepositoryUrl(RepositoryUrlT &&value)
DeploymentGitSource & WithCommitMessage(CommitMessageT &&value)
AWS_AMPLIFYGEN3_API DeploymentGitSource(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API DeploymentGitSource()=default
DeploymentGitSource & WithAuthor(AuthorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue