Class Property<T>
- java.lang.Object
-
- software.amazon.smithy.codegen.core.Property<T>
-
public final class Property<T> extends java.lang.ObjectAPropertyprovides an identity-based, immutable token for a property.The token also contains a name used to describe the value.
-
-
Constructor Summary
Constructors Constructor Description Property(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Property<T>named(java.lang.String name)Create a new identity-based property key.java.lang.StringtoString()
-
-
-
Method Detail
-
named
public static <T> Property<T> named(java.lang.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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-