/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace WorkSpacesWeb { namespace Model { /** */ class CreateNetworkSettingsRequest : public WorkSpacesWebRequest { public: AWS_WORKSPACESWEB_API CreateNetworkSettingsRequest(); // 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 "CreateNetworkSettings"; } AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

One or more security groups used to control access from streaming instances * to your VPC.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The subnets in which network interfaces are created to connect streaming * instances to your VPC. At least two of these subnets must be in different * availability zones.

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

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline CreateNetworkSettingsRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline CreateNetworkSettingsRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline CreateNetworkSettingsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to add to the network settings resource. A tag is a key-value * pair.

*/ inline CreateNetworkSettingsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

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