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 class
ExamplesTrait.Example.Builder
Builder used to createExamplesTrait.Example
s.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExamplesTrait.Example.Builder
builder()
boolean
equals(java.lang.Object o)
boolean
getAllowConstraintErrors()
java.util.Optional<java.lang.String>
getDocumentation()
java.util.Optional<ExamplesTrait.ErrorExample>
getError()
ObjectNode
getInput()
java.util.Optional<ObjectNode>
getOutput()
java.lang.String
getTitle()
int
hashCode()
ExamplesTrait.Example.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public ExamplesTrait.Example.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ExamplesTrait.Example>
- Returns:
- a builder for type T
-
builder
public static ExamplesTrait.Example.Builder builder()
-
-