AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifySecurityGroupRulesRequest.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/SecurityGroupRuleUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API ModifySecurityGroupRulesRequest() = default;
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 "ModifySecurityGroupRules"; }
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
45 inline const Aws::String& GetGroupId() const { return m_groupId; }
46 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
47 template<typename GroupIdT = Aws::String>
48 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
49 template<typename GroupIdT = Aws::String>
50 ModifySecurityGroupRulesRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
52
54
57 inline const Aws::Vector<SecurityGroupRuleUpdate>& GetSecurityGroupRules() const { return m_securityGroupRules; }
58 inline bool SecurityGroupRulesHasBeenSet() const { return m_securityGroupRulesHasBeenSet; }
59 template<typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRuleUpdate>>
60 void SetSecurityGroupRules(SecurityGroupRulesT&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = std::forward<SecurityGroupRulesT>(value); }
61 template<typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRuleUpdate>>
62 ModifySecurityGroupRulesRequest& WithSecurityGroupRules(SecurityGroupRulesT&& value) { SetSecurityGroupRules(std::forward<SecurityGroupRulesT>(value)); return *this;}
63 template<typename SecurityGroupRulesT = SecurityGroupRuleUpdate>
64 ModifySecurityGroupRulesRequest& AddSecurityGroupRules(SecurityGroupRulesT&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.emplace_back(std::forward<SecurityGroupRulesT>(value)); return *this; }
66
68
74 inline bool GetDryRun() const { return m_dryRun; }
75 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
76 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
77 inline ModifySecurityGroupRulesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
79 private:
80
81 Aws::String m_groupId;
82 bool m_groupIdHasBeenSet = false;
83
84 Aws::Vector<SecurityGroupRuleUpdate> m_securityGroupRules;
85 bool m_securityGroupRulesHasBeenSet = false;
86
87 bool m_dryRun{false};
88 bool m_dryRunHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // 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