AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
CreateOutpostRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/SupportedHardwareType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Outposts {
17namespace Model {
18
22 public:
23 AWS_OUTPOSTS_API CreateOutpostRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateOutpost"; }
30
31 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
32
34
35 inline const Aws::String& GetName() const { return m_name; }
36 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetDescription() const { return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 template <typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) {
55 m_descriptionHasBeenSet = true;
56 m_description = std::forward<DescriptionT>(value);
57 }
58 template <typename DescriptionT = Aws::String>
59 CreateOutpostRequest& WithDescription(DescriptionT&& value) {
60 SetDescription(std::forward<DescriptionT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetSiteId() const { return m_siteId; }
70 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
71 template <typename SiteIdT = Aws::String>
72 void SetSiteId(SiteIdT&& value) {
73 m_siteIdHasBeenSet = true;
74 m_siteId = std::forward<SiteIdT>(value);
75 }
76 template <typename SiteIdT = Aws::String>
77 CreateOutpostRequest& WithSiteId(SiteIdT&& value) {
78 SetSiteId(std::forward<SiteIdT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
86 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
87 template <typename AvailabilityZoneT = Aws::String>
88 void SetAvailabilityZone(AvailabilityZoneT&& value) {
89 m_availabilityZoneHasBeenSet = true;
90 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
91 }
92 template <typename AvailabilityZoneT = Aws::String>
93 CreateOutpostRequest& WithAvailabilityZone(AvailabilityZoneT&& value) {
94 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
102 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
103 template <typename AvailabilityZoneIdT = Aws::String>
104 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
105 m_availabilityZoneIdHasBeenSet = true;
106 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
107 }
108 template <typename AvailabilityZoneIdT = Aws::String>
109 CreateOutpostRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
110 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 CreateOutpostRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
143 inline SupportedHardwareType GetSupportedHardwareType() const { return m_supportedHardwareType; }
144 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
146 m_supportedHardwareTypeHasBeenSet = true;
147 m_supportedHardwareType = value;
148 }
151 return *this;
152 }
154 private:
155 Aws::String m_name;
156
157 Aws::String m_description;
158
159 Aws::String m_siteId;
160
161 Aws::String m_availabilityZone;
162
163 Aws::String m_availabilityZoneId;
164
166
168 bool m_nameHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_siteIdHasBeenSet = false;
171 bool m_availabilityZoneHasBeenSet = false;
172 bool m_availabilityZoneIdHasBeenSet = false;
173 bool m_tagsHasBeenSet = false;
174 bool m_supportedHardwareTypeHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Outposts
179} // namespace Aws
CreateOutpostRequest & WithTags(TagsT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetSupportedHardwareType(SupportedHardwareType value)
virtual const char * GetServiceRequestName() const override
CreateOutpostRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
CreateOutpostRequest & WithSupportedHardwareType(SupportedHardwareType value)
CreateOutpostRequest & WithSiteId(SiteIdT &&value)
CreateOutpostRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateOutpostRequest & WithDescription(DescriptionT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateOutpostRequest & WithName(NameT &&value)
AWS_OUTPOSTS_API CreateOutpostRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateOutpostRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
SupportedHardwareType GetSupportedHardwareType() 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