/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Amazon Virtual Private Cloud configuration details associated with your * Lambda function.

See Also:

AWS * API Reference

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifiers of the subnets that are associated with your Lambda * function.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

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

The identifier of the Amazon Virtual Private Cloud.

*/ inline VpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The identifier of the security group attached to the Lambda function.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The identifier of the security group attached to the Lambda function.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

The identifier of the security group attached to the Lambda function.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

The identifier of the security group attached to the Lambda function.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

The identifier of the security group attached to the Lambda function.

*/ inline VpcConfig& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The identifier of the security group attached to the Lambda function.

*/ inline VpcConfig& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The identifier of the security group attached to the Lambda function.

*/ inline VpcConfig& AddSecurityGroups(const SecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The identifier of the security group attached to the Lambda function.

*/ inline VpcConfig& AddSecurityGroups(SecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } private: Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws