AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateWebAppRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/Tag.h>
10#include <aws/awstransfer/model/WebAppEndpointDetails.h>
11#include <aws/awstransfer/model/WebAppEndpointPolicy.h>
12#include <aws/awstransfer/model/WebAppIdentityProviderDetails.h>
13#include <aws/awstransfer/model/WebAppUnits.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Transfer {
21namespace Model {
22
26 public:
27 AWS_TRANSFER_API CreateWebAppRequest() = 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 "CreateWebApp"; }
34
35 AWS_TRANSFER_API Aws::String SerializePayload() const override;
36
38
40
47 inline const WebAppIdentityProviderDetails& GetIdentityProviderDetails() const { return m_identityProviderDetails; }
48 inline bool IdentityProviderDetailsHasBeenSet() const { return m_identityProviderDetailsHasBeenSet; }
49 template <typename IdentityProviderDetailsT = WebAppIdentityProviderDetails>
50 void SetIdentityProviderDetails(IdentityProviderDetailsT&& value) {
51 m_identityProviderDetailsHasBeenSet = true;
52 m_identityProviderDetails = std::forward<IdentityProviderDetailsT>(value);
53 }
54 template <typename IdentityProviderDetailsT = WebAppIdentityProviderDetails>
55 CreateWebAppRequest& WithIdentityProviderDetails(IdentityProviderDetailsT&& value) {
56 SetIdentityProviderDetails(std::forward<IdentityProviderDetailsT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetAccessEndpoint() const { return m_accessEndpoint; }
71 inline bool AccessEndpointHasBeenSet() const { return m_accessEndpointHasBeenSet; }
72 template <typename AccessEndpointT = Aws::String>
73 void SetAccessEndpoint(AccessEndpointT&& value) {
74 m_accessEndpointHasBeenSet = true;
75 m_accessEndpoint = std::forward<AccessEndpointT>(value);
76 }
77 template <typename AccessEndpointT = Aws::String>
78 CreateWebAppRequest& WithAccessEndpoint(AccessEndpointT&& value) {
79 SetAccessEndpoint(std::forward<AccessEndpointT>(value));
80 return *this;
81 }
83
85
89 inline const WebAppUnits& GetWebAppUnits() const { return m_webAppUnits; }
90 inline bool WebAppUnitsHasBeenSet() const { return m_webAppUnitsHasBeenSet; }
91 template <typename WebAppUnitsT = WebAppUnits>
92 void SetWebAppUnits(WebAppUnitsT&& value) {
93 m_webAppUnitsHasBeenSet = true;
94 m_webAppUnits = std::forward<WebAppUnitsT>(value);
95 }
96 template <typename WebAppUnitsT = WebAppUnits>
97 CreateWebAppRequest& WithWebAppUnits(WebAppUnitsT&& value) {
98 SetWebAppUnits(std::forward<WebAppUnitsT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Vector<Tag>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsT = Tag>
120 CreateWebAppRequest& AddTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace_back(std::forward<TagsT>(value));
123 return *this;
124 }
126
128
134 inline WebAppEndpointPolicy GetWebAppEndpointPolicy() const { return m_webAppEndpointPolicy; }
135 inline bool WebAppEndpointPolicyHasBeenSet() const { return m_webAppEndpointPolicyHasBeenSet; }
137 m_webAppEndpointPolicyHasBeenSet = true;
138 m_webAppEndpointPolicy = value;
139 }
142 return *this;
143 }
145
147
151 inline const WebAppEndpointDetails& GetEndpointDetails() const { return m_endpointDetails; }
152 inline bool EndpointDetailsHasBeenSet() const { return m_endpointDetailsHasBeenSet; }
153 template <typename EndpointDetailsT = WebAppEndpointDetails>
154 void SetEndpointDetails(EndpointDetailsT&& value) {
155 m_endpointDetailsHasBeenSet = true;
156 m_endpointDetails = std::forward<EndpointDetailsT>(value);
157 }
158 template <typename EndpointDetailsT = WebAppEndpointDetails>
159 CreateWebAppRequest& WithEndpointDetails(EndpointDetailsT&& value) {
160 SetEndpointDetails(std::forward<EndpointDetailsT>(value));
161 return *this;
162 }
164 private:
165 WebAppIdentityProviderDetails m_identityProviderDetails;
166
167 Aws::String m_accessEndpoint;
168
169 WebAppUnits m_webAppUnits;
170
171 Aws::Vector<Tag> m_tags;
172
174
175 WebAppEndpointDetails m_endpointDetails;
176 bool m_identityProviderDetailsHasBeenSet = false;
177 bool m_accessEndpointHasBeenSet = false;
178 bool m_webAppUnitsHasBeenSet = false;
179 bool m_tagsHasBeenSet = false;
180 bool m_webAppEndpointPolicyHasBeenSet = false;
181 bool m_endpointDetailsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Transfer
186} // namespace Aws
const WebAppIdentityProviderDetails & GetIdentityProviderDetails() const
CreateWebAppRequest & WithWebAppEndpointPolicy(WebAppEndpointPolicy value)
void SetAccessEndpoint(AccessEndpointT &&value)
void SetWebAppEndpointPolicy(WebAppEndpointPolicy value)
CreateWebAppRequest & WithWebAppUnits(WebAppUnitsT &&value)
const WebAppEndpointDetails & GetEndpointDetails() const
CreateWebAppRequest & WithIdentityProviderDetails(IdentityProviderDetailsT &&value)
CreateWebAppRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
WebAppEndpointPolicy GetWebAppEndpointPolicy() const
void SetEndpointDetails(EndpointDetailsT &&value)
CreateWebAppRequest & WithEndpointDetails(EndpointDetailsT &&value)
CreateWebAppRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateWebAppRequest & WithAccessEndpoint(AccessEndpointT &&value)
AWS_TRANSFER_API CreateWebAppRequest()=default
const Aws::String & GetAccessEndpoint() const
AWS_TRANSFER_API Aws::String SerializePayload() const override
void SetIdentityProviderDetails(IdentityProviderDetailsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector