AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAppAuthorizationRequest.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/AppFabricRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appfabric/model/Credential.h>
11#include <aws/appfabric/model/Tenant.h>
12#include <aws/appfabric/model/AuthType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/appfabric/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace AppFabric
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_APPFABRIC_API CreateAppAuthorizationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAppAuthorization"; }
37
38 AWS_APPFABRIC_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetAppBundleIdentifier() const { return m_appBundleIdentifier; }
47 inline bool AppBundleIdentifierHasBeenSet() const { return m_appBundleIdentifierHasBeenSet; }
48 template<typename AppBundleIdentifierT = Aws::String>
49 void SetAppBundleIdentifier(AppBundleIdentifierT&& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = std::forward<AppBundleIdentifierT>(value); }
50 template<typename AppBundleIdentifierT = Aws::String>
51 CreateAppAuthorizationRequest& WithAppBundleIdentifier(AppBundleIdentifierT&& value) { SetAppBundleIdentifier(std::forward<AppBundleIdentifierT>(value)); return *this;}
53
55
65 inline const Aws::String& GetApp() const { return m_app; }
66 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
67 template<typename AppT = Aws::String>
68 void SetApp(AppT&& value) { m_appHasBeenSet = true; m_app = std::forward<AppT>(value); }
69 template<typename AppT = Aws::String>
70 CreateAppAuthorizationRequest& WithApp(AppT&& value) { SetApp(std::forward<AppT>(value)); return *this;}
72
74
80 inline const Credential& GetCredential() const { return m_credential; }
81 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
82 template<typename CredentialT = Credential>
83 void SetCredential(CredentialT&& value) { m_credentialHasBeenSet = true; m_credential = std::forward<CredentialT>(value); }
84 template<typename CredentialT = Credential>
85 CreateAppAuthorizationRequest& WithCredential(CredentialT&& value) { SetCredential(std::forward<CredentialT>(value)); return *this;}
87
89
93 inline const Tenant& GetTenant() const { return m_tenant; }
94 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
95 template<typename TenantT = Tenant>
96 void SetTenant(TenantT&& value) { m_tenantHasBeenSet = true; m_tenant = std::forward<TenantT>(value); }
97 template<typename TenantT = Tenant>
98 CreateAppAuthorizationRequest& WithTenant(TenantT&& value) { SetTenant(std::forward<TenantT>(value)); return *this;}
100
102
105 inline AuthType GetAuthType() const { return m_authType; }
106 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
107 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
108 inline CreateAppAuthorizationRequest& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
110
112
124 inline const Aws::String& GetClientToken() const { return m_clientToken; }
125 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
126 template<typename ClientTokenT = Aws::String>
127 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
128 template<typename ClientTokenT = Aws::String>
129 CreateAppAuthorizationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
131
133
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Vector<Tag>>
142 CreateAppAuthorizationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsT = Tag>
144 CreateAppAuthorizationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
146 private:
147
148 Aws::String m_appBundleIdentifier;
149 bool m_appBundleIdentifierHasBeenSet = false;
150
151 Aws::String m_app;
152 bool m_appHasBeenSet = false;
153
154 Credential m_credential;
155 bool m_credentialHasBeenSet = false;
156
157 Tenant m_tenant;
158 bool m_tenantHasBeenSet = false;
159
160 AuthType m_authType{AuthType::NOT_SET};
161 bool m_authTypeHasBeenSet = false;
162
164 bool m_clientTokenHasBeenSet = true;
165
166 Aws::Vector<Tag> m_tags;
167 bool m_tagsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace AppFabric
172} // 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