/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkSpacesWeb { namespace Model { /** *

A network settings resource that can be associated with a web portal. Once * associated with a web portal, network settings define how streaming instances * will connect with your specified VPC.

See Also:

AWS * API Reference

*/ class NetworkSettings { public: AWS_WORKSPACESWEB_API NetworkSettings(); AWS_WORKSPACESWEB_API NetworkSettings(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API NetworkSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline const Aws::Vector& GetAssociatedPortalArns() const{ return m_associatedPortalArns; } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline void SetAssociatedPortalArns(const Aws::Vector& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = value; } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline void SetAssociatedPortalArns(Aws::Vector&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = std::move(value); } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline NetworkSettings& WithAssociatedPortalArns(const Aws::Vector& value) { SetAssociatedPortalArns(value); return *this;} /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline NetworkSettings& WithAssociatedPortalArns(Aws::Vector&& value) { SetAssociatedPortalArns(std::move(value)); return *this;} /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline NetworkSettings& AddAssociatedPortalArns(const Aws::String& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline NetworkSettings& AddAssociatedPortalArns(Aws::String&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(std::move(value)); return *this; } /** *

A list of web portal ARNs that this network settings is associated with.

*/ inline NetworkSettings& AddAssociatedPortalArns(const char* value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } /** *

The ARN of the network settings.

*/ inline const Aws::String& GetNetworkSettingsArn() const{ return m_networkSettingsArn; } /** *

The ARN of the network settings.

*/ inline bool NetworkSettingsArnHasBeenSet() const { return m_networkSettingsArnHasBeenSet; } /** *

The ARN of the network settings.

*/ inline void SetNetworkSettingsArn(const Aws::String& value) { m_networkSettingsArnHasBeenSet = true; m_networkSettingsArn = value; } /** *

The ARN of the network settings.

*/ inline void SetNetworkSettingsArn(Aws::String&& value) { m_networkSettingsArnHasBeenSet = true; m_networkSettingsArn = std::move(value); } /** *

The ARN of the network settings.

*/ inline void SetNetworkSettingsArn(const char* value) { m_networkSettingsArnHasBeenSet = true; m_networkSettingsArn.assign(value); } /** *

The ARN of the network settings.

*/ inline NetworkSettings& WithNetworkSettingsArn(const Aws::String& value) { SetNetworkSettingsArn(value); return *this;} /** *

The ARN of the network settings.

*/ inline NetworkSettings& WithNetworkSettingsArn(Aws::String&& value) { SetNetworkSettingsArn(std::move(value)); return *this;} /** *

The ARN of the network settings.

*/ inline NetworkSettings& WithNetworkSettingsArn(const char* value) { SetNetworkSettingsArn(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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& 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 NetworkSettings& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(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 NetworkSettings& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC that streaming instances will connect to.

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

The VPC that streaming instances will connect to.

*/ inline NetworkSettings& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::Vector m_associatedPortalArns; bool m_associatedPortalArnsHasBeenSet = false; Aws::String m_networkSettingsArn; bool m_networkSettingsArnHasBeenSet = 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 WorkSpacesWeb } // namespace Aws