/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace GlobalAccelerator { namespace Model { /** */ class ProvisionByoipCidrRequest : public GlobalAcceleratorRequest { public: AWS_GLOBALACCELERATOR_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_GLOBALACCELERATOR_API Aws::String SerializePayload() const override; AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The public IPv4 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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 address range, in CIDR notation. The most specific IP prefix * that you can specify is /24. 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;} private: Aws::String m_cidr; bool m_cidrHasBeenSet = false; CidrAuthorizationContext m_cidrAuthorizationContext; bool m_cidrAuthorizationContextHasBeenSet = false; }; } // namespace Model } // namespace GlobalAccelerator } // namespace Aws