Class Property<T>

java.lang.Object
software.amazon.smithy.codegen.core.Property<T>

public final class Property<T> extends Object
A Property provides an identity-based, immutable token for a property.

The token also contains a name used to describe the value.

  • Constructor Details

    • Property

      public Property(String name)
      Parameters:
      name - Name of the value.
  • Method Details

    • named

      public static <T> Property<T> named(String name)
      Create a new identity-based property key.
      Type Parameters:
      T - value type associated with the property.
      Parameters:
      name - Name of the property.
      Returns:
      the created property.
    • toString

      public String toString()
      Overrides:
      toString in class Object