AWS SDK for C++  1.9.40
AWS SDK for C++
CreateDeviceDefinitionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Greengrass
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceDefinition"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
43 
47  inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
48 
52  inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
53 
57  inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
58 
62  inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
63 
67  inline CreateDeviceDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
68 
72  inline CreateDeviceDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
73 
77  inline CreateDeviceDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
78 
79 
83  inline const DeviceDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
84 
88  inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
89 
93  inline void SetInitialVersion(const DeviceDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
94 
98  inline void SetInitialVersion(DeviceDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
99 
103  inline CreateDeviceDefinitionRequest& WithInitialVersion(const DeviceDefinitionVersion& value) { SetInitialVersion(value); return *this;}
104 
108  inline CreateDeviceDefinitionRequest& WithInitialVersion(DeviceDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
109 
110 
114  inline const Aws::String& GetName() const{ return m_name; }
115 
119  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
120 
124  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
125 
129  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
130 
134  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
135 
139  inline CreateDeviceDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
140 
144  inline CreateDeviceDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
145 
149  inline CreateDeviceDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
150 
151 
155  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
156 
160  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 
165  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
166 
170  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 
175  inline CreateDeviceDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
176 
180  inline CreateDeviceDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
181 
185  inline CreateDeviceDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
186 
190  inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 
195  inline CreateDeviceDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
196 
200  inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
201 
205  inline CreateDeviceDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
206 
210  inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
211 
215  inline CreateDeviceDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
216 
217  private:
218 
219  Aws::String m_amznClientToken;
220  bool m_amznClientTokenHasBeenSet;
221 
222  DeviceDefinitionVersion m_initialVersion;
223  bool m_initialVersionHasBeenSet;
224 
225  Aws::String m_name;
226  bool m_nameHasBeenSet;
227 
229  bool m_tagsHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace Greengrass
234 } // namespace Aws
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:190
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Greengrass_EXPORTS.h
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: CreateDeviceDefinitionRequest.h:114
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:57
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithAmznClientToken
CreateDeviceDefinitionRequest & WithAmznClientToken(const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:67
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const char *value)
Definition: CreateDeviceDefinitionRequest.h:62
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateDeviceDefinitionRequest.h:119
GreengrassRequest.h
DeviceDefinitionVersion.h
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AmznClientTokenHasBeenSet
bool AmznClientTokenHasBeenSet() const
Definition: CreateDeviceDefinitionRequest.h:47
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(const char *key, const char *value)
Definition: CreateDeviceDefinitionRequest.h:215
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:195
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeviceDefinitionRequest.h:165
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithTags
CreateDeviceDefinitionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeviceDefinitionRequest.h:180
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::InitialVersionHasBeenSet
bool InitialVersionHasBeenSet() const
Definition: CreateDeviceDefinitionRequest.h:88
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithInitialVersion
CreateDeviceDefinitionRequest & WithInitialVersion(DeviceDefinitionVersion &&value)
Definition: CreateDeviceDefinitionRequest.h:108
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateDeviceDefinitionRequest.h:210
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithName
CreateDeviceDefinitionRequest & WithName(const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:139
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithName
CreateDeviceDefinitionRequest & WithName(const char *value)
Definition: CreateDeviceDefinitionRequest.h:149
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithName
CreateDeviceDefinitionRequest & WithName(Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:144
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetName
void SetName(const char *value)
Definition: CreateDeviceDefinitionRequest.h:134
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithAmznClientToken
CreateDeviceDefinitionRequest & WithAmznClientToken(Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:72
Aws::Greengrass::Model::CreateDeviceDefinitionRequest
Definition: CreateDeviceDefinitionRequest.h:24
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:185
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetInitialVersion
const DeviceDefinitionVersion & GetInitialVersion() const
Definition: CreateDeviceDefinitionRequest.h:83
Aws::Greengrass::Model::DeviceDefinitionVersion
Definition: DeviceDefinitionVersion.h:33
AWSString.h
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetInitialVersion
void SetInitialVersion(const DeviceDefinitionVersion &value)
Definition: CreateDeviceDefinitionRequest.h:93
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithAmznClientToken
CreateDeviceDefinitionRequest & WithAmznClientToken(const char *value)
Definition: CreateDeviceDefinitionRequest.h:77
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetAmznClientToken
const Aws::String & GetAmznClientToken() const
Definition: CreateDeviceDefinitionRequest.h:42
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeviceDefinitionRequest.h:170
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateDeviceDefinitionRequest.h:155
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDeviceDefinitionRequest.h:160
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:200
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDeviceDefinitionRequest.h:32
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::AddTags
CreateDeviceDefinitionRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:205
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateDeviceDefinitionRequest.h:129
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithTags
CreateDeviceDefinitionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeviceDefinitionRequest.h:175
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const Aws::String &value)
Definition: CreateDeviceDefinitionRequest.h:52
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::CreateDeviceDefinitionRequest
CreateDeviceDefinitionRequest()
AWSMap.h
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::WithInitialVersion
CreateDeviceDefinitionRequest & WithInitialVersion(const DeviceDefinitionVersion &value)
Definition: CreateDeviceDefinitionRequest.h:103
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Greengrass::Model::CreateDeviceDefinitionRequest::SetInitialVersion
void SetInitialVersion(DeviceDefinitionVersion &&value)
Definition: CreateDeviceDefinitionRequest.h:98