AWS SDK for C++  1.8.152
AWS SDK for C++
RepositoryTrigger.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace CodeCommit
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline RepositoryTrigger& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline RepositoryTrigger& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline RepositoryTrigger& WithName(const char* value) { SetName(value); return *this;}
81 
82 
87  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
88 
93  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
94 
99  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
100 
105  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
106 
111  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
112 
117  inline RepositoryTrigger& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
118 
123  inline RepositoryTrigger& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
124 
129  inline RepositoryTrigger& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
130 
131 
136  inline const Aws::String& GetCustomData() const{ return m_customData; }
137 
142  inline bool CustomDataHasBeenSet() const { return m_customDataHasBeenSet; }
143 
148  inline void SetCustomData(const Aws::String& value) { m_customDataHasBeenSet = true; m_customData = value; }
149 
154  inline void SetCustomData(Aws::String&& value) { m_customDataHasBeenSet = true; m_customData = std::move(value); }
155 
160  inline void SetCustomData(const char* value) { m_customDataHasBeenSet = true; m_customData.assign(value); }
161 
166  inline RepositoryTrigger& WithCustomData(const Aws::String& value) { SetCustomData(value); return *this;}
167 
172  inline RepositoryTrigger& WithCustomData(Aws::String&& value) { SetCustomData(std::move(value)); return *this;}
173 
178  inline RepositoryTrigger& WithCustomData(const char* value) { SetCustomData(value); return *this;}
179 
180 
186  inline const Aws::Vector<Aws::String>& GetBranches() const{ return m_branches; }
187 
193  inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
194 
200  inline void SetBranches(const Aws::Vector<Aws::String>& value) { m_branchesHasBeenSet = true; m_branches = value; }
201 
207  inline void SetBranches(Aws::Vector<Aws::String>&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); }
208 
214  inline RepositoryTrigger& WithBranches(const Aws::Vector<Aws::String>& value) { SetBranches(value); return *this;}
215 
221  inline RepositoryTrigger& WithBranches(Aws::Vector<Aws::String>&& value) { SetBranches(std::move(value)); return *this;}
222 
228  inline RepositoryTrigger& AddBranches(const Aws::String& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
229 
235  inline RepositoryTrigger& AddBranches(Aws::String&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; }
236 
242  inline RepositoryTrigger& AddBranches(const char* value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
243 
244 
250  inline const Aws::Vector<RepositoryTriggerEventEnum>& GetEvents() const{ return m_events; }
251 
257  inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
258 
264  inline void SetEvents(const Aws::Vector<RepositoryTriggerEventEnum>& value) { m_eventsHasBeenSet = true; m_events = value; }
265 
271  inline void SetEvents(Aws::Vector<RepositoryTriggerEventEnum>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
272 
278  inline RepositoryTrigger& WithEvents(const Aws::Vector<RepositoryTriggerEventEnum>& value) { SetEvents(value); return *this;}
279 
285  inline RepositoryTrigger& WithEvents(Aws::Vector<RepositoryTriggerEventEnum>&& value) { SetEvents(std::move(value)); return *this;}
286 
292  inline RepositoryTrigger& AddEvents(const RepositoryTriggerEventEnum& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
293 
299  inline RepositoryTrigger& AddEvents(RepositoryTriggerEventEnum&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
300 
301  private:
302 
303  Aws::String m_name;
304  bool m_nameHasBeenSet;
305 
306  Aws::String m_destinationArn;
307  bool m_destinationArnHasBeenSet;
308 
309  Aws::String m_customData;
310  bool m_customDataHasBeenSet;
311 
312  Aws::Vector<Aws::String> m_branches;
313  bool m_branchesHasBeenSet;
314 
316  bool m_eventsHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace CodeCommit
321 } // namespace Aws
Aws::CodeCommit::Model::RepositoryTrigger::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: RepositoryTrigger.h:257
Aws::CodeCommit::Model::RepositoryTrigger::AddBranches
RepositoryTrigger & AddBranches(const char *value)
Definition: RepositoryTrigger.h:242
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::RepositoryTrigger::WithName
RepositoryTrigger & WithName(const Aws::String &value)
Definition: RepositoryTrigger.h:70
Aws::CodeCommit::Model::RepositoryTrigger::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: RepositoryTrigger.h:99
Aws::CodeCommit::Model::RepositoryTrigger::SetCustomData
void SetCustomData(const Aws::String &value)
Definition: RepositoryTrigger.h:148
Aws::CodeCommit::Model::RepositoryTrigger::SetName
void SetName(Aws::String &&value)
Definition: RepositoryTrigger.h:60
Aws::CodeCommit::Model::RepositoryTrigger::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: RepositoryTrigger.h:111
Aws::CodeCommit::Model::RepositoryTrigger::GetBranches
const Aws::Vector< Aws::String > & GetBranches() const
Definition: RepositoryTrigger.h:186
Aws::CodeCommit::Model::RepositoryTrigger::WithBranches
RepositoryTrigger & WithBranches(Aws::Vector< Aws::String > &&value)
Definition: RepositoryTrigger.h:221
Aws::CodeCommit::Model::RepositoryTrigger::SetCustomData
void SetCustomData(Aws::String &&value)
Definition: RepositoryTrigger.h:154
Aws::CodeCommit::Model::RepositoryTrigger::WithCustomData
RepositoryTrigger & WithCustomData(Aws::String &&value)
Definition: RepositoryTrigger.h:172
Aws::CodeCommit::Model::RepositoryTrigger::WithEvents
RepositoryTrigger & WithEvents(Aws::Vector< RepositoryTriggerEventEnum > &&value)
Definition: RepositoryTrigger.h:285
Aws::CodeCommit::Model::RepositoryTrigger::WithName
RepositoryTrigger & WithName(const char *value)
Definition: RepositoryTrigger.h:80
Aws::CodeCommit::Model::RepositoryTrigger::CustomDataHasBeenSet
bool CustomDataHasBeenSet() const
Definition: RepositoryTrigger.h:142
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::RepositoryTrigger::GetName
const Aws::String & GetName() const
Definition: RepositoryTrigger.h:45
Aws::CodeCommit::Model::RepositoryTrigger::AddBranches
RepositoryTrigger & AddBranches(const Aws::String &value)
Definition: RepositoryTrigger.h:228
Aws::CodeCommit::Model::RepositoryTrigger::RepositoryTrigger
RepositoryTrigger()
Aws::CodeCommit::Model::RepositoryTrigger::WithDestinationArn
RepositoryTrigger & WithDestinationArn(const char *value)
Definition: RepositoryTrigger.h:129
RepositoryTriggerEventEnum.h
AWSVector.h
Aws::CodeCommit::Model::RepositoryTrigger::WithCustomData
RepositoryTrigger & WithCustomData(const char *value)
Definition: RepositoryTrigger.h:178
Aws::CodeCommit::Model::RepositoryTrigger::AddEvents
RepositoryTrigger & AddEvents(const RepositoryTriggerEventEnum &value)
Definition: RepositoryTrigger.h:292
Aws::CodeCommit::Model::RepositoryTrigger::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: RepositoryTrigger.h:87
Aws::CodeCommit::Model::RepositoryTrigger::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::RepositoryTrigger::SetEvents
void SetEvents(const Aws::Vector< RepositoryTriggerEventEnum > &value)
Definition: RepositoryTrigger.h:264
Aws::CodeCommit::Model::RepositoryTrigger::WithDestinationArn
RepositoryTrigger & WithDestinationArn(const Aws::String &value)
Definition: RepositoryTrigger.h:117
Aws::CodeCommit::Model::RepositoryTrigger::SetBranches
void SetBranches(const Aws::Vector< Aws::String > &value)
Definition: RepositoryTrigger.h:200
Aws::CodeCommit::Model::RepositoryTrigger::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RepositoryTrigger.h:50
Aws::CodeCommit::Model::RepositoryTrigger::SetEvents
void SetEvents(Aws::Vector< RepositoryTriggerEventEnum > &&value)
Definition: RepositoryTrigger.h:271
Aws::CodeCommit::Model::RepositoryTrigger::WithDestinationArn
RepositoryTrigger & WithDestinationArn(Aws::String &&value)
Definition: RepositoryTrigger.h:123
Aws::CodeCommit::Model::RepositoryTrigger::GetCustomData
const Aws::String & GetCustomData() const
Definition: RepositoryTrigger.h:136
Aws::CodeCommit::Model::RepositoryTrigger::WithCustomData
RepositoryTrigger & WithCustomData(const Aws::String &value)
Definition: RepositoryTrigger.h:166
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::RepositoryTrigger::SetCustomData
void SetCustomData(const char *value)
Definition: RepositoryTrigger.h:160
Aws::CodeCommit::Model::RepositoryTrigger::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: RepositoryTrigger.h:93
Aws::CodeCommit::Model::RepositoryTrigger::SetName
void SetName(const char *value)
Definition: RepositoryTrigger.h:65
Aws::CodeCommit::Model::RepositoryTrigger::SetName
void SetName(const Aws::String &value)
Definition: RepositoryTrigger.h:55
Aws::CodeCommit::Model::RepositoryTrigger::WithName
RepositoryTrigger & WithName(Aws::String &&value)
Definition: RepositoryTrigger.h:75
Aws::CodeCommit::Model::RepositoryTrigger::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: RepositoryTrigger.h:105
Aws::CodeCommit::Model::RepositoryTrigger::operator=
RepositoryTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::RepositoryTrigger
Definition: RepositoryTrigger.h:34
Aws::CodeCommit::Model::RepositoryTrigger::RepositoryTrigger
RepositoryTrigger(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::RepositoryTriggerEventEnum
RepositoryTriggerEventEnum
Definition: RepositoryTriggerEventEnum.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::RepositoryTrigger::WithBranches
RepositoryTrigger & WithBranches(const Aws::Vector< Aws::String > &value)
Definition: RepositoryTrigger.h:214
Aws::CodeCommit::Model::RepositoryTrigger::SetBranches
void SetBranches(Aws::Vector< Aws::String > &&value)
Definition: RepositoryTrigger.h:207
Aws::CodeCommit::Model::RepositoryTrigger::GetEvents
const Aws::Vector< RepositoryTriggerEventEnum > & GetEvents() const
Definition: RepositoryTrigger.h:250
Aws::CodeCommit::Model::RepositoryTrigger::BranchesHasBeenSet
bool BranchesHasBeenSet() const
Definition: RepositoryTrigger.h:193
Aws::CodeCommit::Model::RepositoryTrigger::WithEvents
RepositoryTrigger & WithEvents(const Aws::Vector< RepositoryTriggerEventEnum > &value)
Definition: RepositoryTrigger.h:278
Aws::CodeCommit::Model::RepositoryTrigger::AddEvents
RepositoryTrigger & AddEvents(RepositoryTriggerEventEnum &&value)
Definition: RepositoryTrigger.h:299
Aws::CodeCommit::Model::RepositoryTrigger::AddBranches
RepositoryTrigger & AddBranches(Aws::String &&value)
Definition: RepositoryTrigger.h:235