/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ProvisionByoipCidrRequest : public EC2Request { public: AWS_EC2_API ProvisionByoipCidrRequest(); // 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 "ProvisionByoipCidr"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

The public IPv4 or IPv6 address range, in CIDR notation. The most specific * IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can * specify is /56. The address range cannot overlap with another address range that * you've brought to this or another Region.

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

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

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

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

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

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

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

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

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

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

*/ inline ProvisionByoipCidrRequest& WithCidrAuthorizationContext(const CidrAuthorizationContext& value) { SetCidrAuthorizationContext(value); return *this;} /** *

A signed document that proves that you are authorized to bring the specified * IP address range to Amazon using BYOIP.

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

(IPv6 only) Indicate whether the address range will be publicly advertised to * the internet.

Default: true

*/ inline bool GetPubliclyAdvertisable() const{ return m_publiclyAdvertisable; } /** *

(IPv6 only) Indicate whether the address range will be publicly advertised to * the internet.

Default: true

*/ inline bool PubliclyAdvertisableHasBeenSet() const { return m_publiclyAdvertisableHasBeenSet; } /** *

(IPv6 only) Indicate whether the address range will be publicly advertised to * the internet.

Default: true

*/ inline void SetPubliclyAdvertisable(bool value) { m_publiclyAdvertisableHasBeenSet = true; m_publiclyAdvertisable = value; } /** *

(IPv6 only) Indicate whether the address range will be publicly advertised to * the internet.

Default: true

*/ inline ProvisionByoipCidrRequest& WithPubliclyAdvertisable(bool value) { SetPubliclyAdvertisable(value); return *this;} /** *

A description for the address range and the address pool.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the address range and the address pool.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the address range and the address pool.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the address range and the address pool.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the address range and the address pool.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the address range and the address pool.

*/ inline ProvisionByoipCidrRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the address range and the address pool.

*/ inline ProvisionByoipCidrRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the address range and the address pool.

*/ inline ProvisionByoipCidrRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Checks 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; } /** *

Checks 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; } /** *

Checks 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; } /** *

Checks 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 ProvisionByoipCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The tags to apply to the address pool.

*/ inline const Aws::Vector& GetPoolTagSpecifications() const{ return m_poolTagSpecifications; } /** *

The tags to apply to the address pool.

*/ inline bool PoolTagSpecificationsHasBeenSet() const { return m_poolTagSpecificationsHasBeenSet; } /** *

The tags to apply to the address pool.

*/ inline void SetPoolTagSpecifications(const Aws::Vector& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = value; } /** *

The tags to apply to the address pool.

*/ inline void SetPoolTagSpecifications(Aws::Vector&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = std::move(value); } /** *

The tags to apply to the address pool.

*/ inline ProvisionByoipCidrRequest& WithPoolTagSpecifications(const Aws::Vector& value) { SetPoolTagSpecifications(value); return *this;} /** *

The tags to apply to the address pool.

*/ inline ProvisionByoipCidrRequest& WithPoolTagSpecifications(Aws::Vector&& value) { SetPoolTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply to the address pool.

*/ inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(const TagSpecification& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(value); return *this; } /** *

The tags to apply to the address pool.

*/ inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(TagSpecification&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(std::move(value)); return *this; } /** *

Reserved.

*/ inline bool GetMultiRegion() const{ return m_multiRegion; } /** *

Reserved.

*/ inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; } /** *

Reserved.

*/ inline void SetMultiRegion(bool value) { m_multiRegionHasBeenSet = true; m_multiRegion = value; } /** *

Reserved.

*/ inline ProvisionByoipCidrRequest& WithMultiRegion(bool value) { SetMultiRegion(value); return *this;} private: Aws::String m_cidr; bool m_cidrHasBeenSet = false; CidrAuthorizationContext m_cidrAuthorizationContext; bool m_cidrAuthorizationContextHasBeenSet = false; bool m_publiclyAdvertisable; bool m_publiclyAdvertisableHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Vector m_poolTagSpecifications; bool m_poolTagSpecificationsHasBeenSet = false; bool m_multiRegion; bool m_multiRegionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws