Class Attribute

    • Method Detail

      • name

        public final String name()

        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 (.).

        Returns:
        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 (.).
      • value

        public final String value()

        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.

        Returns:
        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.
      • targetType

        public final TargetType 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.

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

        Returns:
        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.
        See Also:
        TargetType
      • targetTypeAsString

        public final String targetTypeAsString()

        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.

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

        Returns:
        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.
        See Also:
        TargetType
      • targetId

        public final String targetId()

        The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

        Returns:
        The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).
      • 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)