/** * 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 AssociateSubnetCidrBlockRequest : public EC2Request { public: AWS_EC2_API AssociateSubnetCidrBlockRequest(); // 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 "AssociateSubnetCidrBlock"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; } /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; } /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; } /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); } /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); } /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;} /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;} /** *

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix * length.

*/ inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;} /** *

The ID of your subnet.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of your subnet.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of your subnet.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of your subnet.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of your subnet.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of your subnet.

*/ inline AssociateSubnetCidrBlockRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of your subnet.

*/ inline AssociateSubnetCidrBlockRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of your subnet.

*/ inline AssociateSubnetCidrBlockRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} private: Aws::String m_ipv6CidrBlock; bool m_ipv6CidrBlockHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws