/**
* 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 that's associated with an Amazon ECS
* object. Use attributes 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. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The name of the attribute. The name
must contain between 1 and
* 128 characters. The name may contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods
* (.).
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The value of the attribute. The value
must contain between 1 and
* 128 characters. It can contain letters (uppercase and lowercase), numbers,
* hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/),
* back slashes (\), colons (:), or spaces. The value can't start or end with a
* space.
The type of the target to attach the attribute with. 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 to attach the attribute with. 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 to attach the attribute with. 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 to attach the attribute with. 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 to attach the attribute with. 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 to attach the attribute with. 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 = false; Aws::String m_value; bool m_valueHasBeenSet = false; TargetType m_targetType; bool m_targetTypeHasBeenSet = false; Aws::String m_targetId; bool m_targetIdHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws