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>
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
65 template <
typename DestinationArnT = Aws::String>
67 m_destinationArnHasBeenSet =
true;
68 m_destinationArn = std::forward<DestinationArnT>(value);
70 template <
typename DestinationArnT = Aws::String>
84 template <
typename CustomDataT = Aws::String>
86 m_customDataHasBeenSet =
true;
87 m_customData = std::forward<CustomDataT>(value);
89 template <
typename CustomDataT = Aws::String>
104 template <
typename BranchesT = Aws::Vector<Aws::String>>
106 m_branchesHasBeenSet =
true;
107 m_branches = std::forward<BranchesT>(value);
109 template <
typename BranchesT = Aws::Vector<Aws::String>>
114 template <
typename BranchesT = Aws::String>
116 m_branchesHasBeenSet =
true;
117 m_branches.emplace_back(std::forward<BranchesT>(value));
130 template <
typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
132 m_eventsHasBeenSet =
true;
133 m_events = std::forward<EventsT>(value);
135 template <
typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
141 m_eventsHasBeenSet =
true;
142 m_events.push_back(value);
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;
void SetEvents(EventsT &&value)
void SetCustomData(CustomDataT &&value)
bool DestinationArnHasBeenSet() const
const Aws::String & GetName() const
void SetDestinationArn(DestinationArnT &&value)
AWS_CODECOMMIT_API RepositoryTrigger()=default
RepositoryTrigger & AddBranches(BranchesT &&value)
bool EventsHasBeenSet() const
bool CustomDataHasBeenSet() const
bool NameHasBeenSet() const
RepositoryTrigger & WithBranches(BranchesT &&value)
AWS_CODECOMMIT_API RepositoryTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API RepositoryTrigger(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBranches(BranchesT &&value)
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
bool BranchesHasBeenSet() const
RepositoryTrigger & AddEvents(RepositoryTriggerEventEnum value)
RepositoryTrigger & WithName(NameT &&value)
RepositoryTriggerEventEnum
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue