/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CodeStarconnections { namespace Model { /** */ class AWS_CODESTARCONNECTIONS_API CreateHostRequest : public CodeStarconnectionsRequest { public: CreateHostRequest(); // 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 "CreateHost"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline CreateHostRequest& WithName(const char* value) { SetName(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 CreateHostRequest& 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 CreateHostRequest& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The endpoint of the infrastructure to be represented by the host after it is * created.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

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

The VPC configuration to be provisioned for the host. A VPC must be * configured and the infrastructure to be represented by the host must already be * connected to the VPC.

*/ inline CreateHostRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; ProviderType m_providerType; bool m_providerTypeHasBeenSet; Aws::String m_providerEndpoint; bool m_providerEndpointHasBeenSet; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws