/** * 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 OpenSearchServerless { namespace Model { /** */ class CreateVpcEndpointRequest : public OpenSearchServerlessRequest { public: AWS_OPENSEARCHSERVERLESS_API CreateVpcEndpointRequest(); // 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 "CreateVpcEndpoint"; } AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override; AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline CreateVpcEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline CreateVpcEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline CreateVpcEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The name of the interface endpoint.

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

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateVpcEndpointRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateVpcEndpointRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateVpcEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateVpcEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The unique identifiers of the security groups that define the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateVpcEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline CreateVpcEndpointRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline CreateVpcEndpointRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline CreateVpcEndpointRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline CreateVpcEndpointRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The ID of one or more subnets from which you'll access OpenSearch * Serverless.

*/ inline CreateVpcEndpointRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline CreateVpcEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline CreateVpcEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC from which you'll access OpenSearch Serverless.

*/ inline CreateVpcEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws