AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSecurityGroupResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EC2_API CreateSecurityGroupResponse() = default;
36
37
39
42 inline const Aws::String& GetGroupId() const { return m_groupId; }
43 template<typename GroupIdT = Aws::String>
44 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
45 template<typename GroupIdT = Aws::String>
46 CreateSecurityGroupResponse& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
56 template<typename TagsT = Aws::Vector<Tag>>
57 CreateSecurityGroupResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
58 template<typename TagsT = Tag>
59 CreateSecurityGroupResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
61
63
66 inline const Aws::String& GetSecurityGroupArn() const { return m_securityGroupArn; }
67 template<typename SecurityGroupArnT = Aws::String>
68 void SetSecurityGroupArn(SecurityGroupArnT&& value) { m_securityGroupArnHasBeenSet = true; m_securityGroupArn = std::forward<SecurityGroupArnT>(value); }
69 template<typename SecurityGroupArnT = Aws::String>
70 CreateSecurityGroupResponse& WithSecurityGroupArn(SecurityGroupArnT&& value) { SetSecurityGroupArn(std::forward<SecurityGroupArnT>(value)); return *this;}
72
74
75 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
76 template<typename ResponseMetadataT = ResponseMetadata>
77 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
78 template<typename ResponseMetadataT = ResponseMetadata>
79 CreateSecurityGroupResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
81 private:
82
83 Aws::String m_groupId;
84 bool m_groupIdHasBeenSet = false;
85
86 Aws::Vector<Tag> m_tags;
87 bool m_tagsHasBeenSet = false;
88
89 Aws::String m_securityGroupArn;
90 bool m_securityGroupArnHasBeenSet = false;
91
92 ResponseMetadata m_responseMetadata;
93 bool m_responseMetadataHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // 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