Class EffectiveTraitQuery
java.lang.Object
software.amazon.smithy.model.traits.EffectiveTraitQuery
- All Implemented Interfaces:
ToSmithyBuilder<EffectiveTraitQuery>
public final class EffectiveTraitQuery
extends Object
implements ToSmithyBuilder<EffectiveTraitQuery>
Queries a model for effective traits bound to shapes and members.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds a reusable EffectiveTraitQuery. -
Method Summary
Modifier and TypeMethodDescriptionstatic EffectiveTraitQuery.Builderbuilder()Creates a new query builder.booleanisTraitApplied(ToShapeId shapeId) Checks if the trait is effectively applied to a shape.Take this object and create a builder that contains all of the current property values of this object.
-
Method Details
-
isTraitApplied
Checks if the trait is effectively applied to a shape.- Parameters:
shapeId- Shape to test.- Returns:
- Returns true if the trait is effectively applied to the shape.
-
builder
Creates a new query builder.- Returns:
- Returns the created builder.
-
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<EffectiveTraitQuery>- Returns:
- a builder for type T
-