AWS SDK for C++  1.9.16
AWS SDK for C++
CreateGatewayRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IoTSiteWise
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 "CreateGateway"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
41 
45  inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
46 
50  inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
51 
55  inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); }
56 
60  inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
61 
65  inline CreateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
66 
70  inline CreateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;}
71 
75  inline CreateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
76 
77 
81  inline const GatewayPlatform& GetGatewayPlatform() const{ return m_gatewayPlatform; }
82 
86  inline bool GatewayPlatformHasBeenSet() const { return m_gatewayPlatformHasBeenSet; }
87 
91  inline void SetGatewayPlatform(const GatewayPlatform& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = value; }
92 
96  inline void SetGatewayPlatform(GatewayPlatform&& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = std::move(value); }
97 
101  inline CreateGatewayRequest& WithGatewayPlatform(const GatewayPlatform& value) { SetGatewayPlatform(value); return *this;}
102 
106  inline CreateGatewayRequest& WithGatewayPlatform(GatewayPlatform&& value) { SetGatewayPlatform(std::move(value)); return *this;}
107 
108 
116  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 
125  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 
134  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 
143  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 
152  inline CreateGatewayRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
153 
161  inline CreateGatewayRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
162 
170  inline CreateGatewayRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 
179  inline CreateGatewayRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
180 
188  inline CreateGatewayRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
189 
197  inline CreateGatewayRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
198 
206  inline CreateGatewayRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 
215  inline CreateGatewayRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
216 
224  inline CreateGatewayRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
225 
226  private:
227 
228  Aws::String m_gatewayName;
229  bool m_gatewayNameHasBeenSet;
230 
231  GatewayPlatform m_gatewayPlatform;
232  bool m_gatewayPlatformHasBeenSet;
233 
235  bool m_tagsHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace IoTSiteWise
240 } // namespace Aws
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetGatewayName
void SetGatewayName(const char *value)
Definition: CreateGatewayRequest.h:60
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithGatewayName
CreateGatewayRequest & WithGatewayName(Aws::String &&value)
Definition: CreateGatewayRequest.h:70
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetGatewayPlatform
void SetGatewayPlatform(const GatewayPlatform &value)
Definition: CreateGatewayRequest.h:91
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetGatewayPlatform
void SetGatewayPlatform(GatewayPlatform &&value)
Definition: CreateGatewayRequest.h:96
Aws::IoTSiteWise::Model::CreateGatewayRequest::GetGatewayName
const Aws::String & GetGatewayName() const
Definition: CreateGatewayRequest.h:40
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithGatewayPlatform
CreateGatewayRequest & WithGatewayPlatform(GatewayPlatform &&value)
Definition: CreateGatewayRequest.h:106
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateGatewayRequest.h:143
Aws::IoTSiteWise::Model::CreateGatewayRequest::GatewayPlatformHasBeenSet
bool GatewayPlatformHasBeenSet() const
Definition: CreateGatewayRequest.h:86
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::CreateGatewayRequest::GatewayNameHasBeenSet
bool GatewayNameHasBeenSet() const
Definition: CreateGatewayRequest.h:45
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::CreateGatewayRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateGatewayRequest.h:116
Aws::IoTSiteWise::Model::CreateGatewayRequest
Definition: CreateGatewayRequest.h:24
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateGatewayRequest.h:170
Aws::IoTSiteWise::Model::CreateGatewayRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateGatewayRequest.h:125
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithTags
CreateGatewayRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateGatewayRequest.h:152
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetGatewayName
void SetGatewayName(const Aws::String &value)
Definition: CreateGatewayRequest.h:50
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateGatewayRequest.h:188
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateGatewayRequest.h:179
Aws::IoTSiteWise::Model::CreateGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::CreateGatewayRequest::CreateGatewayRequest
CreateGatewayRequest()
AWSString.h
Aws::IoTSiteWise::Model::CreateGatewayRequest::GetGatewayPlatform
const GatewayPlatform & GetGatewayPlatform() const
Definition: CreateGatewayRequest.h:81
Aws::IoTSiteWise::Model::CreateGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGatewayRequest.h:32
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithGatewayName
CreateGatewayRequest & WithGatewayName(const char *value)
Definition: CreateGatewayRequest.h:75
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithGatewayName
CreateGatewayRequest & WithGatewayName(const Aws::String &value)
Definition: CreateGatewayRequest.h:65
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateGatewayRequest.h:197
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(const char *key, const char *value)
Definition: CreateGatewayRequest.h:224
GatewayPlatform.h
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateGatewayRequest.h:134
Aws::IoTSiteWise::Model::CreateGatewayRequest::SetGatewayName
void SetGatewayName(Aws::String &&value)
Definition: CreateGatewayRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithGatewayPlatform
CreateGatewayRequest & WithGatewayPlatform(const GatewayPlatform &value)
Definition: CreateGatewayRequest.h:101
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateGatewayRequest.h:206
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::GatewayPlatform
Definition: GatewayPlatform.h:32
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateGatewayRequest.h:215
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithTags
CreateGatewayRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateGatewayRequest.h:161