/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ProvisionIpamPoolCidrRequest : public EC2Request { public: AWS_EC2_API ProvisionIpamPoolCidrRequest(); // 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 "ProvisionIpamPoolCidr"; } 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 ProvisionIpamPoolCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; } /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; } /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; } /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); } /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); } /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;} /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;} /** *

The ID of the IPAM pool to which you want to assign a CIDR.

*/ inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;} /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline const Aws::String& GetCidr() const{ return m_cidr; } /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline ProvisionIpamPoolCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline ProvisionIpamPoolCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} /** *

The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or * "Cidr" is required. This value will be null if you specify "NetmaskLength" and * will be filled in during the provisioning process.

*/ inline ProvisionIpamPoolCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;} /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline const IpamCidrAuthorizationContext& GetCidrAuthorizationContext() const{ return m_cidrAuthorizationContext; } /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline bool CidrAuthorizationContextHasBeenSet() const { return m_cidrAuthorizationContextHasBeenSet; } /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline void SetCidrAuthorizationContext(const IpamCidrAuthorizationContext& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = value; } /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline void SetCidrAuthorizationContext(IpamCidrAuthorizationContext&& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = std::move(value); } /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline ProvisionIpamPoolCidrRequest& WithCidrAuthorizationContext(const IpamCidrAuthorizationContext& value) { SetCidrAuthorizationContext(value); return *this;} /** *

A signed document that proves that you are authorized to bring a specified IP * address range to Amazon using BYOIP. This option applies to public pools * only.

*/ inline ProvisionIpamPoolCidrRequest& WithCidrAuthorizationContext(IpamCidrAuthorizationContext&& value) { SetCidrAuthorizationContext(std::move(value)); return *this;} /** *

The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.

*/ inline int GetNetmaskLength() const{ return m_netmaskLength; } /** *

The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.

*/ inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; } /** *

The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.

*/ inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; } /** *

The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.

*/ inline ProvisionIpamPoolCidrRequest& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline ProvisionIpamPoolCidrRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline ProvisionIpamPoolCidrRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. For more information, see Ensuring * Idempotency.

*/ inline ProvisionIpamPoolCidrRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_ipamPoolId; bool m_ipamPoolIdHasBeenSet = false; Aws::String m_cidr; bool m_cidrHasBeenSet = false; IpamCidrAuthorizationContext m_cidrAuthorizationContext; bool m_cidrAuthorizationContextHasBeenSet = false; int m_netmaskLength; bool m_netmaskLengthHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws