/** * 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 CloudFormation { namespace Model { /** */ class RegisterPublisherRequest : public CloudFormationRequest { public: AWS_CLOUDFORMATION_API RegisterPublisherRequest(); // 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 "RegisterPublisher"; } AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; protected: AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Whether you accept the Terms * and Conditions for publishing extensions in the CloudFormation registry. You * must accept the terms and conditions in order to register to publish public * extensions to the CloudFormation registry.

The default is * false.

*/ inline bool GetAcceptTermsAndConditions() const{ return m_acceptTermsAndConditions; } /** *

Whether you accept the Terms * and Conditions for publishing extensions in the CloudFormation registry. You * must accept the terms and conditions in order to register to publish public * extensions to the CloudFormation registry.

The default is * false.

*/ inline bool AcceptTermsAndConditionsHasBeenSet() const { return m_acceptTermsAndConditionsHasBeenSet; } /** *

Whether you accept the Terms * and Conditions for publishing extensions in the CloudFormation registry. You * must accept the terms and conditions in order to register to publish public * extensions to the CloudFormation registry.

The default is * false.

*/ inline void SetAcceptTermsAndConditions(bool value) { m_acceptTermsAndConditionsHasBeenSet = true; m_acceptTermsAndConditions = value; } /** *

Whether you accept the Terms * and Conditions for publishing extensions in the CloudFormation registry. You * must accept the terms and conditions in order to register to publish public * extensions to the CloudFormation registry.

The default is * false.

*/ inline RegisterPublisherRequest& WithAcceptTermsAndConditions(bool value) { SetAcceptTermsAndConditions(value); return *this;} /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline RegisterPublisherRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline RegisterPublisherRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

If you are using a Bitbucket or GitHub account for identity verification, the * Amazon Resource Name (ARN) for your connection to that account.

For more * information, see Registering * your account to publish CloudFormation extensions in the CloudFormation * CLI User Guide.

*/ inline RegisterPublisherRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} private: bool m_acceptTermsAndConditions; bool m_acceptTermsAndConditionsHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws