/** * 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 namespace Aws { namespace CodeStarconnections { namespace Model { /** */ class CreateConnectionRequest : public CodeStarconnectionsRequest { public: AWS_CODESTARCONNECTIONS_API CreateConnectionRequest(); // 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 "CreateConnection"; } AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override; AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline const ProviderType& GetProviderType() const{ return m_providerType; } /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; } /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; } /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); } /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline CreateConnectionRequest& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The name of the external provider where your third-party code repository is * configured.

*/ inline CreateConnectionRequest& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The name of the connection to be created. The name must be unique in the * calling AWS account.

*/ inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

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

The key-value pair to use when tagging the resource.

*/ inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline const Aws::String& GetHostArn() const{ return m_hostArn; } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline void SetHostArn(const Aws::String& value) { m_hostArnHasBeenSet = true; m_hostArn = value; } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline void SetHostArn(Aws::String&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline void SetHostArn(const char* value) { m_hostArnHasBeenSet = true; m_hostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline CreateConnectionRequest& WithHostArn(const Aws::String& value) { SetHostArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline CreateConnectionRequest& WithHostArn(Aws::String&& value) { SetHostArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the host associated with the connection to * be created.

*/ inline CreateConnectionRequest& WithHostArn(const char* value) { SetHostArn(value); return *this;} private: ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_hostArn; bool m_hostArnHasBeenSet = false; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws