AWS SDK for C++  1.8.152
AWS SDK for C++
PullRequestMergedStateChangedEventMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
46 
50  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
51 
55  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
56 
60  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
61 
65  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
66 
70  inline PullRequestMergedStateChangedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
71 
75  inline PullRequestMergedStateChangedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
76 
80  inline PullRequestMergedStateChangedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
81 
82 
86  inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; }
87 
91  inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
92 
96  inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; }
97 
101  inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); }
102 
106  inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); }
107 
111  inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(const Aws::String& value) { SetDestinationReference(value); return *this;}
112 
116  inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;}
117 
121  inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;}
122 
123 
127  inline const MergeMetadata& GetMergeMetadata() const{ return m_mergeMetadata; }
128 
132  inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; }
133 
137  inline void SetMergeMetadata(const MergeMetadata& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = value; }
138 
142  inline void SetMergeMetadata(MergeMetadata&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::move(value); }
143 
147  inline PullRequestMergedStateChangedEventMetadata& WithMergeMetadata(const MergeMetadata& value) { SetMergeMetadata(value); return *this;}
148 
152  inline PullRequestMergedStateChangedEventMetadata& WithMergeMetadata(MergeMetadata&& value) { SetMergeMetadata(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_repositoryName;
157  bool m_repositoryNameHasBeenSet;
158 
159  Aws::String m_destinationReference;
160  bool m_destinationReferenceHasBeenSet;
161 
162  MergeMetadata m_mergeMetadata;
163  bool m_mergeMetadataHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace CodeCommit
168 } // namespace Aws
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetDestinationReference
void SetDestinationReference(Aws::String &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:101
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetMergeMetadata
void SetMergeMetadata(MergeMetadata &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:142
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithDestinationReference
PullRequestMergedStateChangedEventMetadata & WithDestinationReference(const char *value)
Definition: PullRequestMergedStateChangedEventMetadata.h:121
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::GetMergeMetadata
const MergeMetadata & GetMergeMetadata() const
Definition: PullRequestMergedStateChangedEventMetadata.h:127
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PullRequestMergedStateChangedEventMetadata.h:65
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetMergeMetadata
void SetMergeMetadata(const MergeMetadata &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:137
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::GetDestinationReference
const Aws::String & GetDestinationReference() const
Definition: PullRequestMergedStateChangedEventMetadata.h:86
MergeMetadata.h
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::operator=
PullRequestMergedStateChangedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:60
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PullRequestMergedStateChangedEventMetadata.h:45
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithRepositoryName
PullRequestMergedStateChangedEventMetadata & WithRepositoryName(const Aws::String &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:70
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetDestinationReference
void SetDestinationReference(const Aws::String &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:96
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithRepositoryName
PullRequestMergedStateChangedEventMetadata & WithRepositoryName(const char *value)
Definition: PullRequestMergedStateChangedEventMetadata.h:80
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithMergeMetadata
PullRequestMergedStateChangedEventMetadata & WithMergeMetadata(const MergeMetadata &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:147
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::PullRequestMergedStateChangedEventMetadata
PullRequestMergedStateChangedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::MergeMetadataHasBeenSet
bool MergeMetadataHasBeenSet() const
Definition: PullRequestMergedStateChangedEventMetadata.h:132
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::CodeCommit::Model::MergeMetadata
Definition: MergeMetadata.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithMergeMetadata
PullRequestMergedStateChangedEventMetadata & WithMergeMetadata(MergeMetadata &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:152
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:55
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PullRequestMergedStateChangedEventMetadata.h:50
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithRepositoryName
PullRequestMergedStateChangedEventMetadata & WithRepositoryName(Aws::String &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:75
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::PullRequestMergedStateChangedEventMetadata
PullRequestMergedStateChangedEventMetadata()
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata
Definition: PullRequestMergedStateChangedEventMetadata.h:34
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::DestinationReferenceHasBeenSet
bool DestinationReferenceHasBeenSet() const
Definition: PullRequestMergedStateChangedEventMetadata.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithDestinationReference
PullRequestMergedStateChangedEventMetadata & WithDestinationReference(Aws::String &&value)
Definition: PullRequestMergedStateChangedEventMetadata.h:116
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::SetDestinationReference
void SetDestinationReference(const char *value)
Definition: PullRequestMergedStateChangedEventMetadata.h:106
Aws::CodeCommit::Model::PullRequestMergedStateChangedEventMetadata::WithDestinationReference
PullRequestMergedStateChangedEventMetadata & WithDestinationReference(const Aws::String &value)
Definition: PullRequestMergedStateChangedEventMetadata.h:111