AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ModifyIpamScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ExternalAuthorityConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API ModifyIpamScopeRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyIpamScope"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
49 inline ModifyIpamScopeRequest& WithDryRun(bool value) {
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIpamScopeId() const { return m_ipamScopeId; }
60 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
61 template <typename IpamScopeIdT = Aws::String>
62 void SetIpamScopeId(IpamScopeIdT&& value) {
63 m_ipamScopeIdHasBeenSet = true;
64 m_ipamScopeId = std::forward<IpamScopeIdT>(value);
65 }
66 template <typename IpamScopeIdT = Aws::String>
67 ModifyIpamScopeRequest& WithIpamScopeId(IpamScopeIdT&& value) {
68 SetIpamScopeId(std::forward<IpamScopeIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ModifyIpamScopeRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
102 inline const ExternalAuthorityConfiguration& GetExternalAuthorityConfiguration() const { return m_externalAuthorityConfiguration; }
103 inline bool ExternalAuthorityConfigurationHasBeenSet() const { return m_externalAuthorityConfigurationHasBeenSet; }
104 template <typename ExternalAuthorityConfigurationT = ExternalAuthorityConfiguration>
105 void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
106 m_externalAuthorityConfigurationHasBeenSet = true;
107 m_externalAuthorityConfiguration = std::forward<ExternalAuthorityConfigurationT>(value);
108 }
109 template <typename ExternalAuthorityConfigurationT = ExternalAuthorityConfiguration>
110 ModifyIpamScopeRequest& WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
111 SetExternalAuthorityConfiguration(std::forward<ExternalAuthorityConfigurationT>(value));
112 return *this;
113 }
115
117
120 inline bool GetRemoveExternalAuthorityConfiguration() const { return m_removeExternalAuthorityConfiguration; }
121 inline bool RemoveExternalAuthorityConfigurationHasBeenSet() const { return m_removeExternalAuthorityConfigurationHasBeenSet; }
123 m_removeExternalAuthorityConfigurationHasBeenSet = true;
124 m_removeExternalAuthorityConfiguration = value;
125 }
128 return *this;
129 }
131 private:
132 bool m_dryRun{false};
133
134 Aws::String m_ipamScopeId;
135
136 Aws::String m_description;
137
138 ExternalAuthorityConfiguration m_externalAuthorityConfiguration;
139
140 bool m_removeExternalAuthorityConfiguration{false};
141 bool m_dryRunHasBeenSet = false;
142 bool m_ipamScopeIdHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_externalAuthorityConfigurationHasBeenSet = false;
145 bool m_removeExternalAuthorityConfigurationHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
AWS_EC2_API ModifyIpamScopeRequest()=default
ModifyIpamScopeRequest & WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
ModifyIpamScopeRequest & WithDescription(DescriptionT &&value)
ModifyIpamScopeRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
ModifyIpamScopeRequest & WithIpamScopeId(IpamScopeIdT &&value)
ModifyIpamScopeRequest & WithRemoveExternalAuthorityConfiguration(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
const ExternalAuthorityConfiguration & GetExternalAuthorityConfiguration() const
void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String