public final class DeprecatedTrait extends AbstractTrait implements ToSmithyBuilder<DeprecatedTrait>
Modifier and Type | Class and Description |
---|---|
static class |
DeprecatedTrait.Builder
Builder used to create a DeprecatedTrait.
|
static class |
DeprecatedTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static DeprecatedTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<java.lang.String> |
getMessage()
Gets the deprecation message value.
|
java.util.Optional<java.lang.String> |
getSince()
Gets the deprecated since value.
|
DeprecatedTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public java.util.Optional<java.lang.String> getSince()
public java.util.Optional<java.lang.String> getMessage()
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public DeprecatedTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<DeprecatedTrait>
public static DeprecatedTrait.Builder builder()