AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
CreateSiteRequest.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/Address.h>
12#include <aws/outposts/model/RackPhysicalProperties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Outposts {
18namespace Model {
19
23 public:
24 AWS_OUTPOSTS_API CreateSiteRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSite"; }
31
32 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
33
35
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
44 CreateSiteRequest& WithName(NameT&& value) {
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template <typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) {
56 m_descriptionHasBeenSet = true;
57 m_description = std::forward<DescriptionT>(value);
58 }
59 template <typename DescriptionT = Aws::String>
60 CreateSiteRequest& WithDescription(DescriptionT&& value) {
61 SetDescription(std::forward<DescriptionT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetNotes() const { return m_notes; }
73 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
74 template <typename NotesT = Aws::String>
75 void SetNotes(NotesT&& value) {
76 m_notesHasBeenSet = true;
77 m_notes = std::forward<NotesT>(value);
78 }
79 template <typename NotesT = Aws::String>
80 CreateSiteRequest& WithNotes(NotesT&& value) {
81 SetNotes(std::forward<NotesT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 CreateSiteRequest& WithTags(TagsT&& value) {
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateSiteRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109
111
115 inline const Address& GetOperatingAddress() const { return m_operatingAddress; }
116 inline bool OperatingAddressHasBeenSet() const { return m_operatingAddressHasBeenSet; }
117 template <typename OperatingAddressT = Address>
118 void SetOperatingAddress(OperatingAddressT&& value) {
119 m_operatingAddressHasBeenSet = true;
120 m_operatingAddress = std::forward<OperatingAddressT>(value);
121 }
122 template <typename OperatingAddressT = Address>
123 CreateSiteRequest& WithOperatingAddress(OperatingAddressT&& value) {
124 SetOperatingAddress(std::forward<OperatingAddressT>(value));
125 return *this;
126 }
128
130
134 inline const Address& GetShippingAddress() const { return m_shippingAddress; }
135 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
136 template <typename ShippingAddressT = Address>
137 void SetShippingAddress(ShippingAddressT&& value) {
138 m_shippingAddressHasBeenSet = true;
139 m_shippingAddress = std::forward<ShippingAddressT>(value);
140 }
141 template <typename ShippingAddressT = Address>
142 CreateSiteRequest& WithShippingAddress(ShippingAddressT&& value) {
143 SetShippingAddress(std::forward<ShippingAddressT>(value));
144 return *this;
145 }
147
149
155 inline const RackPhysicalProperties& GetRackPhysicalProperties() const { return m_rackPhysicalProperties; }
156 inline bool RackPhysicalPropertiesHasBeenSet() const { return m_rackPhysicalPropertiesHasBeenSet; }
157 template <typename RackPhysicalPropertiesT = RackPhysicalProperties>
158 void SetRackPhysicalProperties(RackPhysicalPropertiesT&& value) {
159 m_rackPhysicalPropertiesHasBeenSet = true;
160 m_rackPhysicalProperties = std::forward<RackPhysicalPropertiesT>(value);
161 }
162 template <typename RackPhysicalPropertiesT = RackPhysicalProperties>
163 CreateSiteRequest& WithRackPhysicalProperties(RackPhysicalPropertiesT&& value) {
164 SetRackPhysicalProperties(std::forward<RackPhysicalPropertiesT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_name;
170
171 Aws::String m_description;
172
173 Aws::String m_notes;
174
176
177 Address m_operatingAddress;
178
179 Address m_shippingAddress;
180
181 RackPhysicalProperties m_rackPhysicalProperties;
182 bool m_nameHasBeenSet = false;
183 bool m_descriptionHasBeenSet = false;
184 bool m_notesHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186 bool m_operatingAddressHasBeenSet = false;
187 bool m_shippingAddressHasBeenSet = false;
188 bool m_rackPhysicalPropertiesHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Outposts
193} // namespace Aws
AWS_OUTPOSTS_API CreateSiteRequest()=default
void SetShippingAddress(ShippingAddressT &&value)
CreateSiteRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetRackPhysicalProperties(RackPhysicalPropertiesT &&value)
CreateSiteRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetOperatingAddress(OperatingAddressT &&value)
CreateSiteRequest & WithRackPhysicalProperties(RackPhysicalPropertiesT &&value)
CreateSiteRequest & WithOperatingAddress(OperatingAddressT &&value)
CreateSiteRequest & WithTags(TagsT &&value)
const RackPhysicalProperties & GetRackPhysicalProperties() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSiteRequest & WithNotes(NotesT &&value)
CreateSiteRequest & WithShippingAddress(ShippingAddressT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
CreateSiteRequest & WithName(NameT &&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