AWS SDK for C++  1.8.152
AWS SDK for C++
PullRequestCreatedEventMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
54  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
55 
59  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
60 
64  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 
69  inline PullRequestCreatedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 
74  inline PullRequestCreatedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
75 
79  inline PullRequestCreatedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
80 
81 
86  inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
87 
92  inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; }
93 
98  inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = value; }
99 
104  inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::move(value); }
105 
110  inline void SetSourceCommitId(const char* value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId.assign(value); }
111 
116  inline PullRequestCreatedEventMetadata& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
117 
122  inline PullRequestCreatedEventMetadata& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
123 
128  inline PullRequestCreatedEventMetadata& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
129 
130 
135  inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
136 
141  inline bool DestinationCommitIdHasBeenSet() const { return m_destinationCommitIdHasBeenSet; }
142 
147  inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = value; }
148 
153  inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = std::move(value); }
154 
159  inline void SetDestinationCommitId(const char* value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId.assign(value); }
160 
165  inline PullRequestCreatedEventMetadata& WithDestinationCommitId(const Aws::String& value) { SetDestinationCommitId(value); return *this;}
166 
171  inline PullRequestCreatedEventMetadata& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;}
172 
177  inline PullRequestCreatedEventMetadata& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
178 
179 
184  inline const Aws::String& GetMergeBase() const{ return m_mergeBase; }
185 
190  inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
191 
196  inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; }
197 
202  inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); }
203 
208  inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); }
209 
214  inline PullRequestCreatedEventMetadata& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;}
215 
220  inline PullRequestCreatedEventMetadata& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;}
221 
226  inline PullRequestCreatedEventMetadata& WithMergeBase(const char* value) { SetMergeBase(value); return *this;}
227 
228  private:
229 
230  Aws::String m_repositoryName;
231  bool m_repositoryNameHasBeenSet;
232 
233  Aws::String m_sourceCommitId;
234  bool m_sourceCommitIdHasBeenSet;
235 
236  Aws::String m_destinationCommitId;
237  bool m_destinationCommitIdHasBeenSet;
238 
239  Aws::String m_mergeBase;
240  bool m_mergeBaseHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace CodeCommit
245 } // namespace Aws
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::PullRequestCreatedEventMetadata
PullRequestCreatedEventMetadata()
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithRepositoryName
PullRequestCreatedEventMetadata & WithRepositoryName(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:69
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:54
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetMergeBase
void SetMergeBase(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:202
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetMergeBase
void SetMergeBase(const char *value)
Definition: PullRequestCreatedEventMetadata.h:208
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::DestinationCommitIdHasBeenSet
bool DestinationCommitIdHasBeenSet() const
Definition: PullRequestCreatedEventMetadata.h:141
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithRepositoryName
PullRequestCreatedEventMetadata & WithRepositoryName(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:74
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetDestinationCommitId
void SetDestinationCommitId(const char *value)
Definition: PullRequestCreatedEventMetadata.h:159
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetDestinationCommitId
void SetDestinationCommitId(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:153
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetMergeBase
void SetMergeBase(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:196
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithSourceCommitId
PullRequestCreatedEventMetadata & WithSourceCommitId(const char *value)
Definition: PullRequestCreatedEventMetadata.h:128
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithDestinationCommitId
PullRequestCreatedEventMetadata & WithDestinationCommitId(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:165
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PullRequestCreatedEventMetadata.h:44
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithMergeBase
PullRequestCreatedEventMetadata & WithMergeBase(const char *value)
Definition: PullRequestCreatedEventMetadata.h:226
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithMergeBase
PullRequestCreatedEventMetadata & WithMergeBase(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:214
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithSourceCommitId
PullRequestCreatedEventMetadata & WithSourceCommitId(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:122
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetSourceCommitId
void SetSourceCommitId(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:98
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SourceCommitIdHasBeenSet
bool SourceCommitIdHasBeenSet() const
Definition: PullRequestCreatedEventMetadata.h:92
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetSourceCommitId
void SetSourceCommitId(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:104
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:59
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetSourceCommitId
void SetSourceCommitId(const char *value)
Definition: PullRequestCreatedEventMetadata.h:110
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetDestinationCommitId
void SetDestinationCommitId(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:147
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::PullRequestCreatedEventMetadata
PullRequestCreatedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithDestinationCommitId
PullRequestCreatedEventMetadata & WithDestinationCommitId(const char *value)
Definition: PullRequestCreatedEventMetadata.h:177
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::operator=
PullRequestCreatedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithMergeBase
PullRequestCreatedEventMetadata & WithMergeBase(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:220
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::GetSourceCommitId
const Aws::String & GetSourceCommitId() const
Definition: PullRequestCreatedEventMetadata.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::GetMergeBase
const Aws::String & GetMergeBase() const
Definition: PullRequestCreatedEventMetadata.h:184
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PullRequestCreatedEventMetadata.h:49
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithRepositoryName
PullRequestCreatedEventMetadata & WithRepositoryName(const char *value)
Definition: PullRequestCreatedEventMetadata.h:79
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::GetDestinationCommitId
const Aws::String & GetDestinationCommitId() const
Definition: PullRequestCreatedEventMetadata.h:135
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata
Definition: PullRequestCreatedEventMetadata.h:33
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithDestinationCommitId
PullRequestCreatedEventMetadata & WithDestinationCommitId(Aws::String &&value)
Definition: PullRequestCreatedEventMetadata.h:171
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PullRequestCreatedEventMetadata.h:64
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::WithSourceCommitId
PullRequestCreatedEventMetadata & WithSourceCommitId(const Aws::String &value)
Definition: PullRequestCreatedEventMetadata.h:116
Aws::CodeCommit::Model::PullRequestCreatedEventMetadata::MergeBaseHasBeenSet
bool MergeBaseHasBeenSet() const
Definition: PullRequestCreatedEventMetadata.h:190