Package software.amazon.smithy.model.traits
package software.amazon.smithy.model.traits
-
ClassDescriptionBase implementation of traits.Basic provider implementation that returns the name of the provided trait.Provides the shared logic that all trait builders need.Trait implementation for traits that are an empty object.AnnotationTrait.Provider<T extends AnnotationTrait>Trait provider that expects a boolean value of true.This trait is attached to another trait to define an auth scheme.Specifies the auth schemes supported by default for operations bound to a service.Deprecated.Indicates that non-authoritative code generators should treat a member as optional even if it's required or default.Indicates that a shape is defaulted, meaning a zero value is used when one is not provided.Marks a shape as deprecated.Builder used to create a DeprecatedTrait.Adds documentation to a model.A general-purpose trait used to represent traits that are defined in the model and have no concrete implementation.Queries a model for effective traits bound to shapes and members.Builds a reusable EffectiveTraitQuery.Defines custom endpoint bindings of an operation.An enum definition for the enum trait.Builds a
EnumDefinition
.Deprecated.Builder used to create the enum trait.Sets the value for an enum member.Indicates that a structure can be used as an error.Marks a structure member of an event as an event header.Marks a structure member of an event as the event payload.Defines examples for an operation.Builds and examples trait.A specific example.Builder used to createExamplesTrait.Example
s.Provides named links to external documentation.Builder used to create the external documentation trait.Binds an input member to a label in the hostPrefix of an endpoint trait on an operation.An HTTP-specific authentication scheme that sends an arbitrary API key in a header or query string parameter.An auth scheme trait uses HTTP basic auth.An auth scheme trait uses HTTP bearer auth.Indicates that an operation requires a checksum in its HTTP request.An auth scheme trait uses HTTP digest auth.Defines a custom HTTP status code for error structures.Binds a member to an HTTP header.Binds a member to a URI label of an input of an operation using the member name.Binds a single structure member to the payload of an HTTP request.Binds a map structure member to prefixed HTTP headers.Binds a map structure member to the HTTP query string.Binds a member to an HTTP query string.Indicates that the structure member represents the HTTP response status code.Defines the HTTP request and response code bindings of an operation.Builder used to create an Http trait.Defines an operation input member that is used to prevent replayed requests.Indicates that an operation is idempotent.Indicates that a string value must contain a valid shape ID.Specializes a structure as the input of a single operation.Shapes marked with the internal trait are meant only for internal use and must not be exposed to customers.Provides a custom name to use when serializing a structure member name as a JSON object property.Constrains a shape to minimum and maximum number of elements or size.Builder used to create a LongTrait.Documents the media type of a blob shape.Builder used to create a MixinTrait.Indicates that the contents of a structure member contain the top-level properties of the associated resource.Indicates that the put lifecycle operation of a resource can only be used to create a resource and cannot replace an existing resource.Indicates that a top level input/output structure member is not associated with a resource property.Indicates that an operation / service supports unauthenticated access.Specializes a structure as the output of a single operation.Defines the pagination functionality of an operation.Builds the paginated trait.Restricts string values to a specified regular expression.Indicates that a shape cannot be targeted outside of the namespace in which it was defined.Configures how a structure member maps to a resource property.A trait that is attached to other traits to define a Smithy protocol.Constrains a shape to minimum and maximum numeric range.Builder used to create a RangeTrait.Indicates that an operation is read-only.Builder used to create a RecommendedTrait.Defines references to resources within a structure.Builder use to create the references trait.Reference to a resource.Builder to create aReferencesTrait.Reference
.Indicates that a structure member is required.Indicates that the streaming blob must be finite and has a known size.Binds an operation input member to a named identifier of the resource to which the operation is bound.Marks an error structure as retryable.Builds aRetryableTrait
trait.Indicates that the data stored in the shape or member is sensitive and should be handled with care.Defines when a shape or member was added to the model.Indicates that a list or map is sparse, meaning they may contain nulls.Indicates that the data stored in the shape is very large and should not be stored in memory, or that the size of the data stored in the shape is unknown at the start of a request.Contains abstract functionality to build traits that contain a list of strings.Abstract builder to build a StringList trait.StringListTrait.Provider<T extends StringListTrait>Trait provider that expects a list of string values.Factory method to create a StringList provider.Abstract trait class for traits that contain only a string value.StringTrait.Provider<T extends StringTrait>Trait provider that expects a string value.Applies tags to a shape.Defines a custom serialization format for a timestamp.The knowntimestampFormat
values.Provides a human-readable proper noun title to services and resources.Traits provide additional context and semantics to shapes.Trait definition trait.Represents an individual trait diff rule to define backward compatibility rules.Builder to create a TraitDefinition.The structural exclusion semantics of the trait.Creates traits using trait data from a model.Creates traits fromNode
values.Indicates that the members of a list must be unique.Marks a shape as unstable.Marks a structure member to be serialized to/from an XML attribute.Defines the XML Namespace prefix and URI.Builder used to create an XmlNamespace trait.Provides a custom name to use when serializing a structure member name as a XML object property.
NullableIndex
instead.