AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifySecurityGroupRulesRequest.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/SecurityGroupRuleUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ModifySecurityGroupRulesRequest() = 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 "ModifySecurityGroupRules"; }
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
41 inline const Aws::String& GetGroupId() const { return m_groupId; }
42 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
43 template <typename GroupIdT = Aws::String>
44 void SetGroupId(GroupIdT&& value) {
45 m_groupIdHasBeenSet = true;
46 m_groupId = std::forward<GroupIdT>(value);
47 }
48 template <typename GroupIdT = Aws::String>
50 SetGroupId(std::forward<GroupIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<SecurityGroupRuleUpdate>& GetSecurityGroupRules() const { return m_securityGroupRules; }
60 inline bool SecurityGroupRulesHasBeenSet() const { return m_securityGroupRulesHasBeenSet; }
61 template <typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRuleUpdate>>
62 void SetSecurityGroupRules(SecurityGroupRulesT&& value) {
63 m_securityGroupRulesHasBeenSet = true;
64 m_securityGroupRules = std::forward<SecurityGroupRulesT>(value);
65 }
66 template <typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRuleUpdate>>
68 SetSecurityGroupRules(std::forward<SecurityGroupRulesT>(value));
69 return *this;
70 }
71 template <typename SecurityGroupRulesT = SecurityGroupRuleUpdate>
73 m_securityGroupRulesHasBeenSet = true;
74 m_securityGroupRules.emplace_back(std::forward<SecurityGroupRulesT>(value));
75 return *this;
76 }
78
80
86 inline bool GetDryRun() const { return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) {
89 m_dryRunHasBeenSet = true;
90 m_dryRun = value;
91 }
93 SetDryRun(value);
94 return *this;
95 }
97 private:
98 Aws::String m_groupId;
99
100 Aws::Vector<SecurityGroupRuleUpdate> m_securityGroupRules;
101
102 bool m_dryRun{false};
103 bool m_groupIdHasBeenSet = false;
104 bool m_securityGroupRulesHasBeenSet = false;
105 bool m_dryRunHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
ModifySecurityGroupRulesRequest & WithDryRun(bool value)
ModifySecurityGroupRulesRequest & AddSecurityGroupRules(SecurityGroupRulesT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< SecurityGroupRuleUpdate > & GetSecurityGroupRules() const
AWS_EC2_API Aws::String SerializePayload() const override
ModifySecurityGroupRulesRequest & WithGroupId(GroupIdT &&value)
ModifySecurityGroupRulesRequest & WithSecurityGroupRules(SecurityGroupRulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector