AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSecurityGroupRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityGroup"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline CreateSecurityGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline CreateSecurityGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline CreateSecurityGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
63 inline const Aws::String& GetGroupName() const{ return m_groupName; }
64 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
65 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
66 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
67 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
68 inline CreateSecurityGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
69 inline CreateSecurityGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
70 inline CreateSecurityGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
72
74
77 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
80 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
81 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
82 inline CreateSecurityGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
83 inline CreateSecurityGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
84 inline CreateSecurityGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
86
88
91 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
92 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
93 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
94 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
97 inline CreateSecurityGroupRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
98 inline CreateSecurityGroupRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
100
102
108 inline bool GetDryRun() const{ return m_dryRun; }
109 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
110 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
111 inline CreateSecurityGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
113 private:
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_groupName;
119 bool m_groupNameHasBeenSet = false;
120
121 Aws::String m_vpcId;
122 bool m_vpcIdHasBeenSet = false;
123
124 Aws::Vector<TagSpecification> m_tagSpecifications;
125 bool m_tagSpecificationsHasBeenSet = false;
126
127 bool m_dryRun;
128 bool m_dryRunHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
CreateSecurityGroupRequest & WithGroupName(const Aws::String &value)
CreateSecurityGroupRequest & WithVpcId(const char *value)
CreateSecurityGroupRequest & AddTagSpecifications(const TagSpecification &value)
CreateSecurityGroupRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateSecurityGroupRequest & AddTagSpecifications(TagSpecification &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateSecurityGroupRequest & WithVpcId(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateSecurityGroupRequest & WithDescription(Aws::String &&value)
CreateSecurityGroupRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateSecurityGroupRequest & WithGroupName(const char *value)
CreateSecurityGroupRequest & WithDryRun(bool value)
CreateSecurityGroupRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateSecurityGroupRequest & WithGroupName(Aws::String &&value)
CreateSecurityGroupRequest & WithVpcId(Aws::String &&value)
CreateSecurityGroupRequest & WithDescription(const Aws::String &value)
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