Class CleanClientDiscoveryTraitTransformer
java.lang.Object
software.amazon.smithy.aws.traits.clientendpointdiscovery.CleanClientDiscoveryTraitTransformer
- All Implemented Interfaces:
 ModelTransformerPlugin
public final class CleanClientDiscoveryTraitTransformer
extends Object
implements ModelTransformerPlugin
Removes the endpoint discovery trait from a service if the referenced operation or error are removed.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiononRemove(ModelTransformer transformer, Collection<Shape> shapes, Model model) The method that is invoked each time shapes are removed from a model. 
- 
Constructor Details
- 
CleanClientDiscoveryTraitTransformer
public CleanClientDiscoveryTraitTransformer() 
 - 
 - 
Method Details
- 
onRemove
Description copied from interface:ModelTransformerPluginThe method that is invoked each time shapes are removed from a model.- Specified by:
 onRemovein interfaceModelTransformerPlugin- Parameters:
 transformer- Transformer used to replace/remove shapes from the model.shapes- The of shapes that were removed from themodel.model- Model that has been altered to removeremoved.- Returns:
 - Returns a transformed version of the passed in model.
 
 
 -