AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateQueueEnvironmentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/DeadlineRequest.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/EnvironmentTemplateType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace deadline {
17namespace Model {
18
22 public:
23 AWS_DEADLINE_API CreateQueueEnvironmentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateQueueEnvironment"; }
30
31 AWS_DEADLINE_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFarmId() const { return m_farmId; }
59 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
60 template <typename FarmIdT = Aws::String>
61 void SetFarmId(FarmIdT&& value) {
62 m_farmIdHasBeenSet = true;
63 m_farmId = std::forward<FarmIdT>(value);
64 }
65 template <typename FarmIdT = Aws::String>
67 SetFarmId(std::forward<FarmIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetQueueId() const { return m_queueId; }
77 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
78 template <typename QueueIdT = Aws::String>
79 void SetQueueId(QueueIdT&& value) {
80 m_queueIdHasBeenSet = true;
81 m_queueId = std::forward<QueueIdT>(value);
82 }
83 template <typename QueueIdT = Aws::String>
85 SetQueueId(std::forward<QueueIdT>(value));
86 return *this;
87 }
89
91
97 inline int GetPriority() const { return m_priority; }
98 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
99 inline void SetPriority(int value) {
100 m_priorityHasBeenSet = true;
101 m_priority = value;
102 }
104 SetPriority(value);
105 return *this;
106 }
108
110
113 inline EnvironmentTemplateType GetTemplateType() const { return m_templateType; }
114 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
116 m_templateTypeHasBeenSet = true;
117 m_templateType = value;
118 }
120 SetTemplateType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetTemplate() const { return m_template; }
130 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
131 template <typename TemplateT = Aws::String>
132 void SetTemplate(TemplateT&& value) {
133 m_templateHasBeenSet = true;
134 m_template = std::forward<TemplateT>(value);
135 }
136 template <typename TemplateT = Aws::String>
138 SetTemplate(std::forward<TemplateT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_farmId;
146
147 Aws::String m_queueId;
148
149 int m_priority{0};
150
152
153 Aws::String m_template;
154 bool m_clientTokenHasBeenSet = true;
155 bool m_farmIdHasBeenSet = false;
156 bool m_queueIdHasBeenSet = false;
157 bool m_priorityHasBeenSet = false;
158 bool m_templateTypeHasBeenSet = false;
159 bool m_templateHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace deadline
164} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateQueueEnvironmentRequest & WithTemplate(TemplateT &&value)
CreateQueueEnvironmentRequest & WithTemplateType(EnvironmentTemplateType value)
AWS_DEADLINE_API CreateQueueEnvironmentRequest()=default
CreateQueueEnvironmentRequest & WithQueueId(QueueIdT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateQueueEnvironmentRequest & WithClientToken(ClientTokenT &&value)
CreateQueueEnvironmentRequest & WithFarmId(FarmIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String