AWS SDK for C++  1.9.69
AWS SDK for C++
CreateSecurityGroupResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetGroupId() const{ return m_groupId; }
42 
46  inline void SetGroupId(const Aws::String& value) { m_groupId = value; }
47 
51  inline void SetGroupId(Aws::String&& value) { m_groupId = std::move(value); }
52 
56  inline void SetGroupId(const char* value) { m_groupId.assign(value); }
57 
61  inline CreateSecurityGroupResponse& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
62 
66  inline CreateSecurityGroupResponse& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
67 
71  inline CreateSecurityGroupResponse& WithGroupId(const char* value) { SetGroupId(value); return *this;}
72 
73 
77  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
78 
82  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
83 
87  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
88 
92  inline CreateSecurityGroupResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 
97  inline CreateSecurityGroupResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 
102  inline CreateSecurityGroupResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
103 
107  inline CreateSecurityGroupResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
108 
109 
110 
111  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
112 
113 
114  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
115 
116 
117  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 
119 
120  inline CreateSecurityGroupResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
121 
122 
123  inline CreateSecurityGroupResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
124 
125  private:
126 
127  Aws::String m_groupId;
128 
129  Aws::Vector<Tag> m_tags;
130 
131  ResponseMetadata m_responseMetadata;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::CreateSecurityGroupResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateSecurityGroupResponse.h:117
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CreateSecurityGroupResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateSecurityGroupResponse.h:114
Aws::EC2::Model::CreateSecurityGroupResponse::AddTags
CreateSecurityGroupResponse & AddTags(Tag &&value)
Definition: CreateSecurityGroupResponse.h:107
Aws::EC2::Model::CreateSecurityGroupResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateSecurityGroupResponse.h:111
Aws::EC2::Model::CreateSecurityGroupResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSecurityGroupResponse.h:77
Aws::EC2::Model::CreateSecurityGroupResponse::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: CreateSecurityGroupResponse.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateSecurityGroupResponse::CreateSecurityGroupResponse
CreateSecurityGroupResponse()
AWSVector.h
Tag.h
Aws::EC2::Model::CreateSecurityGroupResponse::operator=
CreateSecurityGroupResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateSecurityGroupResponse::WithGroupId
CreateSecurityGroupResponse & WithGroupId(Aws::String &&value)
Definition: CreateSecurityGroupResponse.h:66
Aws::EC2::Model::CreateSecurityGroupResponse::WithResponseMetadata
CreateSecurityGroupResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateSecurityGroupResponse.h:123
Aws::EC2::Model::CreateSecurityGroupResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSecurityGroupResponse.h:82
Aws::EC2::Model::CreateSecurityGroupResponse
Definition: CreateSecurityGroupResponse.h:31
Aws::EC2::Model::CreateSecurityGroupResponse::WithGroupId
CreateSecurityGroupResponse & WithGroupId(const Aws::String &value)
Definition: CreateSecurityGroupResponse.h:61
Aws::EC2::Model::CreateSecurityGroupResponse::GetGroupId
const Aws::String & GetGroupId() const
Definition: CreateSecurityGroupResponse.h:41
Aws::EC2::Model::CreateSecurityGroupResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSecurityGroupResponse.h:87
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CreateSecurityGroupResponse::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: CreateSecurityGroupResponse.h:51
AWSString.h
Aws::EC2::Model::CreateSecurityGroupResponse::CreateSecurityGroupResponse
CreateSecurityGroupResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateSecurityGroupResponse::WithTags
CreateSecurityGroupResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSecurityGroupResponse.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateSecurityGroupResponse::WithGroupId
CreateSecurityGroupResponse & WithGroupId(const char *value)
Definition: CreateSecurityGroupResponse.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateSecurityGroupResponse::WithTags
CreateSecurityGroupResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSecurityGroupResponse.h:92
Aws::EC2::Model::CreateSecurityGroupResponse::WithResponseMetadata
CreateSecurityGroupResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateSecurityGroupResponse.h:120
Aws::EC2::Model::CreateSecurityGroupResponse::AddTags
CreateSecurityGroupResponse & AddTags(const Tag &value)
Definition: CreateSecurityGroupResponse.h:102
Aws::EC2::Model::CreateSecurityGroupResponse::SetGroupId
void SetGroupId(const char *value)
Definition: CreateSecurityGroupResponse.h:56
EC2_EXPORTS.h