/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeStarconnections { namespace Model { class GetHostResult { public: AWS_CODESTARCONNECTIONS_API GetHostResult(); AWS_CODESTARCONNECTIONS_API GetHostResult(const Aws::AmazonWebServiceResult& result); AWS_CODESTARCONNECTIONS_API GetHostResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the requested host.

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

The name of the requested host.

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

The name of the requested host.

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

The name of the requested host.

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

The name of the requested host.

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

The name of the requested host.

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

The name of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The status of the requested host.

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

The provider type of the requested host, such as GitHub Enterprise * Server.

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

The provider type of the requested host, such as GitHub Enterprise * Server.

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

The provider type of the requested host, such as GitHub Enterprise * Server.

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

The provider type of the requested host, such as GitHub Enterprise * Server.

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

The provider type of the requested host, such as GitHub Enterprise * Server.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The endpoint of the infrastructure represented by the requested host.

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

The VPC configuration of the requested host.

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

The VPC configuration of the requested host.

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

The VPC configuration of the requested host.

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

The VPC configuration of the requested host.

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

The VPC configuration of the requested host.

*/ inline GetHostResult& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetHostResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetHostResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetHostResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_status; ProviderType m_providerType; Aws::String m_providerEndpoint; VpcConfiguration m_vpcConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws