Class 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 Detail

      • ID

        public static final software.amazon.smithy.model.shapes.ShapeId ID
    • Method Detail

      • getCode

        public java.lang.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>