/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** */ class AuthorizeDataShareRequest : public RedshiftRequest { public: AWS_REDSHIFT_API AuthorizeDataShareRequest(); // 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 "AuthorizeDataShare"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; } /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline void SetDataShareArn(const Aws::String& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = value; } /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline void SetDataShareArn(Aws::String&& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline void SetDataShareArn(const char* value) { m_dataShareArnHasBeenSet = true; m_dataShareArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline AuthorizeDataShareRequest& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline AuthorizeDataShareRequest& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the datashare that producers are to * authorize sharing for.

*/ inline AuthorizeDataShareRequest& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;} /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline const Aws::String& GetConsumerIdentifier() const{ return m_consumerIdentifier; } /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; } /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline void SetConsumerIdentifier(const Aws::String& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = value; } /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline void SetConsumerIdentifier(Aws::String&& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = std::move(value); } /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline void SetConsumerIdentifier(const char* value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier.assign(value); } /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline AuthorizeDataShareRequest& WithConsumerIdentifier(const Aws::String& value) { SetConsumerIdentifier(value); return *this;} /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline AuthorizeDataShareRequest& WithConsumerIdentifier(Aws::String&& value) { SetConsumerIdentifier(std::move(value)); return *this;} /** *

The identifier of the data consumer that is authorized to access the * datashare. This identifier is an Amazon Web Services account ID or a keyword, * such as ADX.

*/ inline AuthorizeDataShareRequest& WithConsumerIdentifier(const char* value) { SetConsumerIdentifier(value); return *this;} private: Aws::String m_dataShareArn; bool m_dataShareArnHasBeenSet = false; Aws::String m_consumerIdentifier; bool m_consumerIdentifierHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws