public final class RecommendedTrait extends AbstractTrait implements ToSmithyBuilder<RecommendedTrait>
Modifier and Type | Class and Description |
---|---|
static class |
RecommendedTrait.Builder
Builder used to create a RecommendedTrait.
|
static class |
RecommendedTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static RecommendedTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<java.lang.String> |
getReason()
Gets the reason it is recommended to set this member.
|
RecommendedTrait.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> getReason()
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public RecommendedTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<RecommendedTrait>
public static RecommendedTrait.Builder builder()