AWS SDK for C++  1.9.124
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 
115  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
116 
123  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 
131  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 
139  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 
147  inline CreateGatewayRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
148 
155  inline CreateGatewayRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
156 
163  inline CreateGatewayRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164 
171  inline CreateGatewayRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
172 
179  inline CreateGatewayRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
180 
187  inline CreateGatewayRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
188 
195  inline CreateGatewayRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
196 
203  inline CreateGatewayRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
204 
211  inline CreateGatewayRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
212 
213  private:
214 
215  Aws::String m_gatewayName;
216  bool m_gatewayNameHasBeenSet;
217 
218  GatewayPlatform m_gatewayPlatform;
219  bool m_gatewayPlatformHasBeenSet;
220 
222  bool m_tagsHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace IoTSiteWise
227 } // 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:139
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:115
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:163
Aws::IoTSiteWise::Model::CreateGatewayRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateGatewayRequest.h:123
Aws::IoTSiteWise::Model::CreateGatewayRequest::WithTags
CreateGatewayRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateGatewayRequest.h:147
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:179
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateGatewayRequest.h:171
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:187
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(const char *key, const char *value)
Definition: CreateGatewayRequest.h:211
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:131
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:195
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::GatewayPlatform
Definition: GatewayPlatform.h:33
Aws::IoTSiteWise::Model::CreateGatewayRequest::AddTags
CreateGatewayRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateGatewayRequest.h:203
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:155