AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSVector.h>
12#include <aws/sso-admin/model/ApplicationStatus.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() = default;
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
50 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
51 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
52 template<typename InstanceArnT = Aws::String>
53 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
54 template<typename InstanceArnT = Aws::String>
55 CreateApplicationRequest& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetApplicationProviderArn() const { return m_applicationProviderArn; }
63 inline bool ApplicationProviderArnHasBeenSet() const { return m_applicationProviderArnHasBeenSet; }
64 template<typename ApplicationProviderArnT = Aws::String>
65 void SetApplicationProviderArn(ApplicationProviderArnT&& value) { m_applicationProviderArnHasBeenSet = true; m_applicationProviderArn = std::forward<ApplicationProviderArnT>(value); }
66 template<typename ApplicationProviderArnT = Aws::String>
67 CreateApplicationRequest& WithApplicationProviderArn(ApplicationProviderArnT&& value) { SetApplicationProviderArn(std::forward<ApplicationProviderArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
99 inline const PortalOptions& GetPortalOptions() const { return m_portalOptions; }
100 inline bool PortalOptionsHasBeenSet() const { return m_portalOptionsHasBeenSet; }
101 template<typename PortalOptionsT = PortalOptions>
102 void SetPortalOptions(PortalOptionsT&& value) { m_portalOptionsHasBeenSet = true; m_portalOptions = std::forward<PortalOptionsT>(value); }
103 template<typename PortalOptionsT = PortalOptions>
104 CreateApplicationRequest& WithPortalOptions(PortalOptionsT&& value) { SetPortalOptions(std::forward<PortalOptionsT>(value)); return *this;}
106
108
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template<typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
115 template<typename TagsT = Aws::Vector<Tag>>
116 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
117 template<typename TagsT = Tag>
118 CreateApplicationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
120
122
125 inline ApplicationStatus GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(ApplicationStatus value) { m_statusHasBeenSet = true; m_status = value; }
128 inline CreateApplicationRequest& WithStatus(ApplicationStatus value) { SetStatus(value); return *this;}
130
132
144 inline const Aws::String& GetClientToken() const { return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 template<typename ClientTokenT = Aws::String>
147 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
148 template<typename ClientTokenT = Aws::String>
149 CreateApplicationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
151 private:
152
153 Aws::String m_instanceArn;
154 bool m_instanceArnHasBeenSet = false;
155
156 Aws::String m_applicationProviderArn;
157 bool m_applicationProviderArnHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 PortalOptions m_portalOptions;
166 bool m_portalOptionsHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170
172 bool m_statusHasBeenSet = false;
173
175 bool m_clientTokenHasBeenSet = true;
176 };
177
178} // namespace Model
179} // namespace SSOAdmin
180} // 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