Class AwsQueryErrorTrait

All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait, ToSmithyBuilder<AwsQueryErrorTrait>

public final class AwsQueryErrorTrait extends AbstractTrait implements ToSmithyBuilder<AwsQueryErrorTrait>
Provides the value in the "Code" distinguishing field and HTTP response code for an operation error.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

  • Method Details

    • getCode

      public String getCode()
    • getHttpResponseCode

      public int getHttpResponseCode()
    • createNode

      protected Node createNode()
      Description copied from class: AbstractTrait
      The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
      Specified by:
      createNode in class AbstractTrait
      Returns the trait as a node.
    • toBuilder

      public SmithyBuilder<AwsQueryErrorTrait> 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 interface ToSmithyBuilder<AwsQueryErrorTrait>
      a builder for type T
    • builder

      public static AwsQueryErrorTrait.Builder builder()
      Returns a builder to create an awsQueryError trait.