AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeByoipCidrsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeByoipCidrs"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline DescribeByoipCidrsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
77  inline int GetMaxResults() const{ return m_maxResults; }
78 
84  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 
91  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 
98  inline DescribeByoipCidrsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
99 
100 
104  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
105 
109  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 
114  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
115 
119  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
120 
124  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
125 
129  inline DescribeByoipCidrsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 
134  inline DescribeByoipCidrsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
135 
139  inline DescribeByoipCidrsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
140 
141  private:
142 
143  bool m_dryRun;
144  bool m_dryRunHasBeenSet;
145 
146  int m_maxResults;
147  bool m_maxResultsHasBeenSet;
148 
149  Aws::String m_nextToken;
150  bool m_nextTokenHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace EC2
155 } // namespace Aws
Aws::EC2::Model::DescribeByoipCidrsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeByoipCidrsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeByoipCidrsRequest.h:53
Aws::EC2::Model::DescribeByoipCidrsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeByoipCidrsRequest.h:77
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeByoipCidrsRequest::WithDryRun
DescribeByoipCidrsRequest & WithDryRun(bool value)
Definition: DescribeByoipCidrsRequest.h:69
Aws::EC2::Model::DescribeByoipCidrsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeByoipCidrsRequest.h:114
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeByoipCidrsRequest
Definition: DescribeByoipCidrsRequest.h:22
Aws::EC2::Model::DescribeByoipCidrsRequest::WithMaxResults
DescribeByoipCidrsRequest & WithMaxResults(int value)
Definition: DescribeByoipCidrsRequest.h:98
Aws::EC2::Model::DescribeByoipCidrsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeByoipCidrsRequest.h:61
Aws::EC2::Model::DescribeByoipCidrsRequest::WithNextToken
DescribeByoipCidrsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeByoipCidrsRequest.h:134
Aws::EC2::Model::DescribeByoipCidrsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeByoipCidrsRequest.h:91
Aws::EC2::Model::DescribeByoipCidrsRequest::WithNextToken
DescribeByoipCidrsRequest & WithNextToken(const char *value)
Definition: DescribeByoipCidrsRequest.h:139
Aws::EC2::Model::DescribeByoipCidrsRequest::DescribeByoipCidrsRequest
DescribeByoipCidrsRequest()
EC2Request.h
Aws::EC2::Model::DescribeByoipCidrsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeByoipCidrsRequest::WithNextToken
DescribeByoipCidrsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeByoipCidrsRequest.h:129
AWSString.h
Aws::EC2::Model::DescribeByoipCidrsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeByoipCidrsRequest.h:119
Aws::EC2::Model::DescribeByoipCidrsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeByoipCidrsRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeByoipCidrsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeByoipCidrsRequest.h:109
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeByoipCidrsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeByoipCidrsRequest.h:104
Aws::EC2::Model::DescribeByoipCidrsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeByoipCidrsRequest.h:45
Aws::EC2::Model::DescribeByoipCidrsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeByoipCidrsRequest.h:124
EC2_EXPORTS.h
Aws::EC2::Model::DescribeByoipCidrsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeByoipCidrsRequest.h:30