AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RepositoryTrigger.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/RepositoryTriggerEventEnum.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit {
22namespace Model {
23
34 public:
35 AWS_CODECOMMIT_API RepositoryTrigger() = default;
36 AWS_CODECOMMIT_API RepositoryTrigger(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 RepositoryTrigger& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
64 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
65 template <typename DestinationArnT = Aws::String>
66 void SetDestinationArn(DestinationArnT&& value) {
67 m_destinationArnHasBeenSet = true;
68 m_destinationArn = std::forward<DestinationArnT>(value);
69 }
70 template <typename DestinationArnT = Aws::String>
71 RepositoryTrigger& WithDestinationArn(DestinationArnT&& value) {
72 SetDestinationArn(std::forward<DestinationArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetCustomData() const { return m_customData; }
83 inline bool CustomDataHasBeenSet() const { return m_customDataHasBeenSet; }
84 template <typename CustomDataT = Aws::String>
85 void SetCustomData(CustomDataT&& value) {
86 m_customDataHasBeenSet = true;
87 m_customData = std::forward<CustomDataT>(value);
88 }
89 template <typename CustomDataT = Aws::String>
90 RepositoryTrigger& WithCustomData(CustomDataT&& value) {
91 SetCustomData(std::forward<CustomDataT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Aws::String>& GetBranches() const { return m_branches; }
103 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
104 template <typename BranchesT = Aws::Vector<Aws::String>>
105 void SetBranches(BranchesT&& value) {
106 m_branchesHasBeenSet = true;
107 m_branches = std::forward<BranchesT>(value);
108 }
109 template <typename BranchesT = Aws::Vector<Aws::String>>
110 RepositoryTrigger& WithBranches(BranchesT&& value) {
111 SetBranches(std::forward<BranchesT>(value));
112 return *this;
113 }
114 template <typename BranchesT = Aws::String>
115 RepositoryTrigger& AddBranches(BranchesT&& value) {
116 m_branchesHasBeenSet = true;
117 m_branches.emplace_back(std::forward<BranchesT>(value));
118 return *this;
119 }
121
123
128 inline const Aws::Vector<RepositoryTriggerEventEnum>& GetEvents() const { return m_events; }
129 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
130 template <typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
131 void SetEvents(EventsT&& value) {
132 m_eventsHasBeenSet = true;
133 m_events = std::forward<EventsT>(value);
134 }
135 template <typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
136 RepositoryTrigger& WithEvents(EventsT&& value) {
137 SetEvents(std::forward<EventsT>(value));
138 return *this;
139 }
141 m_eventsHasBeenSet = true;
142 m_events.push_back(value);
143 return *this;
144 }
146 private:
147 Aws::String m_name;
148
149 Aws::String m_destinationArn;
150
151 Aws::String m_customData;
152
153 Aws::Vector<Aws::String> m_branches;
154
156 bool m_nameHasBeenSet = false;
157 bool m_destinationArnHasBeenSet = false;
158 bool m_customDataHasBeenSet = false;
159 bool m_branchesHasBeenSet = false;
160 bool m_eventsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CodeCommit
165} // namespace Aws
void SetDestinationArn(DestinationArnT &&value)
AWS_CODECOMMIT_API RepositoryTrigger()=default
RepositoryTrigger & AddBranches(BranchesT &&value)
RepositoryTrigger & WithBranches(BranchesT &&value)
AWS_CODECOMMIT_API RepositoryTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API RepositoryTrigger(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetBranches() const
const Aws::String & GetCustomData() const
RepositoryTrigger & WithEvents(EventsT &&value)
RepositoryTrigger & WithCustomData(CustomDataT &&value)
const Aws::Vector< RepositoryTriggerEventEnum > & GetEvents() const
RepositoryTrigger & WithDestinationArn(DestinationArnT &&value)
const Aws::String & GetDestinationArn() const
RepositoryTrigger & AddEvents(RepositoryTriggerEventEnum value)
RepositoryTrigger & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue