AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sso-admin/SSOAdminRequest.h>
11#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
12#include <aws/sso-admin/model/ApplicationStatus.h>
13#include <aws/sso-admin/model/PortalOptions.h>
14#include <aws/sso-admin/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SSOAdmin {
20namespace Model {
21
25 public:
26 AWS_SSOADMIN_API CreateApplicationRequest() = 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 "CreateApplication"; }
33
34 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
35
37
39
46 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
47 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
48 template <typename InstanceArnT = Aws::String>
49 void SetInstanceArn(InstanceArnT&& value) {
50 m_instanceArnHasBeenSet = true;
51 m_instanceArn = std::forward<InstanceArnT>(value);
52 }
53 template <typename InstanceArnT = Aws::String>
55 SetInstanceArn(std::forward<InstanceArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetApplicationProviderArn() const { return m_applicationProviderArn; }
65 inline bool ApplicationProviderArnHasBeenSet() const { return m_applicationProviderArnHasBeenSet; }
66 template <typename ApplicationProviderArnT = Aws::String>
67 void SetApplicationProviderArn(ApplicationProviderArnT&& value) {
68 m_applicationProviderArnHasBeenSet = true;
69 m_applicationProviderArn = std::forward<ApplicationProviderArnT>(value);
70 }
71 template <typename ApplicationProviderArnT = Aws::String>
72 CreateApplicationRequest& WithApplicationProviderArn(ApplicationProviderArnT&& value) {
73 SetApplicationProviderArn(std::forward<ApplicationProviderArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
119 inline const PortalOptions& GetPortalOptions() const { return m_portalOptions; }
120 inline bool PortalOptionsHasBeenSet() const { return m_portalOptionsHasBeenSet; }
121 template <typename PortalOptionsT = PortalOptions>
122 void SetPortalOptions(PortalOptionsT&& value) {
123 m_portalOptionsHasBeenSet = true;
124 m_portalOptions = std::forward<PortalOptionsT>(value);
125 }
126 template <typename PortalOptionsT = PortalOptions>
128 SetPortalOptions(std::forward<PortalOptionsT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template <typename TagsT = Aws::Vector<Tag>>
140 void SetTags(TagsT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags = std::forward<TagsT>(value);
143 }
144 template <typename TagsT = Aws::Vector<Tag>>
146 SetTags(std::forward<TagsT>(value));
147 return *this;
148 }
149 template <typename TagsT = Tag>
151 m_tagsHasBeenSet = true;
152 m_tags.emplace_back(std::forward<TagsT>(value));
153 return *this;
154 }
156
158
161 inline ApplicationStatus GetStatus() const { return m_status; }
162 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 inline void SetStatus(ApplicationStatus value) {
164 m_statusHasBeenSet = true;
165 m_status = value;
166 }
168 SetStatus(value);
169 return *this;
170 }
172
174
186 inline const Aws::String& GetClientToken() const { return m_clientToken; }
187 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
188 template <typename ClientTokenT = Aws::String>
189 void SetClientToken(ClientTokenT&& value) {
190 m_clientTokenHasBeenSet = true;
191 m_clientToken = std::forward<ClientTokenT>(value);
192 }
193 template <typename ClientTokenT = Aws::String>
195 SetClientToken(std::forward<ClientTokenT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_instanceArn;
201
202 Aws::String m_applicationProviderArn;
203
204 Aws::String m_name;
205
206 Aws::String m_description;
207
208 PortalOptions m_portalOptions;
209
210 Aws::Vector<Tag> m_tags;
211
213
215 bool m_instanceArnHasBeenSet = false;
216 bool m_applicationProviderArnHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_descriptionHasBeenSet = false;
219 bool m_portalOptionsHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221 bool m_statusHasBeenSet = false;
222 bool m_clientTokenHasBeenSet = true;
223};
224
225} // namespace Model
226} // namespace SSOAdmin
227} // namespace Aws
CreateApplicationRequest & WithInstanceArn(InstanceArnT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & AddTags(TagsT &&value)
CreateApplicationRequest & WithPortalOptions(PortalOptionsT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithName(NameT &&value)
void SetApplicationProviderArn(ApplicationProviderArnT &&value)
CreateApplicationRequest & WithStatus(ApplicationStatus value)
CreateApplicationRequest & WithApplicationProviderArn(ApplicationProviderArnT &&value)
AWS_SSOADMIN_API CreateApplicationRequest()=default
AWS_SSOADMIN_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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