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 Classes Modifier and Type Class Description static class
AwsQueryErrorTrait.Builder
Builder used to create an AwsQueryErrorTrait.static class
AwsQueryErrorTrait.Provider
-
Field Summary
Fields Modifier and Type Field Description static software.amazon.smithy.model.shapes.ShapeId
ID
-
Constructor Summary
Constructors Constructor Description AwsQueryErrorTrait(AwsQueryErrorTrait.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsQueryErrorTrait.Builder
builder()
protected software.amazon.smithy.model.node.Node
createNode()
java.lang.String
getCode()
int
getHttpResponseCode()
software.amazon.smithy.utils.SmithyBuilder<AwsQueryErrorTrait>
toBuilder()
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
-
-
-
-
Constructor Detail
-
AwsQueryErrorTrait
public AwsQueryErrorTrait(AwsQueryErrorTrait.Builder builder)
-
-
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 classsoftware.amazon.smithy.model.traits.AbstractTrait
-
toBuilder
public software.amazon.smithy.utils.SmithyBuilder<AwsQueryErrorTrait> toBuilder()
- Specified by:
toBuilder
in interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<AwsQueryErrorTrait>
-
builder
public static AwsQueryErrorTrait.Builder builder()
- Returns:
- Returns a builder to create an awsQueryError trait.
-
-