AWS SDK for C++  1.9.40
AWS SDK for C++
CreateSubscriptionDefinitionRequest.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 "CreateSubscriptionDefinition"; }
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 CreateSubscriptionDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
68 
72  inline CreateSubscriptionDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
73 
77  inline CreateSubscriptionDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
78 
79 
83  inline const SubscriptionDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
84 
88  inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
89 
93  inline void SetInitialVersion(const SubscriptionDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
94 
98  inline void SetInitialVersion(SubscriptionDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
99 
103  inline CreateSubscriptionDefinitionRequest& WithInitialVersion(const SubscriptionDefinitionVersion& value) { SetInitialVersion(value); return *this;}
104 
108  inline CreateSubscriptionDefinitionRequest& WithInitialVersion(SubscriptionDefinitionVersion&& 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 CreateSubscriptionDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
140 
144  inline CreateSubscriptionDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
145 
149  inline CreateSubscriptionDefinitionRequest& 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 CreateSubscriptionDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
176 
180  inline CreateSubscriptionDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
181 
185  inline CreateSubscriptionDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
186 
190  inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 
195  inline CreateSubscriptionDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
196 
200  inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
201 
205  inline CreateSubscriptionDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
206 
210  inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
211 
215  inline CreateSubscriptionDefinitionRequest& 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  SubscriptionDefinitionVersion 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::CreateSubscriptionDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:195
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetInitialVersion
const SubscriptionDefinitionVersion & GetInitialVersion() const
Definition: CreateSubscriptionDefinitionRequest.h:83
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest
Definition: CreateSubscriptionDefinitionRequest.h:24
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSubscriptionDefinitionRequest.h:32
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSubscriptionDefinitionRequest.h:160
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:210
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:200
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(const char *key, const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:215
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
SubscriptionDefinitionVersion.h
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:52
GreengrassRequest.h
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::CreateSubscriptionDefinitionRequest
CreateSubscriptionDefinitionRequest()
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSubscriptionDefinitionRequest.h:119
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithTags
CreateSubscriptionDefinitionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSubscriptionDefinitionRequest.h:175
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithInitialVersion
CreateSubscriptionDefinitionRequest & WithInitialVersion(SubscriptionDefinitionVersion &&value)
Definition: CreateSubscriptionDefinitionRequest.h:108
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateSubscriptionDefinitionRequest.h:155
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithAmznClientToken
CreateSubscriptionDefinitionRequest & WithAmznClientToken(const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:77
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetName
void SetName(const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:134
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:185
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:124
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithName
CreateSubscriptionDefinitionRequest & WithName(const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:149
AWSString.h
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AmznClientTokenHasBeenSet
bool AmznClientTokenHasBeenSet() const
Definition: CreateSubscriptionDefinitionRequest.h:47
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:205
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSubscriptionDefinitionRequest.h:170
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::AddTags
CreateSubscriptionDefinitionRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:190
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithInitialVersion
CreateSubscriptionDefinitionRequest & WithInitialVersion(const SubscriptionDefinitionVersion &value)
Definition: CreateSubscriptionDefinitionRequest.h:103
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:129
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithName
CreateSubscriptionDefinitionRequest & WithName(Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:144
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetInitialVersion
void SetInitialVersion(const SubscriptionDefinitionVersion &value)
Definition: CreateSubscriptionDefinitionRequest.h:93
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithName
CreateSubscriptionDefinitionRequest & WithName(const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:139
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetInitialVersion
void SetInitialVersion(SubscriptionDefinitionVersion &&value)
Definition: CreateSubscriptionDefinitionRequest.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetAmznClientToken
void SetAmznClientToken(const char *value)
Definition: CreateSubscriptionDefinitionRequest.h:62
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: CreateSubscriptionDefinitionRequest.h:114
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithTags
CreateSubscriptionDefinitionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSubscriptionDefinitionRequest.h:180
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::InitialVersionHasBeenSet
bool InitialVersionHasBeenSet() const
Definition: CreateSubscriptionDefinitionRequest.h:88
Aws::Greengrass::Model::SubscriptionDefinitionVersion
Definition: SubscriptionDefinitionVersion.h:33
AWSMap.h
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSubscriptionDefinitionRequest.h:165
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::GetAmznClientToken
const Aws::String & GetAmznClientToken() const
Definition: CreateSubscriptionDefinitionRequest.h:42
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithAmznClientToken
CreateSubscriptionDefinitionRequest & WithAmznClientToken(const Aws::String &value)
Definition: CreateSubscriptionDefinitionRequest.h:67
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Greengrass::Model::CreateSubscriptionDefinitionRequest::WithAmznClientToken
CreateSubscriptionDefinitionRequest & WithAmznClientToken(Aws::String &&value)
Definition: CreateSubscriptionDefinitionRequest.h:72