/** * 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 ElasticsearchService { namespace Model { /** *

Modifies an Amazon OpenSearch Service-managed interface VPC * endpoint.

See Also:

AWS * API Reference

*/ class UpdateVpcEndpointRequest : public ElasticsearchServiceRequest { public: AWS_ELASTICSEARCHSERVICE_API UpdateVpcEndpointRequest(); // 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 "UpdateVpcEndpoint"; } AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline UpdateVpcEndpointRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline UpdateVpcEndpointRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

Unique identifier of the VPC endpoint to be updated.

*/ inline UpdateVpcEndpointRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline const VPCOptions& GetVpcOptions() const{ return m_vpcOptions; } /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline bool VpcOptionsHasBeenSet() const { return m_vpcOptionsHasBeenSet; } /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline void SetVpcOptions(const VPCOptions& value) { m_vpcOptionsHasBeenSet = true; m_vpcOptions = value; } /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline void SetVpcOptions(VPCOptions&& value) { m_vpcOptionsHasBeenSet = true; m_vpcOptions = std::move(value); } /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline UpdateVpcEndpointRequest& WithVpcOptions(const VPCOptions& value) { SetVpcOptions(value); return *this;} /** *

The security groups and/or subnets to add, remove, or modify.

*/ inline UpdateVpcEndpointRequest& WithVpcOptions(VPCOptions&& value) { SetVpcOptions(std::move(value)); return *this;} private: Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; VPCOptions m_vpcOptions; bool m_vpcOptionsHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws