AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
CreateSecurityGroupResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API CreateSecurityGroupResponse() = default;
32
34
37 inline const Aws::String& GetGroupId() const { return m_groupId; }
38 template <typename GroupIdT = Aws::String>
39 void SetGroupId(GroupIdT&& value) {
40 m_groupIdHasBeenSet = true;
41 m_groupId = std::forward<GroupIdT>(value);
42 }
43 template <typename GroupIdT = Aws::String>
45 SetGroupId(std::forward<GroupIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
55 template <typename TagsT = Aws::Vector<Tag>>
56 void SetTags(TagsT&& value) {
57 m_tagsHasBeenSet = true;
58 m_tags = std::forward<TagsT>(value);
59 }
60 template <typename TagsT = Aws::Vector<Tag>>
62 SetTags(std::forward<TagsT>(value));
63 return *this;
64 }
65 template <typename TagsT = Tag>
67 m_tagsHasBeenSet = true;
68 m_tags.emplace_back(std::forward<TagsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSecurityGroupArn() const { return m_securityGroupArn; }
78 template <typename SecurityGroupArnT = Aws::String>
79 void SetSecurityGroupArn(SecurityGroupArnT&& value) {
80 m_securityGroupArnHasBeenSet = true;
81 m_securityGroupArn = std::forward<SecurityGroupArnT>(value);
82 }
83 template <typename SecurityGroupArnT = Aws::String>
85 SetSecurityGroupArn(std::forward<SecurityGroupArnT>(value));
86 return *this;
87 }
89
91
92 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
93 template <typename ResponseMetadataT = ResponseMetadata>
94 void SetResponseMetadata(ResponseMetadataT&& value) {
95 m_responseMetadataHasBeenSet = true;
96 m_responseMetadata = std::forward<ResponseMetadataT>(value);
97 }
98 template <typename ResponseMetadataT = ResponseMetadata>
100 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
101 return *this;
102 }
104 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
105
106 private:
107 Aws::String m_groupId;
108
109 Aws::Vector<Tag> m_tags;
110
111 Aws::String m_securityGroupArn;
112
113 ResponseMetadata m_responseMetadata;
114 Aws::Http::HttpResponseCode m_HttpResponseCode;
115 bool m_groupIdHasBeenSet = false;
116 bool m_tagsHasBeenSet = false;
117 bool m_securityGroupArnHasBeenSet = false;
118 bool m_responseMetadataHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
AWS_EC2_API CreateSecurityGroupResponse()=default
CreateSecurityGroupResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateSecurityGroupResponse & WithGroupId(GroupIdT &&value)
AWS_EC2_API CreateSecurityGroupResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSecurityGroupResponse & AddTags(TagsT &&value)
CreateSecurityGroupResponse & WithSecurityGroupArn(SecurityGroupArnT &&value)
AWS_EC2_API CreateSecurityGroupResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSecurityGroupResponse & WithTags(TagsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument