Class TraitValidatorsTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<TraitValidatorsTrait,TraitValidatorsTrait.Builder>
software.amazon.smithy.model.traits.TraitValidatorsTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<TraitValidatorsTrait>
- Enclosing class:
- TraitValidatorsTrait
public static final class TraitValidatorsTrait.Builder
extends AbstractTraitBuilder<TraitValidatorsTrait,TraitValidatorsTrait.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable object that is created from the properties that have been set on the builder.putValidator
(String idSuffix, TraitValidatorsTrait.Validator validator) removeValidator
(String idSuffix) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
putValidator
public TraitValidatorsTrait.Builder putValidator(String idSuffix, TraitValidatorsTrait.Validator validator) -
removeValidator
-