AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAppAuthorizationRequest.h
1
6#pragma once
7#include <aws/appfabric/AppFabricRequest.h>
8#include <aws/appfabric/AppFabric_EXPORTS.h>
9#include <aws/appfabric/model/AuthType.h>
10#include <aws/appfabric/model/Credential.h>
11#include <aws/appfabric/model/Tag.h>
12#include <aws/appfabric/model/Tenant.h>
13#include <aws/core/utils/UUID.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 AppFabric {
21namespace Model {
22
26 public:
27 AWS_APPFABRIC_API CreateAppAuthorizationRequest() = 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 "CreateAppAuthorization"; }
34
35 AWS_APPFABRIC_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetAppBundleIdentifier() const { return m_appBundleIdentifier; }
43 inline bool AppBundleIdentifierHasBeenSet() const { return m_appBundleIdentifierHasBeenSet; }
44 template <typename AppBundleIdentifierT = Aws::String>
45 void SetAppBundleIdentifier(AppBundleIdentifierT&& value) {
46 m_appBundleIdentifierHasBeenSet = true;
47 m_appBundleIdentifier = std::forward<AppBundleIdentifierT>(value);
48 }
49 template <typename AppBundleIdentifierT = Aws::String>
51 SetAppBundleIdentifier(std::forward<AppBundleIdentifierT>(value));
52 return *this;
53 }
55
57
67 inline const Aws::String& GetApp() const { return m_app; }
68 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
69 template <typename AppT = Aws::String>
70 void SetApp(AppT&& value) {
71 m_appHasBeenSet = true;
72 m_app = std::forward<AppT>(value);
73 }
74 template <typename AppT = Aws::String>
76 SetApp(std::forward<AppT>(value));
77 return *this;
78 }
80
82
88 inline const Credential& GetCredential() const { return m_credential; }
89 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
90 template <typename CredentialT = Credential>
91 void SetCredential(CredentialT&& value) {
92 m_credentialHasBeenSet = true;
93 m_credential = std::forward<CredentialT>(value);
94 }
95 template <typename CredentialT = Credential>
97 SetCredential(std::forward<CredentialT>(value));
98 return *this;
99 }
101
103
107 inline const Tenant& GetTenant() const { return m_tenant; }
108 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
109 template <typename TenantT = Tenant>
110 void SetTenant(TenantT&& value) {
111 m_tenantHasBeenSet = true;
112 m_tenant = std::forward<TenantT>(value);
113 }
114 template <typename TenantT = Tenant>
116 SetTenant(std::forward<TenantT>(value));
117 return *this;
118 }
120
122
125 inline AuthType GetAuthType() const { return m_authType; }
126 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
127 inline void SetAuthType(AuthType value) {
128 m_authTypeHasBeenSet = true;
129 m_authType = value;
130 }
132 SetAuthType(value);
133 return *this;
134 }
136
138
150 inline const Aws::String& GetClientToken() const { return m_clientToken; }
151 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
152 template <typename ClientTokenT = Aws::String>
153 void SetClientToken(ClientTokenT&& value) {
154 m_clientTokenHasBeenSet = true;
155 m_clientToken = std::forward<ClientTokenT>(value);
156 }
157 template <typename ClientTokenT = Aws::String>
159 SetClientToken(std::forward<ClientTokenT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template <typename TagsT = Aws::Vector<Tag>>
172 void SetTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags = std::forward<TagsT>(value);
175 }
176 template <typename TagsT = Aws::Vector<Tag>>
178 SetTags(std::forward<TagsT>(value));
179 return *this;
180 }
181 template <typename TagsT = Tag>
183 m_tagsHasBeenSet = true;
184 m_tags.emplace_back(std::forward<TagsT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_appBundleIdentifier;
190
191 Aws::String m_app;
192
193 Credential m_credential;
194
195 Tenant m_tenant;
196
197 AuthType m_authType{AuthType::NOT_SET};
198
200
201 Aws::Vector<Tag> m_tags;
202 bool m_appBundleIdentifierHasBeenSet = false;
203 bool m_appHasBeenSet = false;
204 bool m_credentialHasBeenSet = false;
205 bool m_tenantHasBeenSet = false;
206 bool m_authTypeHasBeenSet = false;
207 bool m_clientTokenHasBeenSet = true;
208 bool m_tagsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace AppFabric
213} // namespace Aws
CreateAppAuthorizationRequest & WithAuthType(AuthType value)
CreateAppAuthorizationRequest & WithTenant(TenantT &&value)
CreateAppAuthorizationRequest & WithClientToken(ClientTokenT &&value)
CreateAppAuthorizationRequest & WithCredential(CredentialT &&value)
AWS_APPFABRIC_API CreateAppAuthorizationRequest()=default
CreateAppAuthorizationRequest & AddTags(TagsT &&value)
AWS_APPFABRIC_API Aws::String SerializePayload() const override
CreateAppAuthorizationRequest & WithAppBundleIdentifier(AppBundleIdentifierT &&value)
CreateAppAuthorizationRequest & WithApp(AppT &&value)
CreateAppAuthorizationRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector