AWS SDK for C++  1.9.108
AWS SDK for C++
CreateServiceProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace IoTWireless
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 "CreateServiceProfile"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline CreateServiceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline CreateServiceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline CreateServiceProfileRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
83  inline const LoRaWANServiceProfile& GetLoRaWAN() const{ return m_loRaWAN; }
84 
88  inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
89 
93  inline void SetLoRaWAN(const LoRaWANServiceProfile& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
94 
98  inline void SetLoRaWAN(LoRaWANServiceProfile&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
99 
103  inline CreateServiceProfileRequest& WithLoRaWAN(const LoRaWANServiceProfile& value) { SetLoRaWAN(value); return *this;}
104 
108  inline CreateServiceProfileRequest& WithLoRaWAN(LoRaWANServiceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;}
109 
110 
115  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
116 
121  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 
127  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 
133  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 
139  inline CreateServiceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 
145  inline CreateServiceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
146 
151  inline CreateServiceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 
157  inline CreateServiceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
158 
159 
166  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
167 
174  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
175 
182  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
183 
190  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
191 
198  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
199 
206  inline CreateServiceProfileRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
207 
214  inline CreateServiceProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
215 
222  inline CreateServiceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
223 
224  private:
225 
226  Aws::String m_name;
227  bool m_nameHasBeenSet;
228 
229  LoRaWANServiceProfile m_loRaWAN;
230  bool m_loRaWANHasBeenSet;
231 
232  Aws::Vector<Tag> m_tags;
233  bool m_tagsHasBeenSet;
234 
235  Aws::String m_clientRequestToken;
236  bool m_clientRequestTokenHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace IoTWireless
241 } // namespace Aws
Tag.h
AWS_IOTWIRELESS_API
#define AWS_IOTWIRELESS_API
Definition: IoTWireless_EXPORTS.h:28
Aws::IoTWireless::Model::CreateServiceProfileRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateServiceProfileRequest.h:47
Aws::IoTWireless::Model::CreateServiceProfileRequest::LoRaWANHasBeenSet
bool LoRaWANHasBeenSet() const
Definition: CreateServiceProfileRequest.h:88
Aws::IoTWireless::Model::CreateServiceProfileRequest::GetLoRaWAN
const LoRaWANServiceProfile & GetLoRaWAN() const
Definition: CreateServiceProfileRequest.h:83
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateServiceProfileRequest.h:52
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateServiceProfileRequest.h:182
Aws::IoTWireless::Model::CreateServiceProfileRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateServiceProfileRequest.h:121
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithClientRequestToken
CreateServiceProfileRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateServiceProfileRequest.h:206
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithTags
CreateServiceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateServiceProfileRequest.h:145
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithName
CreateServiceProfileRequest & WithName(Aws::String &&value)
Definition: CreateServiceProfileRequest.h:72
Aws::IoTWireless::Model::LoRaWANServiceProfile
Definition: LoRaWANServiceProfile.h:30
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
IoTWireless_EXPORTS.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateServiceProfileRequest.h:174
AWSVector.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithLoRaWAN
CreateServiceProfileRequest & WithLoRaWAN(LoRaWANServiceProfile &&value)
Definition: CreateServiceProfileRequest.h:108
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateServiceProfileRequest.h:127
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateServiceProfileRequest.h:57
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateServiceProfileRequest.h:133
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithLoRaWAN
CreateServiceProfileRequest & WithLoRaWAN(const LoRaWANServiceProfile &value)
Definition: CreateServiceProfileRequest.h:103
Aws::IoTWireless::Model::CreateServiceProfileRequest
Definition: CreateServiceProfileRequest.h:26
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateServiceProfileRequest.h:198
Aws::IoTWireless::IoTWirelessRequest
Definition: IoTWirelessRequest.h:17
Aws::IoTWireless::Model::Tag
Definition: Tag.h:33
AWSString.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateServiceProfileRequest.h:115
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithName
CreateServiceProfileRequest & WithName(const Aws::String &value)
Definition: CreateServiceProfileRequest.h:67
Aws::IoTWireless::Model::CreateServiceProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateServiceProfileRequest.h:34
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetName
void SetName(const char *value)
Definition: CreateServiceProfileRequest.h:62
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithClientRequestToken
CreateServiceProfileRequest & WithClientRequestToken(const char *value)
Definition: CreateServiceProfileRequest.h:222
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetLoRaWAN
void SetLoRaWAN(const LoRaWANServiceProfile &value)
Definition: CreateServiceProfileRequest.h:93
Aws::IoTWireless::Model::CreateServiceProfileRequest::AddTags
CreateServiceProfileRequest & AddTags(const Tag &value)
Definition: CreateServiceProfileRequest.h:151
Aws
Definition: AccessManagementClient.h:15
IoTWirelessRequest.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateServiceProfileRequest.h:190
Aws::IoTWireless::Model::CreateServiceProfileRequest::AddTags
CreateServiceProfileRequest & AddTags(Tag &&value)
Definition: CreateServiceProfileRequest.h:157
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithClientRequestToken
CreateServiceProfileRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateServiceProfileRequest.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithTags
CreateServiceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateServiceProfileRequest.h:139
Aws::IoTWireless::Model::CreateServiceProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTWireless::Model::CreateServiceProfileRequest::CreateServiceProfileRequest
CreateServiceProfileRequest()
UUID.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::SetLoRaWAN
void SetLoRaWAN(LoRaWANServiceProfile &&value)
Definition: CreateServiceProfileRequest.h:98
Aws::IoTWireless::Model::CreateServiceProfileRequest::WithName
CreateServiceProfileRequest & WithName(const char *value)
Definition: CreateServiceProfileRequest.h:77
Aws::IoTWireless::Model::CreateServiceProfileRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateServiceProfileRequest.h:166
LoRaWANServiceProfile.h
Aws::IoTWireless::Model::CreateServiceProfileRequest::GetName
const Aws::String & GetName() const
Definition: CreateServiceProfileRequest.h:42