public static final class EffectiveTraitQuery.Builder extends java.lang.Object implements SmithyBuilder<EffectiveTraitQuery>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EffectiveTraitQuery |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
EffectiveTraitQuery.Builder |
inheritFromContainer(boolean inheritFromContainer)
When testing member shapes, also checks the container of the member for
the presence of a trait.
|
EffectiveTraitQuery.Builder |
model(Model model)
Sets the required model to query.
|
EffectiveTraitQuery.Builder |
traitClass(java.lang.Class<? extends Trait> traitClass)
Sets the required trait being queried.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredStatepublic EffectiveTraitQuery build()
SmithyBuilderbuild in interface SmithyBuilder<EffectiveTraitQuery>public EffectiveTraitQuery.Builder model(Model model)
model - Model to query.public EffectiveTraitQuery.Builder traitClass(java.lang.Class<? extends Trait> traitClass)
traitClass - Trait to detect on shapes.public EffectiveTraitQuery.Builder inheritFromContainer(boolean inheritFromContainer)
By default, traits are not inherited from a member's parent container.
inheritFromContainer - Set to true to inherit traits from member containers.