AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteSecurityGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API DeleteSecurityGroupRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteSecurityGroup"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetGroupId() const { return m_groupId; }
40 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
41 template <typename GroupIdT = Aws::String>
42 void SetGroupId(GroupIdT&& value) {
43 m_groupIdHasBeenSet = true;
44 m_groupId = std::forward<GroupIdT>(value);
45 }
46 template <typename GroupIdT = Aws::String>
48 SetGroupId(std::forward<GroupIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetGroupName() const { return m_groupName; }
60 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
61 template <typename GroupNameT = Aws::String>
62 void SetGroupName(GroupNameT&& value) {
63 m_groupNameHasBeenSet = true;
64 m_groupName = std::forward<GroupNameT>(value);
65 }
66 template <typename GroupNameT = Aws::String>
68 SetGroupName(std::forward<GroupNameT>(value));
69 return *this;
70 }
72
74
80 inline bool GetDryRun() const { return m_dryRun; }
81 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
82 inline void SetDryRun(bool value) {
83 m_dryRunHasBeenSet = true;
84 m_dryRun = value;
85 }
87 SetDryRun(value);
88 return *this;
89 }
91 private:
92 Aws::String m_groupId;
93
94 Aws::String m_groupName;
95
96 bool m_dryRun{false};
97 bool m_groupIdHasBeenSet = false;
98 bool m_groupNameHasBeenSet = false;
99 bool m_dryRunHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API DeleteSecurityGroupRequest()=default
virtual const char * GetServiceRequestName() const override
DeleteSecurityGroupRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DeleteSecurityGroupRequest & WithGroupName(GroupNameT &&value)
DeleteSecurityGroupRequest & WithGroupId(GroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String