Class TaggedResource

    • Method Detail

      • tag

        public final Tag tag()

        The tag for the resource.

        Returns:
        The tag for the resource.
      • resourceName

        public final String resourceName()

        The Amazon Resource Name (ARN) with which the tag is associated, for example: arn:aws:redshift:us-east-2:123456789:cluster:t1.

        Returns:
        The Amazon Resource Name (ARN) with which the tag is associated, for example: arn:aws:redshift:us-east-2:123456789:cluster:t1.
      • resourceType

        public final String resourceType()

        The type of resource with which the tag is associated. Valid resource types are:

        • Cluster

        • CIDR/IP

        • EC2 security group

        • Snapshot

        • Cluster security group

        • Subnet group

        • HSM connection

        • HSM certificate

        • Parameter group

        For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.

        Returns:
        The type of resource with which the tag is associated. Valid resource types are:

        • Cluster

        • CIDR/IP

        • EC2 security group

        • Snapshot

        • Cluster security group

        • Subnet group

        • HSM connection

        • HSM certificate

        • Parameter group

        For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.

      • 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)