/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MigrationHub { namespace Model { /** *

Attribute associated with a resource.

Note the corresponding format * required per type listed below:

IPV4

* x.x.x.x

where x is an integer in the range [0,255] *

IPV6

y : y : y : y : y : y : y : y *

where y is a hexadecimal between 0 and FFFF. [0, FFFF]

*
MAC_ADDRESS

* ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$

FQDN
*

^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$

*

See Also:

AWS * API Reference

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

Type of resource.

*/ inline const ResourceAttributeType& GetType() const{ return m_type; } /** *

Type of resource.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Type of resource.

*/ inline void SetType(const ResourceAttributeType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Type of resource.

*/ inline void SetType(ResourceAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Type of resource.

*/ inline ResourceAttribute& WithType(const ResourceAttributeType& value) { SetType(value); return *this;} /** *

Type of resource.

*/ inline ResourceAttribute& WithType(ResourceAttributeType&& value) { SetType(std::move(value)); return *this;} /** *

Value of the resource type.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

Value of the resource type.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

Value of the resource type.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

Value of the resource type.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

Value of the resource type.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

Value of the resource type.

*/ inline ResourceAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

Value of the resource type.

*/ inline ResourceAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

Value of the resource type.

*/ inline ResourceAttribute& WithValue(const char* value) { SetValue(value); return *this;} private: ResourceAttributeType m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace MigrationHub } // namespace Aws