/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeStarconnections { namespace Model { /** *

A resource that represents the infrastructure where a third-party provider is * installed. The host is used when you create connections to an installed * third-party provider type, such as GitHub Enterprise Server. You create one host * for all connections to that provider.

A host created through the * CLI or the SDK is in `PENDING` status by default. You can make its status * `AVAILABLE` by setting up the host in the console.

See * Also:

AWS * API Reference

*/ class Host { public: AWS_CODESTARCONNECTIONS_API Host(); AWS_CODESTARCONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue); AWS_CODESTARCONNECTIONS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the host.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the host.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the host.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the host.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the host.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the host.

*/ inline Host& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the host.

*/ inline Host& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the host.

*/ inline Host& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

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

The Amazon Resource Name (ARN) of the host.

*/ inline Host& WithHostArn(const char* value) { SetHostArn(value); return *this;} /** *

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The name of the installed provider to be associated with your connection. The * host resource represents the infrastructure where your provider type is * installed. The valid provider type is GitHub Enterprise Server.

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

The endpoint of the infrastructure where your provider type is installed.

*/ inline const Aws::String& GetProviderEndpoint() const{ return m_providerEndpoint; } /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; } /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline void SetProviderEndpoint(const Aws::String& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = value; } /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline void SetProviderEndpoint(Aws::String&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::move(value); } /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline void SetProviderEndpoint(const char* value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint.assign(value); } /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline Host& WithProviderEndpoint(const Aws::String& value) { SetProviderEndpoint(value); return *this;} /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline Host& WithProviderEndpoint(Aws::String&& value) { SetProviderEndpoint(std::move(value)); return *this;} /** *

The endpoint of the infrastructure where your provider type is installed.

*/ inline Host& WithProviderEndpoint(const char* value) { SetProviderEndpoint(value); return *this;} /** *

The VPC configuration provisioned for the host.

*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *

The VPC configuration provisioned for the host.

*/ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** *

The VPC configuration provisioned for the host.

*/ inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } /** *

The VPC configuration provisioned for the host.

*/ inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } /** *

The VPC configuration provisioned for the host.

*/ inline Host& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *

The VPC configuration provisioned for the host.

*/ inline Host& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline Host& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline Host& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, * VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.

*/ inline Host& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The status description for the host.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status description for the host.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status description for the host.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status description for the host.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status description for the host.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status description for the host.

*/ inline Host& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status description for the host.

*/ inline Host& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status description for the host.

*/ inline Host& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_hostArn; bool m_hostArnHasBeenSet = false; ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; Aws::String m_providerEndpoint; bool m_providerEndpointHasBeenSet = false; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws