AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
43 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
44 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
45 inline CreateSiteRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
46 inline CreateSiteRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
47 inline CreateSiteRequest& WithName(const char* value) { SetName(value); return *this;}
49
51
52 inline const Aws::String& GetDescription() const{ return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
55 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
56 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
57 inline CreateSiteRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
58 inline CreateSiteRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
59 inline CreateSiteRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
61
63
68 inline const Aws::String& GetNotes() const{ return m_notes; }
69 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
70 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
71 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
72 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
73 inline CreateSiteRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
74 inline CreateSiteRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
75 inline CreateSiteRequest& WithNotes(const char* value) { SetNotes(value); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
86 inline CreateSiteRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
87 inline CreateSiteRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateSiteRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
89 inline CreateSiteRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
90 inline CreateSiteRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
91 inline CreateSiteRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
92 inline CreateSiteRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
93 inline CreateSiteRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline CreateSiteRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96
98
102 inline const Address& GetOperatingAddress() const{ return m_operatingAddress; }
103 inline bool OperatingAddressHasBeenSet() const { return m_operatingAddressHasBeenSet; }
104 inline void SetOperatingAddress(const Address& value) { m_operatingAddressHasBeenSet = true; m_operatingAddress = value; }
105 inline void SetOperatingAddress(Address&& value) { m_operatingAddressHasBeenSet = true; m_operatingAddress = std::move(value); }
106 inline CreateSiteRequest& WithOperatingAddress(const Address& value) { SetOperatingAddress(value); return *this;}
107 inline CreateSiteRequest& WithOperatingAddress(Address&& value) { SetOperatingAddress(std::move(value)); return *this;}
109
111
115 inline const Address& GetShippingAddress() const{ return m_shippingAddress; }
116 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
117 inline void SetShippingAddress(const Address& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = value; }
118 inline void SetShippingAddress(Address&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::move(value); }
119 inline CreateSiteRequest& WithShippingAddress(const Address& value) { SetShippingAddress(value); return *this;}
120 inline CreateSiteRequest& WithShippingAddress(Address&& value) { SetShippingAddress(std::move(value)); return *this;}
122
124
130 inline const RackPhysicalProperties& GetRackPhysicalProperties() const{ return m_rackPhysicalProperties; }
131 inline bool RackPhysicalPropertiesHasBeenSet() const { return m_rackPhysicalPropertiesHasBeenSet; }
132 inline void SetRackPhysicalProperties(const RackPhysicalProperties& value) { m_rackPhysicalPropertiesHasBeenSet = true; m_rackPhysicalProperties = value; }
133 inline void SetRackPhysicalProperties(RackPhysicalProperties&& value) { m_rackPhysicalPropertiesHasBeenSet = true; m_rackPhysicalProperties = std::move(value); }
137 private:
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_notes;
146 bool m_notesHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150
151 Address m_operatingAddress;
152 bool m_operatingAddressHasBeenSet = false;
153
154 Address m_shippingAddress;
155 bool m_shippingAddressHasBeenSet = false;
156
157 RackPhysicalProperties m_rackPhysicalProperties;
158 bool m_rackPhysicalPropertiesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace Outposts
163} // namespace Aws
CreateSiteRequest & WithNotes(const char *value)
CreateSiteRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSiteRequest & WithName(const Aws::String &value)
CreateSiteRequest & WithDescription(const char *value)
CreateSiteRequest & WithOperatingAddress(const Address &value)
void SetNotes(const Aws::String &value)
CreateSiteRequest & AddTags(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetRackPhysicalProperties(RackPhysicalProperties &&value)
CreateSiteRequest & WithNotes(const Aws::String &value)
CreateSiteRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetRackPhysicalProperties(const RackPhysicalProperties &value)
CreateSiteRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSiteRequest & WithRackPhysicalProperties(RackPhysicalProperties &&value)
CreateSiteRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetName(const Aws::String &value)
const RackPhysicalProperties & GetRackPhysicalProperties() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSiteRequest & WithOperatingAddress(Address &&value)
CreateSiteRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSiteRequest & WithNotes(Aws::String &&value)
const Aws::String & GetDescription() const
CreateSiteRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDescription(const Aws::String &value)
CreateSiteRequest & WithName(const char *value)
CreateSiteRequest & WithShippingAddress(Address &&value)
CreateSiteRequest & WithRackPhysicalProperties(const RackPhysicalProperties &value)
CreateSiteRequest & WithDescription(Aws::String &&value)
void SetOperatingAddress(const Address &value)
CreateSiteRequest & WithDescription(const Aws::String &value)
CreateSiteRequest & AddTags(const char *key, Aws::String &&value)
CreateSiteRequest & WithShippingAddress(const Address &value)
CreateSiteRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSiteRequest & WithName(Aws::String &&value)
void SetShippingAddress(const Address &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