/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyIpamResourceCidrRequest : public EC2Request { public: AWS_EC2_API ModifyIpamResourceCidrRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyIpamResourceCidr"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifyIpamResourceCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the resource you want to modify.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the resource you want to modify.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the resource you want to modify.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the resource you want to modify.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the resource you want to modify.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The CIDR of the resource you want to modify.

*/ inline const Aws::String& GetResourceCidr() const{ return m_resourceCidr; } /** *

The CIDR of the resource you want to modify.

*/ inline bool ResourceCidrHasBeenSet() const { return m_resourceCidrHasBeenSet; } /** *

The CIDR of the resource you want to modify.

*/ inline void SetResourceCidr(const Aws::String& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = value; } /** *

The CIDR of the resource you want to modify.

*/ inline void SetResourceCidr(Aws::String&& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = std::move(value); } /** *

The CIDR of the resource you want to modify.

*/ inline void SetResourceCidr(const char* value) { m_resourceCidrHasBeenSet = true; m_resourceCidr.assign(value); } /** *

The CIDR of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceCidr(const Aws::String& value) { SetResourceCidr(value); return *this;} /** *

The CIDR of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceCidr(Aws::String&& value) { SetResourceCidr(std::move(value)); return *this;} /** *

The CIDR of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceCidr(const char* value) { SetResourceCidr(value); return *this;} /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline const Aws::String& GetResourceRegion() const{ return m_resourceRegion; } /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; } /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline void SetResourceRegion(const Aws::String& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = value; } /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline void SetResourceRegion(Aws::String&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::move(value); } /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline void SetResourceRegion(const char* value) { m_resourceRegionHasBeenSet = true; m_resourceRegion.assign(value); } /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceRegion(const Aws::String& value) { SetResourceRegion(value); return *this;} /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceRegion(Aws::String&& value) { SetResourceRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region of the resource you want to modify.

*/ inline ModifyIpamResourceCidrRequest& WithResourceRegion(const char* value) { SetResourceRegion(value); return *this;} /** *

The ID of the current scope that the resource CIDR is in.

*/ inline const Aws::String& GetCurrentIpamScopeId() const{ return m_currentIpamScopeId; } /** *

The ID of the current scope that the resource CIDR is in.

*/ inline bool CurrentIpamScopeIdHasBeenSet() const { return m_currentIpamScopeIdHasBeenSet; } /** *

The ID of the current scope that the resource CIDR is in.

*/ inline void SetCurrentIpamScopeId(const Aws::String& value) { m_currentIpamScopeIdHasBeenSet = true; m_currentIpamScopeId = value; } /** *

The ID of the current scope that the resource CIDR is in.

*/ inline void SetCurrentIpamScopeId(Aws::String&& value) { m_currentIpamScopeIdHasBeenSet = true; m_currentIpamScopeId = std::move(value); } /** *

The ID of the current scope that the resource CIDR is in.

*/ inline void SetCurrentIpamScopeId(const char* value) { m_currentIpamScopeIdHasBeenSet = true; m_currentIpamScopeId.assign(value); } /** *

The ID of the current scope that the resource CIDR is in.

*/ inline ModifyIpamResourceCidrRequest& WithCurrentIpamScopeId(const Aws::String& value) { SetCurrentIpamScopeId(value); return *this;} /** *

The ID of the current scope that the resource CIDR is in.

*/ inline ModifyIpamResourceCidrRequest& WithCurrentIpamScopeId(Aws::String&& value) { SetCurrentIpamScopeId(std::move(value)); return *this;} /** *

The ID of the current scope that the resource CIDR is in.

*/ inline ModifyIpamResourceCidrRequest& WithCurrentIpamScopeId(const char* value) { SetCurrentIpamScopeId(value); return *this;} /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline const Aws::String& GetDestinationIpamScopeId() const{ return m_destinationIpamScopeId; } /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline bool DestinationIpamScopeIdHasBeenSet() const { return m_destinationIpamScopeIdHasBeenSet; } /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline void SetDestinationIpamScopeId(const Aws::String& value) { m_destinationIpamScopeIdHasBeenSet = true; m_destinationIpamScopeId = value; } /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline void SetDestinationIpamScopeId(Aws::String&& value) { m_destinationIpamScopeIdHasBeenSet = true; m_destinationIpamScopeId = std::move(value); } /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline void SetDestinationIpamScopeId(const char* value) { m_destinationIpamScopeIdHasBeenSet = true; m_destinationIpamScopeId.assign(value); } /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline ModifyIpamResourceCidrRequest& WithDestinationIpamScopeId(const Aws::String& value) { SetDestinationIpamScopeId(value); return *this;} /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline ModifyIpamResourceCidrRequest& WithDestinationIpamScopeId(Aws::String&& value) { SetDestinationIpamScopeId(std::move(value)); return *this;} /** *

The ID of the scope you want to transfer the resource CIDR to.

*/ inline ModifyIpamResourceCidrRequest& WithDestinationIpamScopeId(const char* value) { SetDestinationIpamScopeId(value); return *this;} /** *

Determines if the resource is monitored by IPAM. If a resource is monitored, * the resource is discovered by IPAM and you can view details about the resource’s * CIDR.

*/ inline bool GetMonitored() const{ return m_monitored; } /** *

Determines if the resource is monitored by IPAM. If a resource is monitored, * the resource is discovered by IPAM and you can view details about the resource’s * CIDR.

*/ inline bool MonitoredHasBeenSet() const { return m_monitoredHasBeenSet; } /** *

Determines if the resource is monitored by IPAM. If a resource is monitored, * the resource is discovered by IPAM and you can view details about the resource’s * CIDR.

*/ inline void SetMonitored(bool value) { m_monitoredHasBeenSet = true; m_monitored = value; } /** *

Determines if the resource is monitored by IPAM. If a resource is monitored, * the resource is discovered by IPAM and you can view details about the resource’s * CIDR.

*/ inline ModifyIpamResourceCidrRequest& WithMonitored(bool value) { SetMonitored(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_resourceCidr; bool m_resourceCidrHasBeenSet = false; Aws::String m_resourceRegion; bool m_resourceRegionHasBeenSet = false; Aws::String m_currentIpamScopeId; bool m_currentIpamScopeIdHasBeenSet = false; Aws::String m_destinationIpamScopeId; bool m_destinationIpamScopeIdHasBeenSet = false; bool m_monitored; bool m_monitoredHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws