/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

This data type is used as a response element in the following actions:

*
  • AuthorizeDBSecurityGroupIngress

  • * DescribeDBSecurityGroups

  • * RevokeDBSecurityGroupIngress

See Also:

* AWS * API Reference

*/ class EC2SecurityGroup { public: AWS_RDS_API EC2SecurityGroup(); AWS_RDS_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API EC2SecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

Provides the status of the EC2 security group. Status can be "authorizing", * "authorized", "revoking", and "revoked".

*/ inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Specifies the name of the EC2 security group.

*/ inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; } /** *

Specifies the name of the EC2 security group.

*/ inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; } /** *

Specifies the name of the EC2 security group.

*/ inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; } /** *

Specifies the name of the EC2 security group.

*/ inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); } /** *

Specifies the name of the EC2 security group.

*/ inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); } /** *

Specifies the name of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;} /** *

Specifies the name of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;} /** *

Specifies the name of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;} /** *

Specifies the id of the EC2 security group.

*/ inline const Aws::String& GetEC2SecurityGroupId() const{ return m_eC2SecurityGroupId; } /** *

Specifies the id of the EC2 security group.

*/ inline bool EC2SecurityGroupIdHasBeenSet() const { return m_eC2SecurityGroupIdHasBeenSet; } /** *

Specifies the id of the EC2 security group.

*/ inline void SetEC2SecurityGroupId(const Aws::String& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; } /** *

Specifies the id of the EC2 security group.

*/ inline void SetEC2SecurityGroupId(Aws::String&& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = std::move(value); } /** *

Specifies the id of the EC2 security group.

*/ inline void SetEC2SecurityGroupId(const char* value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId.assign(value); } /** *

Specifies the id of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupId(const Aws::String& value) { SetEC2SecurityGroupId(value); return *this;} /** *

Specifies the id of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupId(Aws::String&& value) { SetEC2SecurityGroupId(std::move(value)); return *this;} /** *

Specifies the id of the EC2 security group.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupId(const char* value) { SetEC2SecurityGroupId(value); return *this;} /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; } /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; } /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; } /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); } /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); } /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;} /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;} /** *

Specifies the Amazon Web Services ID of the owner of the EC2 security group * specified in the EC2SecurityGroupName field.

*/ inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;} private: Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_eC2SecurityGroupName; bool m_eC2SecurityGroupNameHasBeenSet = false; Aws::String m_eC2SecurityGroupId; bool m_eC2SecurityGroupIdHasBeenSet = false; Aws::String m_eC2SecurityGroupOwnerId; bool m_eC2SecurityGroupOwnerIdHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws