/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about an Amazon EC2 security group.See Also:
AWS
* API Reference
The name of the security group.
*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *The name of the security group.
*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *The name of the security group.
*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *The name of the security group.
*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *The name of the security group.
*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *The name of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *The name of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *The name of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *The ID of the security group.
*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *The ID of the security group.
*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *The ID of the security group.
*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *The ID of the security group.
*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *The ID of the security group.
*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *The ID of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *The ID of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *The ID of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline AwsEc2SecurityGroupDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *[VPC only] The ID of the VPC for the security group.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *[VPC only] The ID of the VPC for the security group.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *[VPC only] The ID of the VPC for the security group.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *[VPC only] The ID of the VPC for the security group.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *[VPC only] The ID of the VPC for the security group.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *[VPC only] The ID of the VPC for the security group.
*/ inline AwsEc2SecurityGroupDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *[VPC only] The ID of the VPC for the security group.
*/ inline AwsEc2SecurityGroupDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *[VPC only] The ID of the VPC for the security group.
*/ inline AwsEc2SecurityGroupDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The inbound rules associated with the security group.
*/ inline const Aws::VectorThe inbound rules associated with the security group.
*/ inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; } /** *The inbound rules associated with the security group.
*/ inline void SetIpPermissions(const Aws::VectorThe inbound rules associated with the security group.
*/ inline void SetIpPermissions(Aws::VectorThe inbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& WithIpPermissions(const Aws::VectorThe inbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& WithIpPermissions(Aws::VectorThe inbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& AddIpPermissions(const AwsEc2SecurityGroupIpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; } /** *The inbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& AddIpPermissions(AwsEc2SecurityGroupIpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; } /** *[VPC only] The outbound rules associated with the security group.
*/ inline const Aws::Vector[VPC only] The outbound rules associated with the security group.
*/ inline bool IpPermissionsEgressHasBeenSet() const { return m_ipPermissionsEgressHasBeenSet; } /** *[VPC only] The outbound rules associated with the security group.
*/ inline void SetIpPermissionsEgress(const Aws::Vector[VPC only] The outbound rules associated with the security group.
*/ inline void SetIpPermissionsEgress(Aws::Vector[VPC only] The outbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& WithIpPermissionsEgress(const Aws::Vector[VPC only] The outbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& WithIpPermissionsEgress(Aws::Vector[VPC only] The outbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(const AwsEc2SecurityGroupIpPermission& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(value); return *this; } /** *[VPC only] The outbound rules associated with the security group.
*/ inline AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(AwsEc2SecurityGroupIpPermission&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(std::move(value)); return *this; } private: Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector