AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyIpamResourceDiscoveryRequest.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/AddIpamOperatingRegion.h>
12#include <aws/ec2/model/RemoveIpamOperatingRegion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ModifyIpamResourceDiscovery"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline ModifyIpamResourceDiscoveryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetIpamResourceDiscoveryId() const{ return m_ipamResourceDiscoveryId; }
60 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
61 inline void SetIpamResourceDiscoveryId(const Aws::String& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = value; }
62 inline void SetIpamResourceDiscoveryId(Aws::String&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::move(value); }
63 inline void SetIpamResourceDiscoveryId(const char* value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId.assign(value); }
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline ModifyIpamResourceDiscoveryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline ModifyIpamResourceDiscoveryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
90 inline const Aws::Vector<AddIpamOperatingRegion>& GetAddOperatingRegions() const{ return m_addOperatingRegions; }
91 inline bool AddOperatingRegionsHasBeenSet() const { return m_addOperatingRegionsHasBeenSet; }
92 inline void SetAddOperatingRegions(const Aws::Vector<AddIpamOperatingRegion>& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = value; }
93 inline void SetAddOperatingRegions(Aws::Vector<AddIpamOperatingRegion>&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = std::move(value); }
96 inline ModifyIpamResourceDiscoveryRequest& AddAddOperatingRegions(const AddIpamOperatingRegion& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(value); return *this; }
97 inline ModifyIpamResourceDiscoveryRequest& AddAddOperatingRegions(AddIpamOperatingRegion&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(std::move(value)); return *this; }
99
101
104 inline const Aws::Vector<RemoveIpamOperatingRegion>& GetRemoveOperatingRegions() const{ return m_removeOperatingRegions; }
105 inline bool RemoveOperatingRegionsHasBeenSet() const { return m_removeOperatingRegionsHasBeenSet; }
106 inline void SetRemoveOperatingRegions(const Aws::Vector<RemoveIpamOperatingRegion>& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = value; }
107 inline void SetRemoveOperatingRegions(Aws::Vector<RemoveIpamOperatingRegion>&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = std::move(value); }
110 inline ModifyIpamResourceDiscoveryRequest& AddRemoveOperatingRegions(const RemoveIpamOperatingRegion& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(value); return *this; }
111 inline ModifyIpamResourceDiscoveryRequest& AddRemoveOperatingRegions(RemoveIpamOperatingRegion&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(std::move(value)); return *this; }
113 private:
114
115 bool m_dryRun;
116 bool m_dryRunHasBeenSet = false;
117
118 Aws::String m_ipamResourceDiscoveryId;
119 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::Vector<AddIpamOperatingRegion> m_addOperatingRegions;
125 bool m_addOperatingRegionsHasBeenSet = false;
126
127 Aws::Vector<RemoveIpamOperatingRegion> m_removeOperatingRegions;
128 bool m_removeOperatingRegionsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
const Aws::Vector< AddIpamOperatingRegion > & GetAddOperatingRegions() const
ModifyIpamResourceDiscoveryRequest & AddAddOperatingRegions(const AddIpamOperatingRegion &value)
ModifyIpamResourceDiscoveryRequest & WithDescription(const Aws::String &value)
void SetRemoveOperatingRegions(const Aws::Vector< RemoveIpamOperatingRegion > &value)
ModifyIpamResourceDiscoveryRequest & WithIpamResourceDiscoveryId(Aws::String &&value)
ModifyIpamResourceDiscoveryRequest & AddRemoveOperatingRegions(RemoveIpamOperatingRegion &&value)
ModifyIpamResourceDiscoveryRequest & WithIpamResourceDiscoveryId(const Aws::String &value)
ModifyIpamResourceDiscoveryRequest & WithRemoveOperatingRegions(Aws::Vector< RemoveIpamOperatingRegion > &&value)
ModifyIpamResourceDiscoveryRequest & AddAddOperatingRegions(AddIpamOperatingRegion &&value)
ModifyIpamResourceDiscoveryRequest & WithDryRun(bool value)
ModifyIpamResourceDiscoveryRequest & WithAddOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
ModifyIpamResourceDiscoveryRequest & WithDescription(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamResourceDiscoveryRequest & WithDescription(const char *value)
ModifyIpamResourceDiscoveryRequest & WithRemoveOperatingRegions(const Aws::Vector< RemoveIpamOperatingRegion > &value)
void SetRemoveOperatingRegions(Aws::Vector< RemoveIpamOperatingRegion > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyIpamResourceDiscoveryRequest & WithAddOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
ModifyIpamResourceDiscoveryRequest & AddRemoveOperatingRegions(const RemoveIpamOperatingRegion &value)
ModifyIpamResourceDiscoveryRequest & WithIpamResourceDiscoveryId(const char *value)
const Aws::Vector< RemoveIpamOperatingRegion > & GetRemoveOperatingRegions() const
void SetAddOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
void SetAddOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector