AWS SDK for C++  1.9.129
AWS SDK for C++
CreateDimensionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <aws/iot/model/Tag.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "CreateDimension"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
73  inline CreateDimensionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
79  inline CreateDimensionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
85  inline CreateDimensionRequest& WithName(const char* value) { SetName(value); return *this;}
86 
87 
92  inline const DimensionType& GetType() const{ return m_type; }
93 
98  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 
104  inline void SetType(const DimensionType& value) { m_typeHasBeenSet = true; m_type = value; }
105 
110  inline void SetType(DimensionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 
116  inline CreateDimensionRequest& WithType(const DimensionType& value) { SetType(value); return *this;}
117 
122  inline CreateDimensionRequest& WithType(DimensionType&& value) { SetType(std::move(value)); return *this;}
123 
124 
130  inline const Aws::Vector<Aws::String>& GetStringValues() const{ return m_stringValues; }
131 
137  inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
138 
144  inline void SetStringValues(const Aws::Vector<Aws::String>& value) { m_stringValuesHasBeenSet = true; m_stringValues = value; }
145 
151  inline void SetStringValues(Aws::Vector<Aws::String>&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::move(value); }
152 
158  inline CreateDimensionRequest& WithStringValues(const Aws::Vector<Aws::String>& value) { SetStringValues(value); return *this;}
159 
165  inline CreateDimensionRequest& WithStringValues(Aws::Vector<Aws::String>&& value) { SetStringValues(std::move(value)); return *this;}
166 
172  inline CreateDimensionRequest& AddStringValues(const Aws::String& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
173 
179  inline CreateDimensionRequest& AddStringValues(Aws::String&& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(std::move(value)); return *this; }
180 
186  inline CreateDimensionRequest& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
187 
188 
192  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
193 
197  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 
202  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
203 
207  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
208 
212  inline CreateDimensionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
213 
217  inline CreateDimensionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
218 
222  inline CreateDimensionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
223 
227  inline CreateDimensionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
228 
229 
236  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
237 
244  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
245 
252  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
253 
260  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
261 
268  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
269 
276  inline CreateDimensionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
277 
284  inline CreateDimensionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
285 
292  inline CreateDimensionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
293 
294  private:
295 
296  Aws::String m_name;
297  bool m_nameHasBeenSet;
298 
299  DimensionType m_type;
300  bool m_typeHasBeenSet;
301 
302  Aws::Vector<Aws::String> m_stringValues;
303  bool m_stringValuesHasBeenSet;
304 
305  Aws::Vector<Tag> m_tags;
306  bool m_tagsHasBeenSet;
307 
308  Aws::String m_clientRequestToken;
309  bool m_clientRequestTokenHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace IoT
314 } // namespace Aws
Aws::IoT::Model::CreateDimensionRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateDimensionRequest.h:252
Aws::IoT::Model::CreateDimensionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDimensionRequest.h:197
Aws::IoT::Model::CreateDimensionRequest::SetType
void SetType(const DimensionType &value)
Definition: CreateDimensionRequest.h:104
Aws::IoT::Model::CreateDimensionRequest::WithTags
CreateDimensionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDimensionRequest.h:217
Aws::IoT::Model::CreateDimensionRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateDimensionRequest.h:268
Aws::IoT::Model::CreateDimensionRequest
Definition: CreateDimensionRequest.h:26
Aws::IoT::Model::CreateDimensionRequest::WithName
CreateDimensionRequest & WithName(Aws::String &&value)
Definition: CreateDimensionRequest.h:79
Aws::IoT::Model::CreateDimensionRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateDimensionRequest.h:244
Aws::IoT::Model::CreateDimensionRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateDimensionRequest.h:236
Aws::IoT::Model::CreateDimensionRequest::AddTags
CreateDimensionRequest & AddTags(Tag &&value)
Definition: CreateDimensionRequest.h:227
Aws::IoT::Model::CreateDimensionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDimensionRequest.h:202
Aws::IoT::Model::CreateDimensionRequest::AddStringValues
CreateDimensionRequest & AddStringValues(const Aws::String &value)
Definition: CreateDimensionRequest.h:172
Aws::IoT::Model::CreateDimensionRequest::AddStringValues
CreateDimensionRequest & AddStringValues(const char *value)
Definition: CreateDimensionRequest.h:186
Aws::IoT::Model::CreateDimensionRequest::WithName
CreateDimensionRequest & WithName(const Aws::String &value)
Definition: CreateDimensionRequest.h:73
Aws::IoT::Model::CreateDimensionRequest::WithTags
CreateDimensionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDimensionRequest.h:212
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateDimensionRequest::CreateDimensionRequest
CreateDimensionRequest()
AWSVector.h
DimensionType.h
Aws::IoT::Model::CreateDimensionRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateDimensionRequest.h:98
Aws::IoT::Model::CreateDimensionRequest::GetStringValues
const Aws::Vector< Aws::String > & GetStringValues() const
Definition: CreateDimensionRequest.h:130
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateDimensionRequest::WithType
CreateDimensionRequest & WithType(DimensionType &&value)
Definition: CreateDimensionRequest.h:122
Aws::IoT::Model::CreateDimensionRequest::WithClientRequestToken
CreateDimensionRequest & WithClientRequestToken(const char *value)
Definition: CreateDimensionRequest.h:292
Aws::IoT::Model::CreateDimensionRequest::WithName
CreateDimensionRequest & WithName(const char *value)
Definition: CreateDimensionRequest.h:85
Aws::IoT::Model::CreateDimensionRequest::AddTags
CreateDimensionRequest & AddTags(const Tag &value)
Definition: CreateDimensionRequest.h:222
Aws::IoT::Model::CreateDimensionRequest::SetStringValues
void SetStringValues(const Aws::Vector< Aws::String > &value)
Definition: CreateDimensionRequest.h:144
Aws::IoT::Model::CreateDimensionRequest::WithType
CreateDimensionRequest & WithType(const DimensionType &value)
Definition: CreateDimensionRequest.h:116
Aws::IoT::Model::CreateDimensionRequest::WithStringValues
CreateDimensionRequest & WithStringValues(Aws::Vector< Aws::String > &&value)
Definition: CreateDimensionRequest.h:165
Aws::IoT::Model::CreateDimensionRequest::GetType
const DimensionType & GetType() const
Definition: CreateDimensionRequest.h:92
Aws::IoT::Model::CreateDimensionRequest::GetName
const Aws::String & GetName() const
Definition: CreateDimensionRequest.h:43
Aws::IoT::Model::DimensionType
DimensionType
Definition: DimensionType.h:17
Aws::IoT::Model::CreateDimensionRequest::WithClientRequestToken
CreateDimensionRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateDimensionRequest.h:284
Aws::IoT::Model::CreateDimensionRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateDimensionRequest.h:260
Aws::IoT::Model::CreateDimensionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateDimensionRequest.h:55
AWSString.h
Aws::IoT::Model::CreateDimensionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateDimensionRequest.h:49
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateDimensionRequest::StringValuesHasBeenSet
bool StringValuesHasBeenSet() const
Definition: CreateDimensionRequest.h:137
Aws::IoT::Model::CreateDimensionRequest::WithClientRequestToken
CreateDimensionRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateDimensionRequest.h:276
Aws::IoT::Model::CreateDimensionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDimensionRequest.h:207
Aws::IoT::Model::CreateDimensionRequest::WithStringValues
CreateDimensionRequest & WithStringValues(const Aws::Vector< Aws::String > &value)
Definition: CreateDimensionRequest.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateDimensionRequest::SetType
void SetType(DimensionType &&value)
Definition: CreateDimensionRequest.h:110
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateDimensionRequest::AddStringValues
CreateDimensionRequest & AddStringValues(Aws::String &&value)
Definition: CreateDimensionRequest.h:179
Aws::IoT::Model::CreateDimensionRequest::SetName
void SetName(const char *value)
Definition: CreateDimensionRequest.h:67
Aws::IoT::Model::CreateDimensionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateDimensionRequest.h:61
IoTRequest.h
UUID.h
Aws::IoT::Model::CreateDimensionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDimensionRequest.h:34
Aws::IoT::Model::CreateDimensionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateDimensionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDimensionRequest.h:192
Tag.h
IoT_EXPORTS.h
Aws::IoT::Model::CreateDimensionRequest::SetStringValues
void SetStringValues(Aws::Vector< Aws::String > &&value)
Definition: CreateDimensionRequest.h:151