AWS SDK for C++  1.9.126
AWS SDK for C++
DescribeSecurityGroupReferencesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<SecurityGroupReference>& GetSecurityGroupReferenceSet() const{ return m_securityGroupReferenceSet; }
41 
45  inline void SetSecurityGroupReferenceSet(const Aws::Vector<SecurityGroupReference>& value) { m_securityGroupReferenceSet = value; }
46 
50  inline void SetSecurityGroupReferenceSet(Aws::Vector<SecurityGroupReference>&& value) { m_securityGroupReferenceSet = std::move(value); }
51 
55  inline DescribeSecurityGroupReferencesResponse& WithSecurityGroupReferenceSet(const Aws::Vector<SecurityGroupReference>& value) { SetSecurityGroupReferenceSet(value); return *this;}
56 
60  inline DescribeSecurityGroupReferencesResponse& WithSecurityGroupReferenceSet(Aws::Vector<SecurityGroupReference>&& value) { SetSecurityGroupReferenceSet(std::move(value)); return *this;}
61 
65  inline DescribeSecurityGroupReferencesResponse& AddSecurityGroupReferenceSet(const SecurityGroupReference& value) { m_securityGroupReferenceSet.push_back(value); return *this; }
66 
70  inline DescribeSecurityGroupReferencesResponse& AddSecurityGroupReferenceSet(SecurityGroupReference&& value) { m_securityGroupReferenceSet.push_back(std::move(value)); return *this; }
71 
72 
73 
74  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
75 
76 
77  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
78 
79 
80  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
81 
82 
83  inline DescribeSecurityGroupReferencesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
84 
85 
86  inline DescribeSecurityGroupReferencesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
87 
88  private:
89 
90  Aws::Vector<SecurityGroupReference> m_securityGroupReferenceSet;
91 
92  ResponseMetadata m_responseMetadata;
93  };
94 
95 } // namespace Model
96 } // namespace EC2
97 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::operator=
DescribeSecurityGroupReferencesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::GetSecurityGroupReferenceSet
const Aws::Vector< SecurityGroupReference > & GetSecurityGroupReferenceSet() const
Definition: DescribeSecurityGroupReferencesResponse.h:40
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::WithResponseMetadata
DescribeSecurityGroupReferencesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSecurityGroupReferencesResponse.h:86
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse
Definition: DescribeSecurityGroupReferencesResponse.h:30
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::SetSecurityGroupReferenceSet
void SetSecurityGroupReferenceSet(const Aws::Vector< SecurityGroupReference > &value)
Definition: DescribeSecurityGroupReferencesResponse.h:45
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::AddSecurityGroupReferenceSet
DescribeSecurityGroupReferencesResponse & AddSecurityGroupReferenceSet(const SecurityGroupReference &value)
Definition: DescribeSecurityGroupReferencesResponse.h:65
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSecurityGroupReferencesResponse.h:77
Aws::EC2::Model::SecurityGroupReference
Definition: SecurityGroupReference.h:33
SecurityGroupReference.h
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeSecurityGroupReferencesResponse.h:74
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::AddSecurityGroupReferenceSet
DescribeSecurityGroupReferencesResponse & AddSecurityGroupReferenceSet(SecurityGroupReference &&value)
Definition: DescribeSecurityGroupReferencesResponse.h:70
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::DescribeSecurityGroupReferencesResponse
DescribeSecurityGroupReferencesResponse()
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSecurityGroupReferencesResponse.h:80
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::WithSecurityGroupReferenceSet
DescribeSecurityGroupReferencesResponse & WithSecurityGroupReferenceSet(Aws::Vector< SecurityGroupReference > &&value)
Definition: DescribeSecurityGroupReferencesResponse.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::WithSecurityGroupReferenceSet
DescribeSecurityGroupReferencesResponse & WithSecurityGroupReferenceSet(const Aws::Vector< SecurityGroupReference > &value)
Definition: DescribeSecurityGroupReferencesResponse.h:55
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::DescribeSecurityGroupReferencesResponse
DescribeSecurityGroupReferencesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EC2_EXPORTS.h
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::WithResponseMetadata
DescribeSecurityGroupReferencesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSecurityGroupReferencesResponse.h:83
Aws::EC2::Model::DescribeSecurityGroupReferencesResponse::SetSecurityGroupReferenceSet
void SetSecurityGroupReferenceSet(Aws::Vector< SecurityGroupReference > &&value)
Definition: DescribeSecurityGroupReferencesResponse.h:50