Class ExamplesTrait.ErrorExample
- java.lang.Object
-
- software.amazon.smithy.model.traits.ExamplesTrait.ErrorExample
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ExamplesTrait.ErrorExample>
- Enclosing class:
- ExamplesTrait
public static final class ExamplesTrait.ErrorExample extends java.lang.Object implements ToNode, ToSmithyBuilder<ExamplesTrait.ErrorExample>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExamplesTrait.ErrorExample.Builder
-
Constructor Summary
Constructors Constructor Description ErrorExample(ExamplesTrait.ErrorExample.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExamplesTrait.ErrorExample.Builder
builder()
boolean
equals(java.lang.Object other)
static ExamplesTrait.ErrorExample
fromNode(Node node)
ObjectNode
getContent()
ShapeId
getShapeId()
int
hashCode()
ExamplesTrait.ErrorExample.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
.
-
-
-
Constructor Detail
-
ErrorExample
public ErrorExample(ExamplesTrait.ErrorExample.Builder builder)
-
-
Method Detail
-
fromNode
public static ExamplesTrait.ErrorExample fromNode(Node node)
-
getShapeId
public ShapeId getShapeId()
- Returns:
- Gets the error shape id for the example.
-
getContent
public ObjectNode getContent()
- Returns:
- Gets the error object.
-
toBuilder
public ExamplesTrait.ErrorExample.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.ErrorExample>
- Returns:
- a builder for type T
-
builder
public static ExamplesTrait.ErrorExample.Builder builder()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-