/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class CreateSecurityGroupResponse { public: AWS_EC2_API CreateSecurityGroupResponse(); AWS_EC2_API CreateSecurityGroupResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateSecurityGroupResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the security group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The ID of the security group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupId = value; } /** *

The ID of the security group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupId = std::move(value); } /** *

The ID of the security group.

*/ inline void SetGroupId(const char* value) { m_groupId.assign(value); } /** *

The ID of the security group.

*/ inline CreateSecurityGroupResponse& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The ID of the security group.

*/ inline CreateSecurityGroupResponse& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The ID of the security group.

*/ inline CreateSecurityGroupResponse& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The tags assigned to the security group.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags assigned to the security group.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

The tags assigned to the security group.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

The tags assigned to the security group.

*/ inline CreateSecurityGroupResponse& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags assigned to the security group.

*/ inline CreateSecurityGroupResponse& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the security group.

*/ inline CreateSecurityGroupResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags assigned to the security group.

*/ inline CreateSecurityGroupResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateSecurityGroupResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateSecurityGroupResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_groupId; Aws::Vector m_tags; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws