/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a security group.See Also:
AWS
* API Reference
A description of the security group.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the security group.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the security group.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the security group.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the security group.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the security group.
*/ inline SecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the security group.
*/ inline SecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the security group.
*/ inline SecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;} /** *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 SecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *The name of the security group.
*/ inline SecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *The name of the security group.
*/ inline SecurityGroup& WithGroupName(const char* value) { SetGroupName(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 SecurityGroup& WithIpPermissions(const Aws::VectorThe inbound rules associated with the security group.
*/ inline SecurityGroup& WithIpPermissions(Aws::VectorThe inbound rules associated with the security group.
*/ inline SecurityGroup& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; } /** *The inbound rules associated with the security group.
*/ inline SecurityGroup& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(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 SecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline SecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The Amazon Web Services account ID of the owner of the security group.
*/ inline SecurityGroup& WithOwnerId(const char* value) { SetOwnerId(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 SecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *The ID of the security group.
*/ inline SecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *The ID of the security group.
*/ inline SecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *The outbound rules associated with the security group.
*/ inline const Aws::VectorThe outbound rules associated with the security group.
*/ inline bool IpPermissionsEgressHasBeenSet() const { return m_ipPermissionsEgressHasBeenSet; } /** *The outbound rules associated with the security group.
*/ inline void SetIpPermissionsEgress(const Aws::VectorThe outbound rules associated with the security group.
*/ inline void SetIpPermissionsEgress(Aws::VectorThe outbound rules associated with the security group.
*/ inline SecurityGroup& WithIpPermissionsEgress(const Aws::VectorThe outbound rules associated with the security group.
*/ inline SecurityGroup& WithIpPermissionsEgress(Aws::VectorThe outbound rules associated with the security group.
*/ inline SecurityGroup& AddIpPermissionsEgress(const IpPermission& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(value); return *this; } /** *The outbound rules associated with the security group.
*/ inline SecurityGroup& AddIpPermissionsEgress(IpPermission&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(std::move(value)); return *this; } /** *Any tags assigned to the security group.
*/ inline const Aws::VectorAny tags assigned to the security group.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the security group.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the security group.
*/ inline void SetTags(Aws::VectorAny tags assigned to the security group.
*/ inline SecurityGroup& WithTags(const Aws::VectorAny tags assigned to the security group.
*/ inline SecurityGroup& WithTags(Aws::VectorAny tags assigned to the security group.
*/ inline SecurityGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the security group.
*/ inline SecurityGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The ID of the VPC for the security group.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *The ID of the VPC for the security group.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *The ID of the VPC for the security group.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *The ID of the VPC for the security group.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *The ID of the VPC for the security group.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *The ID of the VPC for the security group.
*/ inline SecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC for the security group.
*/ inline SecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC for the security group.
*/ inline SecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Vector