/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace AppFabric { namespace Model { /** */ class CreateAppAuthorizationRequest : public AppFabricRequest { public: AWS_APPFABRIC_API CreateAppAuthorizationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateAppAuthorization"; } AWS_APPFABRIC_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline const Aws::String& GetAppBundleIdentifier() const{ return m_appBundleIdentifier; } /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline bool AppBundleIdentifierHasBeenSet() const { return m_appBundleIdentifierHasBeenSet; } /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline void SetAppBundleIdentifier(const Aws::String& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = value; } /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline void SetAppBundleIdentifier(Aws::String&& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = std::move(value); } /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline void SetAppBundleIdentifier(const char* value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier.assign(value); } /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline CreateAppAuthorizationRequest& WithAppBundleIdentifier(const Aws::String& value) { SetAppBundleIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline CreateAppAuthorizationRequest& WithAppBundleIdentifier(Aws::String&& value) { SetAppBundleIdentifier(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle to use for the request.

*/ inline CreateAppAuthorizationRequest& WithAppBundleIdentifier(const char* value) { SetAppBundleIdentifier(value); return *this;} /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline const Aws::String& GetApp() const{ return m_app; } /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline bool AppHasBeenSet() const { return m_appHasBeenSet; } /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline void SetApp(const Aws::String& value) { m_appHasBeenSet = true; m_app = value; } /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline void SetApp(Aws::String&& value) { m_appHasBeenSet = true; m_app = std::move(value); } /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline void SetApp(const char* value) { m_appHasBeenSet = true; m_app.assign(value); } /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline CreateAppAuthorizationRequest& WithApp(const Aws::String& value) { SetApp(value); return *this;} /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline CreateAppAuthorizationRequest& WithApp(Aws::String&& value) { SetApp(std::move(value)); return *this;} /** *

The name of the application.

Valid values are:

  • * SLACK

  • ASANA

  • * JIRA

  • M365

  • * M365AUDITLOGS

  • ZOOM

  • *

    ZENDESK

  • OKTA

  • *

    GOOGLE

  • DROPBOX

  • *

    SMARTSHEET

  • CISCO

  • *
*/ inline CreateAppAuthorizationRequest& WithApp(const char* value) { SetApp(value); return *this;} /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline const Credential& GetCredential() const{ return m_credential; } /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; } /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline void SetCredential(const Credential& value) { m_credentialHasBeenSet = true; m_credential = value; } /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline void SetCredential(Credential&& value) { m_credentialHasBeenSet = true; m_credential = std::move(value); } /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline CreateAppAuthorizationRequest& WithCredential(const Credential& value) { SetCredential(value); return *this;} /** *

Contains credentials for the application, such as an API key or OAuth2 client * ID and secret.

Specify credentials that match the authorization type for * your request. For example, if the authorization type for your request is OAuth2 * (oauth2), then you should provide only the OAuth2 credentials.

*/ inline CreateAppAuthorizationRequest& WithCredential(Credential&& value) { SetCredential(std::move(value)); return *this;} /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline const Tenant& GetTenant() const{ return m_tenant; } /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; } /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline void SetTenant(const Tenant& value) { m_tenantHasBeenSet = true; m_tenant = value; } /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline void SetTenant(Tenant&& value) { m_tenantHasBeenSet = true; m_tenant = std::move(value); } /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline CreateAppAuthorizationRequest& WithTenant(const Tenant& value) { SetTenant(value); return *this;} /** *

Contains information about an application tenant, such as the application * display name and identifier.

*/ inline CreateAppAuthorizationRequest& WithTenant(Tenant&& value) { SetTenant(std::move(value)); return *this;} /** *

The authorization type for the app authorization.

*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *

The authorization type for the app authorization.

*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *

The authorization type for the app authorization.

*/ inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *

The authorization type for the app authorization.

*/ inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *

The authorization type for the app authorization.

*/ inline CreateAppAuthorizationRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *

The authorization type for the app authorization.

*/ inline CreateAppAuthorizationRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreateAppAuthorizationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreateAppAuthorizationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value.

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreateAppAuthorizationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline CreateAppAuthorizationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline CreateAppAuthorizationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline CreateAppAuthorizationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A map of the key-value pairs of the tag or tags to assign to the * resource.

*/ inline CreateAppAuthorizationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_appBundleIdentifier; bool m_appBundleIdentifierHasBeenSet = false; Aws::String m_app; bool m_appHasBeenSet = false; Credential m_credential; bool m_credentialHasBeenSet = false; Tenant m_tenant; bool m_tenantHasBeenSet = false; AuthType m_authType; bool m_authTypeHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppFabric } // namespace Aws