Class AwsQueryErrorTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.protocols.AwsQueryErrorTrait
All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.model.shapes.ToShapeId, software.amazon.smithy.model.traits.Trait, software.amazon.smithy.utils.ToSmithyBuilder<AwsQueryErrorTrait>

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

    • ID

      public static final software.amazon.smithy.model.shapes.ShapeId ID
  • Constructor Details

  • Method Details

    • getCode

      public String getCode()
    • getHttpResponseCode

      public int getHttpResponseCode()
    • createNode

      protected software.amazon.smithy.model.node.Node createNode()
      Specified by:
      createNode in class software.amazon.smithy.model.traits.AbstractTrait
    • toBuilder

      public software.amazon.smithy.utils.SmithyBuilder<AwsQueryErrorTrait> toBuilder()
      Specified by:
      toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<AwsQueryErrorTrait>
    • builder

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