/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

An IPV6 CIDR block association.

See Also:

AWS * API Reference

*/ class Ipv6CidrBlockAssociation { public: AWS_SECURITYHUB_API Ipv6CidrBlockAssociation(); AWS_SECURITYHUB_API Ipv6CidrBlockAssociation(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Ipv6CidrBlockAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The association ID for the IPv6 CIDR block.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The association ID for the IPv6 CIDR block.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The association ID for the IPv6 CIDR block.

*/ inline Ipv6CidrBlockAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The association ID for the IPv6 CIDR block.

*/ inline Ipv6CidrBlockAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The association ID for the IPv6 CIDR block.

*/ inline Ipv6CidrBlockAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

The IPv6 CIDR block.

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

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline const Aws::String& GetCidrBlockState() const{ return m_cidrBlockState; } /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; } /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline void SetCidrBlockState(const Aws::String& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = value; } /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline void SetCidrBlockState(Aws::String&& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = std::move(value); } /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline void SetCidrBlockState(const char* value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState.assign(value); } /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline Ipv6CidrBlockAssociation& WithCidrBlockState(const Aws::String& value) { SetCidrBlockState(value); return *this;} /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline Ipv6CidrBlockAssociation& WithCidrBlockState(Aws::String&& value) { SetCidrBlockState(std::move(value)); return *this;} /** *

Information about the state of the CIDR block. Valid values are as * follows:

  • associating

  • * associated

  • disassociating

    *
  • disassociated

  • * failed

  • failing

*/ inline Ipv6CidrBlockAssociation& WithCidrBlockState(const char* value) { SetCidrBlockState(value); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_ipv6CidrBlock; bool m_ipv6CidrBlockHasBeenSet = false; Aws::String m_cidrBlockState; bool m_cidrBlockStateHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws