AWS SDK for C++

AWS SDK for C++ Version 1.11.778

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
22 public:
23 AWS_DEADLINE_API CreateFarmRequest() = 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 "CreateFarm"; }
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>
48 CreateFarmRequest& WithClientToken(ClientTokenT&& value) {
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
68 CreateFarmRequest& WithDisplayName(DisplayNameT&& value) {
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 CreateFarmRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
99 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
100 template <typename KmsKeyArnT = Aws::String>
101 void SetKmsKeyArn(KmsKeyArnT&& value) {
102 m_kmsKeyArnHasBeenSet = true;
103 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
104 }
105 template <typename KmsKeyArnT = Aws::String>
106 CreateFarmRequest& WithKmsKeyArn(KmsKeyArnT&& value) {
107 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
108 return *this;
109 }
111
113
116 inline double GetCostScaleFactor() const { return m_costScaleFactor; }
117 inline bool CostScaleFactorHasBeenSet() const { return m_costScaleFactorHasBeenSet; }
118 inline void SetCostScaleFactor(double value) {
119 m_costScaleFactorHasBeenSet = true;
120 m_costScaleFactor = value;
121 }
123 SetCostScaleFactor(value);
124 return *this;
125 }
127
129
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 CreateFarmRequest& WithTags(TagsT&& value) {
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 CreateFarmRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152 private:
154
155 Aws::String m_displayName;
156
157 Aws::String m_description;
158
159 Aws::String m_kmsKeyArn;
160
161 double m_costScaleFactor{0.0};
162
164 bool m_clientTokenHasBeenSet = true;
165 bool m_displayNameHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_kmsKeyArnHasBeenSet = false;
168 bool m_costScaleFactorHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace deadline
174} // 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