/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Attribute associated with a resource. Note the corresponding format
* required per type listed below:
* where x is an integer in the range [0,255]
* where y is a hexadecimal between 0 and FFFF. [0, FFFF]
*
x.x.x.x
y : y : y : y : y : y : y : y
* ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$
See Also:
AWS
* API Reference
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