Class ExamplesTrait.Example
- java.lang.Object
-
- software.amazon.smithy.model.traits.ExamplesTrait.Example
-
- All Implemented Interfaces:
ToNode,ToSmithyBuilder<ExamplesTrait.Example>
- Enclosing class:
- ExamplesTrait
public static final class ExamplesTrait.Example extends java.lang.Object implements ToNode, ToSmithyBuilder<ExamplesTrait.Example>
A specific example.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExamplesTrait.Example.BuilderBuilder used to createExamplesTrait.Examples.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExamplesTrait.Example.Builderbuilder()booleanequals(java.lang.Object o)booleangetAllowConstraintErrors()java.util.Optional<java.lang.String>getDocumentation()java.util.Optional<ExamplesTrait.ErrorExample>getError()ObjectNodegetInput()java.util.Optional<ObjectNode>getOutput()java.lang.StringgetTitle()inthashCode()ExamplesTrait.Example.BuildertoBuilder()Take this object and create a builder that contains all of the current property values of this object.NodetoNode()Converts a value to aNode.
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
- Returns:
- Returns the title.
-
getDocumentation
public java.util.Optional<java.lang.String> getDocumentation()
- Returns:
- Gets the optional documentation.
-
getInput
public ObjectNode getInput()
- Returns:
- Gets the input object.
-
getOutput
public java.util.Optional<ObjectNode> getOutput()
- Returns:
- Gets the output object.
-
getError
public java.util.Optional<ExamplesTrait.ErrorExample> getError()
- Returns:
- Gets the error example.
-
getAllowConstraintErrors
public boolean getAllowConstraintErrors()
- Returns:
- Returns true if input constraints errors are allowed.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public ExamplesTrait.Example.Builder toBuilder()
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<ExamplesTrait.Example>- Returns:
- a builder for type T
-
builder
public static ExamplesTrait.Example.Builder builder()
-
-