AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateBacklogTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgentRequest.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/Priority.h>
12#include <aws/devops-agent/model/ReferenceInput.h>
13#include <aws/devops-agent/model/TaskType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DevOpsAgent {
19namespace Model {
20
28 public:
29 AWS_DEVOPSAGENT_API CreateBacklogTaskRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateBacklogTask"; }
36
37 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
44 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
45 template <typename AgentSpaceIdT = Aws::String>
46 void SetAgentSpaceId(AgentSpaceIdT&& value) {
47 m_agentSpaceIdHasBeenSet = true;
48 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
49 }
50 template <typename AgentSpaceIdT = Aws::String>
52 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
53 return *this;
54 }
56
58
61 inline const ReferenceInput& GetReference() const { return m_reference; }
62 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
63 template <typename ReferenceT = ReferenceInput>
64 void SetReference(ReferenceT&& value) {
65 m_referenceHasBeenSet = true;
66 m_reference = std::forward<ReferenceT>(value);
67 }
68 template <typename ReferenceT = ReferenceInput>
70 SetReference(std::forward<ReferenceT>(value));
71 return *this;
72 }
74
76
79 inline TaskType GetTaskType() const { return m_taskType; }
80 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
81 inline void SetTaskType(TaskType value) {
82 m_taskTypeHasBeenSet = true;
83 m_taskType = value;
84 }
86 SetTaskType(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTitle() const { return m_title; }
96 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
97 template <typename TitleT = Aws::String>
98 void SetTitle(TitleT&& value) {
99 m_titleHasBeenSet = true;
100 m_title = std::forward<TitleT>(value);
101 }
102 template <typename TitleT = Aws::String>
104 SetTitle(std::forward<TitleT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline Priority GetPriority() const { return m_priority; }
132 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
133 inline void SetPriority(Priority value) {
134 m_priorityHasBeenSet = true;
135 m_priority = value;
136 }
138 SetPriority(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetClientToken() const { return m_clientToken; }
148 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
149 template <typename ClientTokenT = Aws::String>
150 void SetClientToken(ClientTokenT&& value) {
151 m_clientTokenHasBeenSet = true;
152 m_clientToken = std::forward<ClientTokenT>(value);
153 }
154 template <typename ClientTokenT = Aws::String>
156 SetClientToken(std::forward<ClientTokenT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_agentSpaceId;
162
163 ReferenceInput m_reference;
164
165 TaskType m_taskType{TaskType::NOT_SET};
166
167 Aws::String m_title;
168
169 Aws::String m_description;
170
171 Priority m_priority{Priority::NOT_SET};
172
174 bool m_agentSpaceIdHasBeenSet = false;
175 bool m_referenceHasBeenSet = false;
176 bool m_taskTypeHasBeenSet = false;
177 bool m_titleHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_priorityHasBeenSet = false;
180 bool m_clientTokenHasBeenSet = true;
181};
182
183} // namespace Model
184} // namespace DevOpsAgent
185} // namespace Aws
CreateBacklogTaskRequest & WithReference(ReferenceT &&value)
virtual const char * GetServiceRequestName() const override
CreateBacklogTaskRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateBacklogTaskRequest & WithPriority(Priority value)
CreateBacklogTaskRequest & WithClientToken(ClientTokenT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
CreateBacklogTaskRequest & WithTitle(TitleT &&value)
AWS_DEVOPSAGENT_API CreateBacklogTaskRequest()=default
CreateBacklogTaskRequest & WithDescription(DescriptionT &&value)
CreateBacklogTaskRequest & WithTaskType(TaskType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String