AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeStaleSecurityGroupsRequest.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 DescribeStaleSecurityGroupsRequest() = 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 "DescribeStaleSecurityGroups"; }
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
42 inline bool GetDryRun() const { return m_dryRun; }
43 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
44 inline void SetDryRun(bool value) {
45 m_dryRunHasBeenSet = true;
46 m_dryRun = value;
47 }
49 SetDryRun(value);
50 return *this;
51 }
53
55
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) {
64 m_maxResultsHasBeenSet = true;
65 m_maxResults = value;
66 }
68 SetMaxResults(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetVpcId() const { return m_vpcId; }
97 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
98 template <typename VpcIdT = Aws::String>
99 void SetVpcId(VpcIdT&& value) {
100 m_vpcIdHasBeenSet = true;
101 m_vpcId = std::forward<VpcIdT>(value);
102 }
103 template <typename VpcIdT = Aws::String>
105 SetVpcId(std::forward<VpcIdT>(value));
106 return *this;
107 }
109 private:
110 bool m_dryRun{false};
111
112 int m_maxResults{0};
113
114 Aws::String m_nextToken;
115
116 Aws::String m_vpcId;
117 bool m_dryRunHasBeenSet = false;
118 bool m_maxResultsHasBeenSet = false;
119 bool m_nextTokenHasBeenSet = false;
120 bool m_vpcIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
DescribeStaleSecurityGroupsRequest & WithMaxResults(int value)
DescribeStaleSecurityGroupsRequest & WithDryRun(bool value)
DescribeStaleSecurityGroupsRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
DescribeStaleSecurityGroupsRequest & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String