AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGatewayRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotsitewise/model/GatewayPlatform.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_API CreateGatewayRequest();
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_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
42 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
43 inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
44 inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); }
45 inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
46 inline CreateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
47 inline CreateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;}
48 inline CreateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
50
52
55 inline const GatewayPlatform& GetGatewayPlatform() const{ return m_gatewayPlatform; }
56 inline bool GatewayPlatformHasBeenSet() const { return m_gatewayPlatformHasBeenSet; }
57 inline void SetGatewayPlatform(const GatewayPlatform& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = value; }
58 inline void SetGatewayPlatform(GatewayPlatform&& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = std::move(value); }
59 inline CreateGatewayRequest& WithGatewayPlatform(const GatewayPlatform& value) { SetGatewayPlatform(value); return *this;}
60 inline CreateGatewayRequest& WithGatewayPlatform(GatewayPlatform&& value) { SetGatewayPlatform(std::move(value)); return *this;}
62
64
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateGatewayRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
75 inline CreateGatewayRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateGatewayRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline CreateGatewayRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline CreateGatewayRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateGatewayRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline CreateGatewayRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline CreateGatewayRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateGatewayRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_gatewayName;
87 bool m_gatewayNameHasBeenSet = false;
88
89 GatewayPlatform m_gatewayPlatform;
90 bool m_gatewayPlatformHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace IoTSiteWise
98} // namespace Aws
CreateGatewayRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGatewayRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetGatewayPlatform(const GatewayPlatform &value)
virtual const char * GetServiceRequestName() const override
CreateGatewayRequest & WithGatewayPlatform(const GatewayPlatform &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGatewayRequest & WithGatewayName(Aws::String &&value)
CreateGatewayRequest & WithGatewayName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGatewayRequest & WithGatewayPlatform(GatewayPlatform &&value)
CreateGatewayRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGatewayRequest & WithGatewayName(const char *value)
CreateGatewayRequest & AddTags(const char *key, Aws::String &&value)
CreateGatewayRequest & AddTags(Aws::String &&key, const char *value)
const GatewayPlatform & GetGatewayPlatform() const
CreateGatewayRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateGatewayRequest & AddTags(const char *key, const char *value)
CreateGatewayRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateGatewayRequest & AddTags(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String