Package software.amazon.smithy.diff
Class ModelDiff.Builder
- java.lang.Object
- 
- software.amazon.smithy.diff.ModelDiff.Builder
 
- 
- Enclosing class:
- ModelDiff
 
 public static final class ModelDiff.Builder extends java.lang.ObjectBuilder used to construct a diff of two Smithy models.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelDiff.BuilderclassLoader(java.lang.ClassLoader classLoader)Sets the ClassLoader used to findDiffEvaluatorservice providers.ModelDiff.Resultcompare()Performs the diff of the old and new models.ModelDiff.BuildernewModel(Model newModel)Sets the new model to compare against.ModelDiff.BuildernewModel(ValidatedResult<Model> newModel)Sets the new model to compare against along with the validation events encountered while loading the model.ModelDiff.BuilderoldModel(Model oldModel)Sets the old model to compare against.ModelDiff.BuilderoldModel(ValidatedResult<Model> oldModel)Sets the old model to compare against along with the validation events encountered while loading the model.
 
- 
- 
- 
Method Detail- 
classLoaderpublic ModelDiff.Builder classLoader(java.lang.ClassLoader classLoader) Sets the ClassLoader used to findDiffEvaluatorservice providers.- Parameters:
- classLoader- ClassLoader to use.
- Returns:
- Returns the builder.
 
 - 
oldModelpublic ModelDiff.Builder oldModel(Model oldModel) Sets the old model to compare against.- Parameters:
- oldModel- Old version of a model.
- Returns:
- Returns the builder.
 
 - 
newModelpublic ModelDiff.Builder newModel(Model newModel) Sets the new model to compare against.- Parameters:
- newModel- New version of a model.
- Returns:
- Returns the builder.
 
 - 
oldModelpublic ModelDiff.Builder oldModel(ValidatedResult<Model> oldModel) Sets the old model to compare against along with the validation events encountered while loading the model.- Parameters:
- oldModel- Old version of a model with events.
- Returns:
- Returns the builder.
 
 - 
newModelpublic ModelDiff.Builder newModel(ValidatedResult<Model> newModel) Sets the new model to compare against along with the validation events encountered while loading the model.- Parameters:
- newModel- New version of a model with events.
- Returns:
- Returns the builder.
 
 - 
comparepublic ModelDiff.Result compare() Performs the diff of the old and new models.- Returns:
- Returns the diff ModelDiff.Result.
- Throws:
- java.lang.IllegalStateException- if- oldModeland- newModelare not set.
 
 
- 
 
-