AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSecurityGroupRequest.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/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API CreateSecurityGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityGroup"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetGroupName() const { return m_groupName; }
65 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
66 template <typename GroupNameT = Aws::String>
67 void SetGroupName(GroupNameT&& value) {
68 m_groupNameHasBeenSet = true;
69 m_groupName = std::forward<GroupNameT>(value);
70 }
71 template <typename GroupNameT = Aws::String>
73 SetGroupName(std::forward<GroupNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetVpcId() const { return m_vpcId; }
83 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
84 template <typename VpcIdT = Aws::String>
85 void SetVpcId(VpcIdT&& value) {
86 m_vpcIdHasBeenSet = true;
87 m_vpcId = std::forward<VpcIdT>(value);
88 }
89 template <typename VpcIdT = Aws::String>
91 SetVpcId(std::forward<VpcIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
101 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
102 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
103 void SetTagSpecifications(TagSpecificationsT&& value) {
104 m_tagSpecificationsHasBeenSet = true;
105 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
106 }
107 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
109 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
110 return *this;
111 }
112 template <typename TagSpecificationsT = TagSpecification>
114 m_tagSpecificationsHasBeenSet = true;
115 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
116 return *this;
117 }
119
121
127 inline bool GetDryRun() const { return m_dryRun; }
128 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
129 inline void SetDryRun(bool value) {
130 m_dryRunHasBeenSet = true;
131 m_dryRun = value;
132 }
134 SetDryRun(value);
135 return *this;
136 }
138 private:
139 Aws::String m_description;
140
141 Aws::String m_groupName;
142
143 Aws::String m_vpcId;
144
145 Aws::Vector<TagSpecification> m_tagSpecifications;
146
147 bool m_dryRun{false};
148 bool m_descriptionHasBeenSet = false;
149 bool m_groupNameHasBeenSet = false;
150 bool m_vpcIdHasBeenSet = false;
151 bool m_tagSpecificationsHasBeenSet = false;
152 bool m_dryRunHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace EC2
157} // namespace Aws
CreateSecurityGroupRequest & WithVpcId(VpcIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
CreateSecurityGroupRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateSecurityGroupRequest & WithDryRun(bool value)
CreateSecurityGroupRequest & WithGroupName(GroupNameT &&value)
CreateSecurityGroupRequest & WithDescription(DescriptionT &&value)
CreateSecurityGroupRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreateSecurityGroupRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector