AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisassociateNatGatewayAddressRequest.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 <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DisassociateNatGatewayAddress"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetNatGatewayId() const{ return m_natGatewayId; }
45 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
46 inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
47 inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::move(value); }
48 inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); }
50 inline DisassociateNatGatewayAddressRequest& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(std::move(value)); return *this;}
51 inline DisassociateNatGatewayAddressRequest& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetAssociationIds() const{ return m_associationIds; }
60 inline bool AssociationIdsHasBeenSet() const { return m_associationIdsHasBeenSet; }
61 inline void SetAssociationIds(const Aws::Vector<Aws::String>& value) { m_associationIdsHasBeenSet = true; m_associationIds = value; }
62 inline void SetAssociationIds(Aws::Vector<Aws::String>&& value) { m_associationIdsHasBeenSet = true; m_associationIds = std::move(value); }
65 inline DisassociateNatGatewayAddressRequest& AddAssociationIds(const Aws::String& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; }
66 inline DisassociateNatGatewayAddressRequest& AddAssociationIds(Aws::String&& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(std::move(value)); return *this; }
67 inline DisassociateNatGatewayAddressRequest& AddAssociationIds(const char* value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; }
69
71
76 inline int GetMaxDrainDurationSeconds() const{ return m_maxDrainDurationSeconds; }
77 inline bool MaxDrainDurationSecondsHasBeenSet() const { return m_maxDrainDurationSecondsHasBeenSet; }
78 inline void SetMaxDrainDurationSeconds(int value) { m_maxDrainDurationSecondsHasBeenSet = true; m_maxDrainDurationSeconds = value; }
81
83
89 inline bool GetDryRun() const{ return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline DisassociateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94 private:
95
96 Aws::String m_natGatewayId;
97 bool m_natGatewayIdHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_associationIds;
100 bool m_associationIdsHasBeenSet = false;
101
102 int m_maxDrainDurationSeconds;
103 bool m_maxDrainDurationSecondsHasBeenSet = false;
104
105 bool m_dryRun;
106 bool m_dryRunHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DisassociateNatGatewayAddressRequest & WithDryRun(bool value)
DisassociateNatGatewayAddressRequest & WithNatGatewayId(Aws::String &&value)
DisassociateNatGatewayAddressRequest & AddAssociationIds(const Aws::String &value)
DisassociateNatGatewayAddressRequest & WithMaxDrainDurationSeconds(int value)
DisassociateNatGatewayAddressRequest & WithNatGatewayId(const Aws::String &value)
DisassociateNatGatewayAddressRequest & WithAssociationIds(const Aws::Vector< Aws::String > &value)
DisassociateNatGatewayAddressRequest & WithNatGatewayId(const char *value)
DisassociateNatGatewayAddressRequest & AddAssociationIds(Aws::String &&value)
DisassociateNatGatewayAddressRequest & AddAssociationIds(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
DisassociateNatGatewayAddressRequest & WithAssociationIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector