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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder used to create an AwsQueryErrorTrait.static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AwsQueryErrorTrait.Builder
builder()
protected software.amazon.smithy.model.node.Node
getCode()
int
software.amazon.smithy.utils.SmithyBuilder<AwsQueryErrorTrait>
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
ID
public static final software.amazon.smithy.model.shapes.ShapeId ID
-
-
Constructor Details
-
AwsQueryErrorTrait
-
-
Method Details
-
getCode
-
getHttpResponseCode
public int getHttpResponseCode() -
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNode
in classsoftware.amazon.smithy.model.traits.AbstractTrait
-
toBuilder
- Specified by:
toBuilder
in interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<AwsQueryErrorTrait>
-
builder
- Returns:
- Returns a builder to create an awsQueryError trait.
-