AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
42 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
43 template<typename NameT = Aws::String>
44 CreateOutpostRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
46
48
49 inline const Aws::String& GetDescription() const { return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 CreateOutpostRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
56
58
61 inline const Aws::String& GetSiteId() const { return m_siteId; }
62 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
63 template<typename SiteIdT = Aws::String>
64 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
65 template<typename SiteIdT = Aws::String>
66 CreateOutpostRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
68
70
71 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
72 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
73 template<typename AvailabilityZoneT = Aws::String>
74 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
75 template<typename AvailabilityZoneT = Aws::String>
76 CreateOutpostRequest& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
78
80
81 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
82 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
83 template<typename AvailabilityZoneIdT = Aws::String>
84 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
85 template<typename AvailabilityZoneIdT = Aws::String>
86 CreateOutpostRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 CreateOutpostRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 CreateOutpostRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
102 }
104
106
109 inline SupportedHardwareType GetSupportedHardwareType() const { return m_supportedHardwareType; }
110 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
111 inline void SetSupportedHardwareType(SupportedHardwareType value) { m_supportedHardwareTypeHasBeenSet = true; m_supportedHardwareType = value; }
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::String m_siteId;
123 bool m_siteIdHasBeenSet = false;
124
125 Aws::String m_availabilityZone;
126 bool m_availabilityZoneHasBeenSet = false;
127
128 Aws::String m_availabilityZoneId;
129 bool m_availabilityZoneIdHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133
135 bool m_supportedHardwareTypeHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Outposts
140} // namespace Aws
CreateOutpostRequest & WithTags(TagsT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetSupportedHardwareType(SupportedHardwareType value)
const Aws::String & GetAvailabilityZoneId() const
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