AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/PortalOptions.h>
11#include <aws/sso-admin/model/ApplicationStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sso-admin/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SSOAdmin
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SSOADMIN_API CreateApplicationRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
36
37 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetApplicationProviderArn() const{ return m_applicationProviderArn; }
47 inline bool ApplicationProviderArnHasBeenSet() const { return m_applicationProviderArnHasBeenSet; }
48 inline void SetApplicationProviderArn(const Aws::String& value) { m_applicationProviderArnHasBeenSet = true; m_applicationProviderArn = value; }
49 inline void SetApplicationProviderArn(Aws::String&& value) { m_applicationProviderArnHasBeenSet = true; m_applicationProviderArn = std::move(value); }
50 inline void SetApplicationProviderArn(const char* value) { m_applicationProviderArnHasBeenSet = true; m_applicationProviderArn.assign(value); }
53 inline CreateApplicationRequest& WithApplicationProviderArn(const char* value) { SetApplicationProviderArn(value); return *this;}
55
57
69 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
72 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
73 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
74 inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
75 inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
76 inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
78
80
83 inline const Aws::String& GetDescription() const{ return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
88 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
92
94
101 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
102 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
103 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
104 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
105 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
106 inline CreateApplicationRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
107 inline CreateApplicationRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
108 inline CreateApplicationRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
110
112
115 inline const Aws::String& GetName() const{ return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
118 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
119 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
120 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
121 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
122 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
124
126
130 inline const PortalOptions& GetPortalOptions() const{ return m_portalOptions; }
131 inline bool PortalOptionsHasBeenSet() const { return m_portalOptionsHasBeenSet; }
132 inline void SetPortalOptions(const PortalOptions& value) { m_portalOptionsHasBeenSet = true; m_portalOptions = value; }
133 inline void SetPortalOptions(PortalOptions&& value) { m_portalOptionsHasBeenSet = true; m_portalOptions = std::move(value); }
134 inline CreateApplicationRequest& WithPortalOptions(const PortalOptions& value) { SetPortalOptions(value); return *this;}
135 inline CreateApplicationRequest& WithPortalOptions(PortalOptions&& value) { SetPortalOptions(std::move(value)); return *this;}
137
139
142 inline const ApplicationStatus& GetStatus() const{ return m_status; }
143 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
144 inline void SetStatus(const ApplicationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
145 inline void SetStatus(ApplicationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
146 inline CreateApplicationRequest& WithStatus(const ApplicationStatus& value) { SetStatus(value); return *this;}
147 inline CreateApplicationRequest& WithStatus(ApplicationStatus&& value) { SetStatus(std::move(value)); return *this;}
149
151
154 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
159 inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
160 inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
161 inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
163 private:
164
165 Aws::String m_applicationProviderArn;
166 bool m_applicationProviderArnHasBeenSet = false;
167
168 Aws::String m_clientToken;
169 bool m_clientTokenHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
174 Aws::String m_instanceArn;
175 bool m_instanceArnHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 PortalOptions m_portalOptions;
181 bool m_portalOptionsHasBeenSet = false;
182
183 ApplicationStatus m_status;
184 bool m_statusHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SSOAdmin
192} // namespace Aws
CreateApplicationRequest & WithClientToken(const Aws::String &value)
CreateApplicationRequest & WithName(Aws::String &&value)
CreateApplicationRequest & WithApplicationProviderArn(Aws::String &&value)
CreateApplicationRequest & WithStatus(const ApplicationStatus &value)
CreateApplicationRequest & WithApplicationProviderArn(const Aws::String &value)
CreateApplicationRequest & WithInstanceArn(const Aws::String &value)
CreateApplicationRequest & WithName(const char *value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateApplicationRequest & WithPortalOptions(PortalOptions &&value)
CreateApplicationRequest & WithInstanceArn(Aws::String &&value)
CreateApplicationRequest & WithDescription(const char *value)
CreateApplicationRequest & WithStatus(ApplicationStatus &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithInstanceArn(const char *value)
CreateApplicationRequest & WithClientToken(const char *value)
CreateApplicationRequest & WithPortalOptions(const PortalOptions &value)
CreateApplicationRequest & AddTags(const Tag &value)
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationRequest & WithName(const Aws::String &value)
CreateApplicationRequest & WithApplicationProviderArn(const char *value)
CreateApplicationRequest & WithDescription(Aws::String &&value)
CreateApplicationRequest & AddTags(Tag &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
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