/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace AppFabric { namespace Model { /** */ class ConnectAppAuthorizationRequest : public AppFabricRequest { public: AWS_APPFABRIC_API ConnectAppAuthorizationRequest(); // 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 "ConnectAppAuthorization"; } AWS_APPFABRIC_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the * app bundle that contains the app authorization 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 that contains the app authorization 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 that contains the app authorization 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 that contains the app authorization 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 that contains the app authorization 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 that contains the app authorization to use for the request.

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

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

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

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

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

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

*/ inline const Aws::String& GetAppAuthorizationIdentifier() const{ return m_appAuthorizationIdentifier; } /** *

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

*/ inline bool AppAuthorizationIdentifierHasBeenSet() const { return m_appAuthorizationIdentifierHasBeenSet; } /** *

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

*/ inline void SetAppAuthorizationIdentifier(const Aws::String& value) { m_appAuthorizationIdentifierHasBeenSet = true; m_appAuthorizationIdentifier = value; } /** *

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

*/ inline void SetAppAuthorizationIdentifier(Aws::String&& value) { m_appAuthorizationIdentifierHasBeenSet = true; m_appAuthorizationIdentifier = std::move(value); } /** *

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

*/ inline void SetAppAuthorizationIdentifier(const char* value) { m_appAuthorizationIdentifierHasBeenSet = true; m_appAuthorizationIdentifier.assign(value); } /** *

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

*/ inline ConnectAppAuthorizationRequest& WithAppAuthorizationIdentifier(const Aws::String& value) { SetAppAuthorizationIdentifier(value); return *this;} /** *

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

*/ inline ConnectAppAuthorizationRequest& WithAppAuthorizationIdentifier(Aws::String&& value) { SetAppAuthorizationIdentifier(std::move(value)); return *this;} /** *

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

*/ inline ConnectAppAuthorizationRequest& WithAppAuthorizationIdentifier(const char* value) { SetAppAuthorizationIdentifier(value); return *this;} /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline const AuthRequest& GetAuthRequest() const{ return m_authRequest; } /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline bool AuthRequestHasBeenSet() const { return m_authRequestHasBeenSet; } /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline void SetAuthRequest(const AuthRequest& value) { m_authRequestHasBeenSet = true; m_authRequest = value; } /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline void SetAuthRequest(AuthRequest&& value) { m_authRequestHasBeenSet = true; m_authRequest = std::move(value); } /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline ConnectAppAuthorizationRequest& WithAuthRequest(const AuthRequest& value) { SetAuthRequest(value); return *this;} /** *

Contains OAuth2 authorization information.

This is required if the app * authorization for the request is configured with an OAuth2 (oauth2) * authorization type.

*/ inline ConnectAppAuthorizationRequest& WithAuthRequest(AuthRequest&& value) { SetAuthRequest(std::move(value)); return *this;} private: Aws::String m_appBundleIdentifier; bool m_appBundleIdentifierHasBeenSet = false; Aws::String m_appAuthorizationIdentifier; bool m_appAuthorizationIdentifierHasBeenSet = false; AuthRequest m_authRequest; bool m_authRequestHasBeenSet = false; }; } // namespace Model } // namespace AppFabric } // namespace Aws