AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
CreateTriggerRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgentRequest.h>
11#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
12#include <aws/devops-agent/model/TriggerCondition.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DevOpsAgent {
18namespace Model {
19
26 public:
27 AWS_DEVOPSAGENT_API CreateTriggerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrigger"; }
34
35 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 CreateTriggerRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
78 inline const TriggerCondition& GetCondition() const { return m_condition; }
79 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
80 template <typename ConditionT = TriggerCondition>
81 void SetCondition(ConditionT&& value) {
82 m_conditionHasBeenSet = true;
83 m_condition = std::forward<ConditionT>(value);
84 }
85 template <typename ConditionT = TriggerCondition>
86 CreateTriggerRequest& WithCondition(ConditionT&& value) {
87 SetCondition(std::forward<ConditionT>(value));
88 return *this;
89 }
91
93
96 inline Aws::Utils::DocumentView GetAction() const { return m_action; }
97 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
98 template <typename ActionT = Aws::Utils::Document>
99 void SetAction(ActionT&& value) {
100 m_actionHasBeenSet = true;
101 m_action = std::forward<ActionT>(value);
102 }
103 template <typename ActionT = Aws::Utils::Document>
105 SetAction(std::forward<ActionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 template <typename StatusT = Aws::String>
117 void SetStatus(StatusT&& value) {
118 m_statusHasBeenSet = true;
119 m_status = std::forward<StatusT>(value);
120 }
121 template <typename StatusT = Aws::String>
123 SetStatus(std::forward<StatusT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetClientToken() const { return m_clientToken; }
133 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
134 template <typename ClientTokenT = Aws::String>
135 void SetClientToken(ClientTokenT&& value) {
136 m_clientTokenHasBeenSet = true;
137 m_clientToken = std::forward<ClientTokenT>(value);
138 }
139 template <typename ClientTokenT = Aws::String>
140 CreateTriggerRequest& WithClientToken(ClientTokenT&& value) {
141 SetClientToken(std::forward<ClientTokenT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_agentSpaceId;
147
148 Aws::String m_type;
149
150 TriggerCondition m_condition;
151
152 Aws::Utils::Document m_action;
153
154 Aws::String m_status;
155
157 bool m_agentSpaceIdHasBeenSet = false;
158 bool m_typeHasBeenSet = false;
159 bool m_conditionHasBeenSet = false;
160 bool m_actionHasBeenSet = false;
161 bool m_statusHasBeenSet = false;
162 bool m_clientTokenHasBeenSet = true;
163};
164
165} // namespace Model
166} // namespace DevOpsAgent
167} // namespace Aws
CreateTriggerRequest & WithStatus(StatusT &&value)
CreateTriggerRequest & WithCondition(ConditionT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
AWS_DEVOPSAGENT_API CreateTriggerRequest()=default
CreateTriggerRequest & WithAction(ActionT &&value)
CreateTriggerRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateTriggerRequest & WithType(TypeT &&value)
virtual const char * GetServiceRequestName() const override
const TriggerCondition & GetCondition() const
CreateTriggerRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String