AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSiteRequest.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/outposts/model/Address.h>
12#include <aws/outposts/model/RackPhysicalProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Outposts
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_OUTPOSTS_API CreateSiteRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSite"; }
34
35 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
36
37
39
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 CreateSiteRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
50 inline const Aws::String& GetDescription() const { return m_description; }
51 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 template<typename DescriptionT = Aws::String>
53 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
54 template<typename DescriptionT = Aws::String>
55 CreateSiteRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
57
59
64 inline const Aws::String& GetNotes() const { return m_notes; }
65 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
66 template<typename NotesT = Aws::String>
67 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
68 template<typename NotesT = Aws::String>
69 CreateSiteRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 CreateSiteRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
83 CreateSiteRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
84 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
85 }
87
89
93 inline const Address& GetOperatingAddress() const { return m_operatingAddress; }
94 inline bool OperatingAddressHasBeenSet() const { return m_operatingAddressHasBeenSet; }
95 template<typename OperatingAddressT = Address>
96 void SetOperatingAddress(OperatingAddressT&& value) { m_operatingAddressHasBeenSet = true; m_operatingAddress = std::forward<OperatingAddressT>(value); }
97 template<typename OperatingAddressT = Address>
98 CreateSiteRequest& WithOperatingAddress(OperatingAddressT&& value) { SetOperatingAddress(std::forward<OperatingAddressT>(value)); return *this;}
100
102
106 inline const Address& GetShippingAddress() const { return m_shippingAddress; }
107 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
108 template<typename ShippingAddressT = Address>
109 void SetShippingAddress(ShippingAddressT&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::forward<ShippingAddressT>(value); }
110 template<typename ShippingAddressT = Address>
111 CreateSiteRequest& WithShippingAddress(ShippingAddressT&& value) { SetShippingAddress(std::forward<ShippingAddressT>(value)); return *this;}
113
115
121 inline const RackPhysicalProperties& GetRackPhysicalProperties() const { return m_rackPhysicalProperties; }
122 inline bool RackPhysicalPropertiesHasBeenSet() const { return m_rackPhysicalPropertiesHasBeenSet; }
123 template<typename RackPhysicalPropertiesT = RackPhysicalProperties>
124 void SetRackPhysicalProperties(RackPhysicalPropertiesT&& value) { m_rackPhysicalPropertiesHasBeenSet = true; m_rackPhysicalProperties = std::forward<RackPhysicalPropertiesT>(value); }
125 template<typename RackPhysicalPropertiesT = RackPhysicalProperties>
126 CreateSiteRequest& WithRackPhysicalProperties(RackPhysicalPropertiesT&& value) { SetRackPhysicalProperties(std::forward<RackPhysicalPropertiesT>(value)); return *this;}
128 private:
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Aws::String m_notes;
137 bool m_notesHasBeenSet = false;
138
140 bool m_tagsHasBeenSet = false;
141
142 Address m_operatingAddress;
143 bool m_operatingAddressHasBeenSet = false;
144
145 Address m_shippingAddress;
146 bool m_shippingAddressHasBeenSet = false;
147
148 RackPhysicalProperties m_rackPhysicalProperties;
149 bool m_rackPhysicalPropertiesHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Outposts
154} // 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