/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An attribute is a name-value pair associated with an Amazon ECS object.
* Attributes enable you to extend the Amazon ECS data model by adding custom
* metadata to your resources. For more information, see Attributes
* in the Amazon Elastic Container Service Developer Guide.See
* Also:
AWS API
* Reference
The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, and periods are allowed.
*/ inline Attribute& WithName(const char* value) { SetName(value); return *this;} /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value of the attribute. Up to 128 letters (uppercase and lowercase), * numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, * and spaces are allowed.
*/ inline Attribute& WithValue(const char* value) { SetValue(value); return *this;} /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline const TargetType& GetTargetType() const{ return m_targetType; } /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline Attribute& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;} /** *The type of the target with which to attach the attribute. This parameter is * required if you use the short form ID for a resource instead of the full * ARN.
*/ inline Attribute& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;} /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline const Aws::String& GetTargetId() const{ return m_targetId; } /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline Attribute& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline Attribute& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} /** *The ID of the target. You can specify the short form ID for a resource or the * full Amazon Resource Name (ARN).
*/ inline Attribute& WithTargetId(const char* value) { SetTargetId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_value; bool m_valueHasBeenSet; TargetType m_targetType; bool m_targetTypeHasBeenSet; Aws::String m_targetId; bool m_targetIdHasBeenSet; }; } // namespace Model } // namespace ECS } // namespace Aws