AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
48 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
49 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
50 inline ModifySecurityGroupRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
51 inline ModifySecurityGroupRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
52 inline ModifySecurityGroupRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
54
56
59 inline const Aws::Vector<SecurityGroupRuleUpdate>& GetSecurityGroupRules() const{ return m_securityGroupRules; }
60 inline bool SecurityGroupRulesHasBeenSet() const { return m_securityGroupRulesHasBeenSet; }
61 inline void SetSecurityGroupRules(const Aws::Vector<SecurityGroupRuleUpdate>& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = value; }
62 inline void SetSecurityGroupRules(Aws::Vector<SecurityGroupRuleUpdate>&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = std::move(value); }
65 inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(const SecurityGroupRuleUpdate& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(value); return *this; }
66 inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(SecurityGroupRuleUpdate&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(std::move(value)); return *this; }
68
70
76 inline bool GetDryRun() const{ return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline ModifySecurityGroupRulesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
83 Aws::String m_groupId;
84 bool m_groupIdHasBeenSet = false;
85
86 Aws::Vector<SecurityGroupRuleUpdate> m_securityGroupRules;
87 bool m_securityGroupRulesHasBeenSet = false;
88
89 bool m_dryRun;
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
ModifySecurityGroupRulesRequest & AddSecurityGroupRules(SecurityGroupRuleUpdate &&value)
ModifySecurityGroupRulesRequest & WithDryRun(bool value)
ModifySecurityGroupRulesRequest & WithGroupId(Aws::String &&value)
ModifySecurityGroupRulesRequest & WithSecurityGroupRules(Aws::Vector< SecurityGroupRuleUpdate > &&value)
ModifySecurityGroupRulesRequest & WithGroupId(const Aws::String &value)
ModifySecurityGroupRulesRequest & AddSecurityGroupRules(const SecurityGroupRuleUpdate &value)
ModifySecurityGroupRulesRequest & WithSecurityGroupRules(const Aws::Vector< SecurityGroupRuleUpdate > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< SecurityGroupRuleUpdate > & GetSecurityGroupRules() const
void SetSecurityGroupRules(const Aws::Vector< SecurityGroupRuleUpdate > &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifySecurityGroupRulesRequest & WithGroupId(const char *value)
void SetSecurityGroupRules(Aws::Vector< SecurityGroupRuleUpdate > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector