AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOutpostRequest.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/SupportedHardwareType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Outposts
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OUTPOSTS_API CreateOutpostRequest();
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 "CreateOutpost"; }
33
34 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
35
36
38
39 inline const Aws::String& GetName() const{ return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
42 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
43 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
44 inline CreateOutpostRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
45 inline CreateOutpostRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
46 inline CreateOutpostRequest& WithName(const char* value) { SetName(value); return *this;}
48
50
51 inline const Aws::String& GetDescription() const{ return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
54 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
55 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
56 inline CreateOutpostRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
57 inline CreateOutpostRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
58 inline CreateOutpostRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
60
62
65 inline const Aws::String& GetSiteId() const{ return m_siteId; }
66 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
67 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
68 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
69 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
70 inline CreateOutpostRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
71 inline CreateOutpostRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
72 inline CreateOutpostRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;}
74
76
77 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
78 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
79 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
80 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
81 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
82 inline CreateOutpostRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
83 inline CreateOutpostRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
84 inline CreateOutpostRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
86
88
89 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
90 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
91 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
92 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
93 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
95 inline CreateOutpostRequest& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
96 inline CreateOutpostRequest& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateOutpostRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
108 inline CreateOutpostRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateOutpostRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
110 inline CreateOutpostRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
111 inline CreateOutpostRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
112 inline CreateOutpostRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
113 inline CreateOutpostRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreateOutpostRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
115 inline CreateOutpostRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117
119
122 inline const SupportedHardwareType& GetSupportedHardwareType() const{ return m_supportedHardwareType; }
123 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
124 inline void SetSupportedHardwareType(const SupportedHardwareType& value) { m_supportedHardwareTypeHasBeenSet = true; m_supportedHardwareType = value; }
125 inline void SetSupportedHardwareType(SupportedHardwareType&& value) { m_supportedHardwareTypeHasBeenSet = true; m_supportedHardwareType = std::move(value); }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 Aws::String m_siteId;
138 bool m_siteIdHasBeenSet = false;
139
140 Aws::String m_availabilityZone;
141 bool m_availabilityZoneHasBeenSet = false;
142
143 Aws::String m_availabilityZoneId;
144 bool m_availabilityZoneIdHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148
149 SupportedHardwareType m_supportedHardwareType;
150 bool m_supportedHardwareTypeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Outposts
155} // namespace Aws
CreateOutpostRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateOutpostRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const SupportedHardwareType & GetSupportedHardwareType() const
CreateOutpostRequest & WithSiteId(Aws::String &&value)
CreateOutpostRequest & WithSupportedHardwareType(SupportedHardwareType &&value)
CreateOutpostRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateOutpostRequest & WithAvailabilityZone(const Aws::String &value)
CreateOutpostRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateOutpostRequest & AddTags(const char *key, Aws::String &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &value)
const Aws::String & GetAvailabilityZoneId() const
CreateOutpostRequest & WithDescription(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateOutpostRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateOutpostRequest & AddTags(const char *key, const char *value)
CreateOutpostRequest & WithAvailabilityZoneId(const char *value)
CreateOutpostRequest & WithSiteId(const char *value)
CreateOutpostRequest & WithName(const Aws::String &value)
CreateOutpostRequest & WithAvailabilityZoneId(const Aws::String &value)
CreateOutpostRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateOutpostRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateOutpostRequest & WithAvailabilityZone(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
CreateOutpostRequest & WithSiteId(const Aws::String &value)
void SetSupportedHardwareType(const SupportedHardwareType &value)
CreateOutpostRequest & WithAvailabilityZoneId(Aws::String &&value)
CreateOutpostRequest & WithDescription(const Aws::String &value)
CreateOutpostRequest & AddTags(Aws::String &&key, const char *value)
void SetSupportedHardwareType(SupportedHardwareType &&value)
CreateOutpostRequest & WithSupportedHardwareType(const SupportedHardwareType &value)
void SetAvailabilityZoneId(const Aws::String &value)
CreateOutpostRequest & WithDescription(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateOutpostRequest & WithAvailabilityZone(const char *value)
CreateOutpostRequest & AddTags(const Aws::String &key, const Aws::String &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