AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline RepositoryTrigger& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline RepositoryTrigger& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline RepositoryTrigger& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
66 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
67 inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
68 inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
69 inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
70 inline RepositoryTrigger& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
71 inline RepositoryTrigger& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
72 inline RepositoryTrigger& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
74
76
80 inline const Aws::String& GetCustomData() const{ return m_customData; }
81 inline bool CustomDataHasBeenSet() const { return m_customDataHasBeenSet; }
82 inline void SetCustomData(const Aws::String& value) { m_customDataHasBeenSet = true; m_customData = value; }
83 inline void SetCustomData(Aws::String&& value) { m_customDataHasBeenSet = true; m_customData = std::move(value); }
84 inline void SetCustomData(const char* value) { m_customDataHasBeenSet = true; m_customData.assign(value); }
85 inline RepositoryTrigger& WithCustomData(const Aws::String& value) { SetCustomData(value); return *this;}
86 inline RepositoryTrigger& WithCustomData(Aws::String&& value) { SetCustomData(std::move(value)); return *this;}
87 inline RepositoryTrigger& WithCustomData(const char* value) { SetCustomData(value); return *this;}
89
91
96 inline const Aws::Vector<Aws::String>& GetBranches() const{ return m_branches; }
97 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
98 inline void SetBranches(const Aws::Vector<Aws::String>& value) { m_branchesHasBeenSet = true; m_branches = value; }
99 inline void SetBranches(Aws::Vector<Aws::String>&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); }
100 inline RepositoryTrigger& WithBranches(const Aws::Vector<Aws::String>& value) { SetBranches(value); return *this;}
101 inline RepositoryTrigger& WithBranches(Aws::Vector<Aws::String>&& value) { SetBranches(std::move(value)); return *this;}
102 inline RepositoryTrigger& AddBranches(const Aws::String& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
103 inline RepositoryTrigger& AddBranches(Aws::String&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; }
104 inline RepositoryTrigger& AddBranches(const char* value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
106
108
113 inline const Aws::Vector<RepositoryTriggerEventEnum>& GetEvents() const{ return m_events; }
114 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
115 inline void SetEvents(const Aws::Vector<RepositoryTriggerEventEnum>& value) { m_eventsHasBeenSet = true; m_events = value; }
116 inline void SetEvents(Aws::Vector<RepositoryTriggerEventEnum>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
118 inline RepositoryTrigger& WithEvents(Aws::Vector<RepositoryTriggerEventEnum>&& value) { SetEvents(std::move(value)); return *this;}
119 inline RepositoryTrigger& AddEvents(const RepositoryTriggerEventEnum& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
120 inline RepositoryTrigger& AddEvents(RepositoryTriggerEventEnum&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_destinationArn;
128 bool m_destinationArnHasBeenSet = false;
129
130 Aws::String m_customData;
131 bool m_customDataHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_branches;
134 bool m_branchesHasBeenSet = false;
135
137 bool m_eventsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CodeCommit
142} // namespace Aws
RepositoryTrigger & WithCustomData(Aws::String &&value)
void SetEvents(Aws::Vector< RepositoryTriggerEventEnum > &&value)
RepositoryTrigger & AddBranches(const Aws::String &value)
RepositoryTrigger & AddBranches(Aws::String &&value)
void SetName(const Aws::String &value)
RepositoryTrigger & AddBranches(const char *value)
RepositoryTrigger & WithName(const Aws::String &value)
void SetBranches(Aws::Vector< Aws::String > &&value)
RepositoryTrigger & WithCustomData(const Aws::String &value)
RepositoryTrigger & WithEvents(const Aws::Vector< RepositoryTriggerEventEnum > &value)
void SetCustomData(const Aws::String &value)
RepositoryTrigger & WithName(Aws::String &&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
RepositoryTrigger & AddEvents(RepositoryTriggerEventEnum &&value)
const Aws::Vector< Aws::String > & GetBranches() const
void SetDestinationArn(const Aws::String &value)
RepositoryTrigger & WithBranches(const Aws::Vector< Aws::String > &value)
const Aws::String & GetCustomData() const
RepositoryTrigger & WithDestinationArn(const Aws::String &value)
const Aws::Vector< RepositoryTriggerEventEnum > & GetEvents() const
const Aws::String & GetDestinationArn() const
void SetEvents(const Aws::Vector< RepositoryTriggerEventEnum > &value)
RepositoryTrigger & WithName(const char *value)
RepositoryTrigger & AddEvents(const RepositoryTriggerEventEnum &value)
void SetBranches(const Aws::Vector< Aws::String > &value)
RepositoryTrigger & WithEvents(Aws::Vector< RepositoryTriggerEventEnum > &&value)
RepositoryTrigger & WithDestinationArn(Aws::String &&value)
RepositoryTrigger & WithCustomData(const char *value)
RepositoryTrigger & WithDestinationArn(const char *value)
RepositoryTrigger & WithBranches(Aws::Vector< Aws::String > &&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