AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryTrigger.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_CODECOMMIT_API RepositoryTrigger() = default;
41 AWS_CODECOMMIT_API RepositoryTrigger(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
55 RepositoryTrigger& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
67 template<typename DestinationArnT = Aws::String>
68 RepositoryTrigger& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
70
72
76 inline const Aws::String& GetCustomData() const { return m_customData; }
77 inline bool CustomDataHasBeenSet() const { return m_customDataHasBeenSet; }
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>
81 RepositoryTrigger& WithCustomData(CustomDataT&& value) { SetCustomData(std::forward<CustomDataT>(value)); return *this;}
83
85
90 inline const Aws::Vector<Aws::String>& GetBranches() const { return m_branches; }
91 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
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>>
95 RepositoryTrigger& WithBranches(BranchesT&& value) { SetBranches(std::forward<BranchesT>(value)); return *this;}
96 template<typename BranchesT = Aws::String>
97 RepositoryTrigger& AddBranches(BranchesT&& value) { m_branchesHasBeenSet = true; m_branches.emplace_back(std::forward<BranchesT>(value)); return *this; }
99
101
106 inline const Aws::Vector<RepositoryTriggerEventEnum>& GetEvents() const { return m_events; }
107 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
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>>
111 RepositoryTrigger& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
112 inline RepositoryTrigger& AddEvents(RepositoryTriggerEventEnum value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_destinationArn;
120 bool m_destinationArnHasBeenSet = false;
121
122 Aws::String m_customData;
123 bool m_customDataHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_branches;
126 bool m_branchesHasBeenSet = false;
127
129 bool m_eventsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CodeCommit
134} // 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