AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSecurityGroupResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API CreateSecurityGroupResponse() = default;
31
33
36 inline const Aws::String& GetGroupId() const { return m_groupId; }
37 template <typename GroupIdT = Aws::String>
38 void SetGroupId(GroupIdT&& value) {
39 m_groupIdHasBeenSet = true;
40 m_groupId = std::forward<GroupIdT>(value);
41 }
42 template <typename GroupIdT = Aws::String>
44 SetGroupId(std::forward<GroupIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
54 template <typename TagsT = Aws::Vector<Tag>>
55 void SetTags(TagsT&& value) {
56 m_tagsHasBeenSet = true;
57 m_tags = std::forward<TagsT>(value);
58 }
59 template <typename TagsT = Aws::Vector<Tag>>
61 SetTags(std::forward<TagsT>(value));
62 return *this;
63 }
64 template <typename TagsT = Tag>
66 m_tagsHasBeenSet = true;
67 m_tags.emplace_back(std::forward<TagsT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSecurityGroupArn() const { return m_securityGroupArn; }
77 template <typename SecurityGroupArnT = Aws::String>
78 void SetSecurityGroupArn(SecurityGroupArnT&& value) {
79 m_securityGroupArnHasBeenSet = true;
80 m_securityGroupArn = std::forward<SecurityGroupArnT>(value);
81 }
82 template <typename SecurityGroupArnT = Aws::String>
84 SetSecurityGroupArn(std::forward<SecurityGroupArnT>(value));
85 return *this;
86 }
88
90
91 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
92 template <typename ResponseMetadataT = ResponseMetadata>
93 void SetResponseMetadata(ResponseMetadataT&& value) {
94 m_responseMetadataHasBeenSet = true;
95 m_responseMetadata = std::forward<ResponseMetadataT>(value);
96 }
97 template <typename ResponseMetadataT = ResponseMetadata>
99 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_groupId;
105
106 Aws::Vector<Tag> m_tags;
107
108 Aws::String m_securityGroupArn;
109
110 ResponseMetadata m_responseMetadata;
111 bool m_groupIdHasBeenSet = false;
112 bool m_tagsHasBeenSet = false;
113 bool m_securityGroupArnHasBeenSet = false;
114 bool m_responseMetadataHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EC2
119} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument