7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codecommit/model/RepositoryTriggerEventEnum.h>
52 template<
typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
54 template<
typename NameT = Aws::String>
65 template<
typename DestinationArnT = Aws::String>
66 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet =
true; m_destinationArn = std::forward<DestinationArnT>(value); }
67 template<
typename DestinationArnT = Aws::String>
78 template<
typename CustomDataT = Aws::String>
79 void SetCustomData(CustomDataT&& value) { m_customDataHasBeenSet =
true; m_customData = std::forward<CustomDataT>(value); }
80 template<
typename CustomDataT = Aws::String>
92 template<
typename BranchesT = Aws::Vector<Aws::String>>
93 void SetBranches(BranchesT&& value) { m_branchesHasBeenSet =
true; m_branches = std::forward<BranchesT>(value); }
94 template<
typename BranchesT = Aws::Vector<Aws::String>>
96 template<
typename BranchesT = Aws::String>
97 RepositoryTrigger&
AddBranches(BranchesT&& value) { m_branchesHasBeenSet =
true; m_branches.emplace_back(std::forward<BranchesT>(value));
return *
this; }
108 template<
typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
109 void SetEvents(EventsT&& value) { m_eventsHasBeenSet =
true; m_events = std::forward<EventsT>(value); }
110 template<
typename EventsT = Aws::Vector<RepositoryTriggerEventEnum>>
117 bool m_nameHasBeenSet =
false;
120 bool m_destinationArnHasBeenSet =
false;
123 bool m_customDataHasBeenSet =
false;
126 bool m_branchesHasBeenSet =
false;
129 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