AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateFarmRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/DeadlineRequest.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace deadline {
17namespace Model {
18
27 public:
28 AWS_DEADLINE_API CreateFarmRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFarm"; }
35
36 AWS_DEADLINE_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
53 CreateFarmRequest& WithClientToken(ClientTokenT&& value) {
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetDisplayName() const { return m_displayName; }
66 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
67 template <typename DisplayNameT = Aws::String>
68 void SetDisplayName(DisplayNameT&& value) {
69 m_displayNameHasBeenSet = true;
70 m_displayName = std::forward<DisplayNameT>(value);
71 }
72 template <typename DisplayNameT = Aws::String>
73 CreateFarmRequest& WithDisplayName(DisplayNameT&& value) {
74 SetDisplayName(std::forward<DisplayNameT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template <typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) {
89 m_descriptionHasBeenSet = true;
90 m_description = std::forward<DescriptionT>(value);
91 }
92 template <typename DescriptionT = Aws::String>
93 CreateFarmRequest& WithDescription(DescriptionT&& value) {
94 SetDescription(std::forward<DescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
104 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
105 template <typename KmsKeyArnT = Aws::String>
106 void SetKmsKeyArn(KmsKeyArnT&& value) {
107 m_kmsKeyArnHasBeenSet = true;
108 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
109 }
110 template <typename KmsKeyArnT = Aws::String>
111 CreateFarmRequest& WithKmsKeyArn(KmsKeyArnT&& value) {
112 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
113 return *this;
114 }
116
118
124 inline double GetCostScaleFactor() const { return m_costScaleFactor; }
125 inline bool CostScaleFactorHasBeenSet() const { return m_costScaleFactorHasBeenSet; }
126 inline void SetCostScaleFactor(double value) {
127 m_costScaleFactorHasBeenSet = true;
128 m_costScaleFactor = value;
129 }
131 SetCostScaleFactor(value);
132 return *this;
133 }
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 CreateFarmRequest& WithTags(TagsT&& value) {
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateFarmRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160 private:
162
163 Aws::String m_displayName;
164
165 Aws::String m_description;
166
167 Aws::String m_kmsKeyArn;
168
169 double m_costScaleFactor{0.0};
170
172 bool m_clientTokenHasBeenSet = true;
173 bool m_displayNameHasBeenSet = false;
174 bool m_descriptionHasBeenSet = false;
175 bool m_kmsKeyArnHasBeenSet = false;
176 bool m_costScaleFactorHasBeenSet = false;
177 bool m_tagsHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace deadline
182} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetDescription(DescriptionT &&value)
CreateFarmRequest & WithTags(TagsT &&value)
const Aws::String & GetDisplayName() const
CreateFarmRequest & WithDisplayName(DisplayNameT &&value)
AWS_DEADLINE_API CreateFarmRequest()=default
CreateFarmRequest & WithClientToken(ClientTokenT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetClientToken() const
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFarmRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFarmRequest & WithCostScaleFactor(double value)
CreateFarmRequest & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetKmsKeyArn() const
CreateFarmRequest & WithDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String