Class ExamplesTrait.Example

java.lang.Object
software.amazon.smithy.model.traits.ExamplesTrait.Example
All Implemented Interfaces:
ToNode, software.amazon.smithy.utils.ToSmithyBuilder<ExamplesTrait.Example>
Enclosing class:
ExamplesTrait

public static final class ExamplesTrait.Example extends Object implements ToNode, software.amazon.smithy.utils.ToSmithyBuilder<ExamplesTrait.Example>
A specific example.
  • Method Details

    • getTitle

      public String getTitle()
      Returns:
      Returns the title.
    • getDocumentation

      public Optional<String> getDocumentation()
      Returns:
      Gets the optional documentation.
    • getInput

      public ObjectNode getInput()
      Returns:
      Gets the input object.
    • getOutput

      public Optional<ObjectNode> getOutput()
      Returns:
      Gets the output object.
    • getError

      Returns:
      Gets the error example.
    • getAllowConstraintErrors

      public boolean getAllowConstraintErrors()
      Returns:
      Returns true if input constraints errors are allowed.
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Specified by:
      toNode in interface ToNode
      Returns:
      Returns the creates Node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toBuilder

      public ExamplesTrait.Example.Builder toBuilder()
      Specified by:
      toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<ExamplesTrait.Example>
    • builder

      public static ExamplesTrait.Example.Builder builder()