AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AcceptAddressTransferRequest.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 <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AcceptAddressTransfer"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetAddress() const{ return m_address; }
46 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
47 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
48 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
49 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
50 inline AcceptAddressTransferRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
51 inline AcceptAddressTransferRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
52 inline AcceptAddressTransferRequest& WithAddress(const char* value) { SetAddress(value); return *this;}
54
56
64 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
65 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
66 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
67 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
70 inline AcceptAddressTransferRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
71 inline AcceptAddressTransferRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
73
75
81 inline bool GetDryRun() const{ return m_dryRun; }
82 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
83 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
84 inline AcceptAddressTransferRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
86 private:
87
88 Aws::String m_address;
89 bool m_addressHasBeenSet = false;
90
91 Aws::Vector<TagSpecification> m_tagSpecifications;
92 bool m_tagSpecificationsHasBeenSet = false;
93
94 bool m_dryRun;
95 bool m_dryRunHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
AcceptAddressTransferRequest & WithAddress(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AcceptAddressTransferRequest & WithAddress(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
AcceptAddressTransferRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AcceptAddressTransferRequest & AddTagSpecifications(TagSpecification &&value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AcceptAddressTransferRequest & WithAddress(const char *value)
AcceptAddressTransferRequest & AddTagSpecifications(const TagSpecification &value)
AcceptAddressTransferRequest & WithDryRun(bool value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AcceptAddressTransferRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector