AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppBundleIdentifier(const Aws::String& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = value; }
49 inline void SetAppBundleIdentifier(Aws::String&& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = std::move(value); }
50 inline void SetAppBundleIdentifier(const char* value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier.assign(value); }
53 inline CreateAppAuthorizationRequest& WithAppBundleIdentifier(const char* value) { SetAppBundleIdentifier(value); return *this;}
55
57
67 inline const Aws::String& GetApp() const{ return m_app; }
68 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
69 inline void SetApp(const Aws::String& value) { m_appHasBeenSet = true; m_app = value; }
70 inline void SetApp(Aws::String&& value) { m_appHasBeenSet = true; m_app = std::move(value); }
71 inline void SetApp(const char* value) { m_appHasBeenSet = true; m_app.assign(value); }
72 inline CreateAppAuthorizationRequest& WithApp(const Aws::String& value) { SetApp(value); return *this;}
73 inline CreateAppAuthorizationRequest& WithApp(Aws::String&& value) { SetApp(std::move(value)); return *this;}
74 inline CreateAppAuthorizationRequest& WithApp(const char* value) { SetApp(value); return *this;}
76
78
84 inline const Credential& GetCredential() const{ return m_credential; }
85 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
86 inline void SetCredential(const Credential& value) { m_credentialHasBeenSet = true; m_credential = value; }
87 inline void SetCredential(Credential&& value) { m_credentialHasBeenSet = true; m_credential = std::move(value); }
88 inline CreateAppAuthorizationRequest& WithCredential(const Credential& value) { SetCredential(value); return *this;}
89 inline CreateAppAuthorizationRequest& WithCredential(Credential&& value) { SetCredential(std::move(value)); return *this;}
91
93
97 inline const Tenant& GetTenant() const{ return m_tenant; }
98 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
99 inline void SetTenant(const Tenant& value) { m_tenantHasBeenSet = true; m_tenant = value; }
100 inline void SetTenant(Tenant&& value) { m_tenantHasBeenSet = true; m_tenant = std::move(value); }
101 inline CreateAppAuthorizationRequest& WithTenant(const Tenant& value) { SetTenant(value); return *this;}
102 inline CreateAppAuthorizationRequest& WithTenant(Tenant&& value) { SetTenant(std::move(value)); return *this;}
104
106
109 inline const AuthType& GetAuthType() const{ return m_authType; }
110 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
111 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
112 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
113 inline CreateAppAuthorizationRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
114 inline CreateAppAuthorizationRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
116
118
130 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
131 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
133 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
134 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
135 inline CreateAppAuthorizationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
136 inline CreateAppAuthorizationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
137 inline CreateAppAuthorizationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
139
141
145 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
149 inline CreateAppAuthorizationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 inline CreateAppAuthorizationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 inline CreateAppAuthorizationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 inline CreateAppAuthorizationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_appBundleIdentifier;
157 bool m_appBundleIdentifierHasBeenSet = false;
158
159 Aws::String m_app;
160 bool m_appHasBeenSet = false;
161
162 Credential m_credential;
163 bool m_credentialHasBeenSet = false;
164
165 Tenant m_tenant;
166 bool m_tenantHasBeenSet = false;
167
168 AuthType m_authType;
169 bool m_authTypeHasBeenSet = false;
170
171 Aws::String m_clientToken;
172 bool m_clientTokenHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace AppFabric
180} // namespace Aws
CreateAppAuthorizationRequest & WithClientToken(const char *value)
CreateAppAuthorizationRequest & WithAppBundleIdentifier(const char *value)
CreateAppAuthorizationRequest & WithApp(const Aws::String &value)
CreateAppAuthorizationRequest & WithAuthType(AuthType &&value)
CreateAppAuthorizationRequest & WithClientToken(const Aws::String &value)
CreateAppAuthorizationRequest & WithTenant(const Tenant &value)
CreateAppAuthorizationRequest & WithApp(Aws::String &&value)
AWS_APPFABRIC_API Aws::String SerializePayload() const override
CreateAppAuthorizationRequest & WithCredential(const Credential &value)
CreateAppAuthorizationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAppAuthorizationRequest & WithAppBundleIdentifier(const Aws::String &value)
CreateAppAuthorizationRequest & WithTenant(Tenant &&value)
CreateAppAuthorizationRequest & WithAuthType(const AuthType &value)
CreateAppAuthorizationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAppAuthorizationRequest & AddTags(const Tag &value)
CreateAppAuthorizationRequest & WithAppBundleIdentifier(Aws::String &&value)
CreateAppAuthorizationRequest & WithApp(const char *value)
CreateAppAuthorizationRequest & WithClientToken(Aws::String &&value)
CreateAppAuthorizationRequest & WithCredential(Credential &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector