Class TaskTemplateMetadata

    • Method Detail

      • id

        public final String id()

        A unique identifier for the task template.

        Returns:
        A unique identifier for the task template.
      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the task template.

        Returns:
        The Amazon Resource Name (ARN) of the task template.
      • name

        public final String name()

        The name of the task template.

        Returns:
        The name of the task template.
      • description

        public final String description()

        The description of the task template.

        Returns:
        The description of the task template.
      • status

        public final TaskTemplateStatus status()

        Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

        If the service returns an enum value that is not available in the current SDK version, status will return TaskTemplateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.
        See Also:
        TaskTemplateStatus
      • statusAsString

        public final String statusAsString()

        Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

        If the service returns an enum value that is not available in the current SDK version, status will return TaskTemplateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.
        See Also:
        TaskTemplateStatus
      • lastModifiedTime

        public final Instant lastModifiedTime()

        The timestamp when the task template was last modified.

        Returns:
        The timestamp when the task template was last modified.
      • createdTime

        public final Instant createdTime()

        The timestamp when the task template was created.

        Returns:
        The timestamp when the task template was created.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)