AWS SDK for C++  1.9.66
AWS SDK for C++
AdvertiseByoipCidrRequest.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 "AdvertiseByoipCidr"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetCidr() const{ return m_cidr; }
44 
49  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
50 
55  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
56 
61  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
62 
67  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
68 
73  inline AdvertiseByoipCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
74 
79  inline AdvertiseByoipCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
80 
85  inline AdvertiseByoipCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
86 
87 
94  inline bool GetDryRun() const{ return m_dryRun; }
95 
102  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
103 
110  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
111 
118  inline AdvertiseByoipCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
119 
120  private:
121 
122  Aws::String m_cidr;
123  bool m_cidrHasBeenSet;
124 
125  bool m_dryRun;
126  bool m_dryRunHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace EC2
131 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AdvertiseByoipCidrRequest::SetCidr
void SetCidr(Aws::String &&value)
Definition: AdvertiseByoipCidrRequest.h:61
Aws::EC2::Model::AdvertiseByoipCidrRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AdvertiseByoipCidrRequest::WithCidr
AdvertiseByoipCidrRequest & WithCidr(const char *value)
Definition: AdvertiseByoipCidrRequest.h:85
Aws::EC2::Model::AdvertiseByoipCidrRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AdvertiseByoipCidrRequest.h:30
Aws::EC2::Model::AdvertiseByoipCidrRequest::SetCidr
void SetCidr(const Aws::String &value)
Definition: AdvertiseByoipCidrRequest.h:55
Aws::EC2::Model::AdvertiseByoipCidrRequest::WithDryRun
AdvertiseByoipCidrRequest & WithDryRun(bool value)
Definition: AdvertiseByoipCidrRequest.h:118
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AdvertiseByoipCidrRequest::WithCidr
AdvertiseByoipCidrRequest & WithCidr(Aws::String &&value)
Definition: AdvertiseByoipCidrRequest.h:79
Aws::EC2::Model::AdvertiseByoipCidrRequest::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: AdvertiseByoipCidrRequest.h:49
Aws::EC2::Model::AdvertiseByoipCidrRequest
Definition: AdvertiseByoipCidrRequest.h:22
Aws::EC2::Model::AdvertiseByoipCidrRequest::WithCidr
AdvertiseByoipCidrRequest & WithCidr(const Aws::String &value)
Definition: AdvertiseByoipCidrRequest.h:73
Aws::EC2::Model::AdvertiseByoipCidrRequest::SetDryRun
void SetDryRun(bool value)
Definition: AdvertiseByoipCidrRequest.h:110
EC2Request.h
AWSString.h
Aws::EC2::Model::AdvertiseByoipCidrRequest::GetDryRun
bool GetDryRun() const
Definition: AdvertiseByoipCidrRequest.h:94
Aws::EC2::Model::AdvertiseByoipCidrRequest::SetCidr
void SetCidr(const char *value)
Definition: AdvertiseByoipCidrRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AdvertiseByoipCidrRequest::GetCidr
const Aws::String & GetCidr() const
Definition: AdvertiseByoipCidrRequest.h:43
Aws::EC2::Model::AdvertiseByoipCidrRequest::AdvertiseByoipCidrRequest
AdvertiseByoipCidrRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AdvertiseByoipCidrRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AdvertiseByoipCidrRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AdvertiseByoipCidrRequest.h:102
EC2_EXPORTS.h