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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraitValidatorsTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.TraitValidatorsTrait.Builder
putValidator(java.lang.String idSuffix, TraitValidatorsTrait.Validator validator)
TraitValidatorsTrait.Builder
removeValidator(java.lang.String idSuffix)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
build
public TraitValidatorsTrait 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(java.lang.String idSuffix, TraitValidatorsTrait.Validator validator)
-
removeValidator
public TraitValidatorsTrait.Builder removeValidator(java.lang.String idSuffix)
-
-