AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GatewayNameT = Aws::String>
44 void SetGatewayName(GatewayNameT&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::forward<GatewayNameT>(value); }
45 template<typename GatewayNameT = Aws::String>
46 CreateGatewayRequest& WithGatewayName(GatewayNameT&& value) { SetGatewayName(std::forward<GatewayNameT>(value)); return *this;}
48
50
53 inline const GatewayPlatform& GetGatewayPlatform() const { return m_gatewayPlatform; }
54 inline bool GatewayPlatformHasBeenSet() const { return m_gatewayPlatformHasBeenSet; }
55 template<typename GatewayPlatformT = GatewayPlatform>
56 void SetGatewayPlatform(GatewayPlatformT&& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = std::forward<GatewayPlatformT>(value); }
57 template<typename GatewayPlatformT = GatewayPlatform>
58 CreateGatewayRequest& WithGatewayPlatform(GatewayPlatformT&& value) { SetGatewayPlatform(std::forward<GatewayPlatformT>(value)); return *this;}
60
62
73 inline const Aws::String& GetGatewayVersion() const { return m_gatewayVersion; }
74 inline bool GatewayVersionHasBeenSet() const { return m_gatewayVersionHasBeenSet; }
75 template<typename GatewayVersionT = Aws::String>
76 void SetGatewayVersion(GatewayVersionT&& value) { m_gatewayVersionHasBeenSet = true; m_gatewayVersion = std::forward<GatewayVersionT>(value); }
77 template<typename GatewayVersionT = Aws::String>
78 CreateGatewayRequest& WithGatewayVersion(GatewayVersionT&& value) { SetGatewayVersion(std::forward<GatewayVersionT>(value)); return *this;}
80
82
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 CreateGatewayRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
95 CreateGatewayRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
96 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
97 }
99 private:
100
101 Aws::String m_gatewayName;
102 bool m_gatewayNameHasBeenSet = false;
103
104 GatewayPlatform m_gatewayPlatform;
105 bool m_gatewayPlatformHasBeenSet = false;
106
107 Aws::String m_gatewayVersion;
108 bool m_gatewayVersionHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace IoTSiteWise
116} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetGatewayPlatform(GatewayPlatformT &&value)
CreateGatewayRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
CreateGatewayRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateGatewayRequest & WithGatewayVersion(GatewayVersionT &&value)
CreateGatewayRequest & WithGatewayName(GatewayNameT &&value)
CreateGatewayRequest & WithGatewayPlatform(GatewayPlatformT &&value)
AWS_IOTSITEWISE_API CreateGatewayRequest()=default
const GatewayPlatform & GetGatewayPlatform() const
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