AWS SDK for C++  1.9.129
AWS SDK for C++
CreateCoreDefinitionRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateCoreDefinition"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
46 
50  inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
51 
55  inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
56 
60  inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
61 
65  inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
66 
70  inline CreateCoreDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
71 
75  inline CreateCoreDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
76 
80  inline CreateCoreDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
81 
82 
86  inline const CoreDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
87 
91  inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
92 
96  inline void SetInitialVersion(const CoreDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
97 
101  inline void SetInitialVersion(CoreDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
102 
106  inline CreateCoreDefinitionRequest& WithInitialVersion(const CoreDefinitionVersion& value) { SetInitialVersion(value); return *this;}
107 
111  inline CreateCoreDefinitionRequest& WithInitialVersion(CoreDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetName() const{ return m_name; }
118 
122  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 
127  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
128 
132  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
133 
137  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
138 
142  inline CreateCoreDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
143 
147  inline CreateCoreDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
148 
152  inline CreateCoreDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
153 
154 
158  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
159 
163  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 
168  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 
173  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 
178  inline CreateCoreDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
179 
183  inline CreateCoreDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
184 
188  inline CreateCoreDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
189 
193  inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 
198  inline CreateCoreDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 
203  inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 
208  inline CreateCoreDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
209 
213  inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
214 
218  inline CreateCoreDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
219 
220  private:
221 
222  Aws::String m_amznClientToken;
223  bool m_amznClientTokenHasBeenSet;
224 
225  CoreDefinitionVersion m_initialVersion;
226  bool m_initialVersionHasBeenSet;
227 
228  Aws::String m_name;
229  bool m_nameHasBeenSet;
230 
232  bool m_tagsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace Greengrass
237 } // namespace Aws
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:198
Aws::Greengrass::Model::CreateCoreDefinitionRequest
Definition: CreateCoreDefinitionRequest.h:27
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const char *value)
Definition: CreateCoreDefinitionRequest.h:65
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithAmznClientToken
CreateCoreDefinitionRequest & WithAmznClientToken(const char *value)
Definition: CreateCoreDefinitionRequest.h:80
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateCoreDefinitionRequest.h:158
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::CoreDefinitionVersion
Definition: CoreDefinitionVersion.h:33
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetName
void SetName(const char *value)
Definition: CreateCoreDefinitionRequest.h:137
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithAmznClientToken
CreateCoreDefinitionRequest & WithAmznClientToken(Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:75
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:203
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetInitialVersion
const CoreDefinitionVersion & GetInitialVersion() const
Definition: CreateCoreDefinitionRequest.h:86
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AmznClientTokenHasBeenSet
bool AmznClientTokenHasBeenSet() const
Definition: CreateCoreDefinitionRequest.h:50
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(const char *key, const char *value)
Definition: CreateCoreDefinitionRequest.h:218
GreengrassRequest.h
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:55
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:60
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCoreDefinitionRequest.h:168
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithInitialVersion
CreateCoreDefinitionRequest & WithInitialVersion(const CoreDefinitionVersion &value)
Definition: CreateCoreDefinitionRequest.h:106
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:193
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithName
CreateCoreDefinitionRequest & WithName(Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:147
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCoreDefinitionRequest.h:35
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:208
Aws::Greengrass::Model::CreateCoreDefinitionRequest::InitialVersionHasBeenSet
bool InitialVersionHasBeenSet() const
Definition: CreateCoreDefinitionRequest.h:91
Aws::Greengrass::Model::CreateCoreDefinitionRequest::CreateCoreDefinitionRequest
CreateCoreDefinitionRequest()
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithTags
CreateCoreDefinitionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCoreDefinitionRequest.h:183
CoreDefinitionVersion.h
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithTags
CreateCoreDefinitionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCoreDefinitionRequest.h:178
AWSString.h
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:127
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateCoreDefinitionRequest.h:213
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCoreDefinitionRequest.h:173
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithAmznClientToken
CreateCoreDefinitionRequest & WithAmznClientToken(const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:70
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithName
CreateCoreDefinitionRequest & WithName(const char *value)
Definition: CreateCoreDefinitionRequest.h:152
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetAmznClientToken
const Aws::String & GetAmznClientToken() const
Definition: CreateCoreDefinitionRequest.h:45
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetInitialVersion
void SetInitialVersion(const CoreDefinitionVersion &value)
Definition: CreateCoreDefinitionRequest.h:96
Aws::Greengrass::Model::CreateCoreDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateCoreDefinitionRequest.h:122
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithInitialVersion
CreateCoreDefinitionRequest & WithInitialVersion(CoreDefinitionVersion &&value)
Definition: CreateCoreDefinitionRequest.h:111
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateCoreDefinitionRequest.h:132
Aws::Greengrass::Model::CreateCoreDefinitionRequest::AddTags
CreateCoreDefinitionRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:188
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::CreateCoreDefinitionRequest::WithName
CreateCoreDefinitionRequest & WithName(const Aws::String &value)
Definition: CreateCoreDefinitionRequest.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::CreateCoreDefinitionRequest::SetInitialVersion
void SetInitialVersion(CoreDefinitionVersion &&value)
Definition: CreateCoreDefinitionRequest.h:101
AWSMap.h
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Greengrass::Model::CreateCoreDefinitionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCoreDefinitionRequest.h:163
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Greengrass::Model::CreateCoreDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: CreateCoreDefinitionRequest.h:117