Class BuildInfo

java.lang.Object
software.amazon.smithy.build.plugins.BuildInfo

public final class BuildInfo extends Object
POJO to represents a smithy-build-info.json file.
  • Constructor Details

    • BuildInfo

      public BuildInfo()
  • Method Details

    • getVersion

      public String getVersion()
      Returns:
      Gets the version of the build-info file format.
    • setVersion

      public void setVersion(String version)
    • getProjectionName

      public String getProjectionName()
      Returns:
      Gets the name of the projection used in this build.
    • setProjectionName

      public void setProjectionName(String projectionName)
    • getProjection

      public ProjectionConfig getProjection()
      Returns:
      Gets the projection configuration.
    • setProjection

      public void setProjection(ProjectionConfig projection)
    • getValidationEvents

      public List<ValidationEvent> getValidationEvents()
      Returns:
      Gets the validation events encountered by the projection.
    • setValidationEvents

      public void setValidationEvents(List<ValidationEvent> validationEvents)
    • getTraitNames

      public List<ShapeId> getTraitNames()
      Returns:
      Gets the shape ID of every trait used in the projected model.
    • setTraitNames

      public void setTraitNames(List<ShapeId> traitNames)
    • getTraitDefNames

      public List<ShapeId> getTraitDefNames()
      Returns:
      Gets the shape ID of every trait shape defined in the projection.
    • setTraitDefNames

      public void setTraitDefNames(List<ShapeId> traitDefNames)
    • getServiceShapeIds

      public List<ShapeId> getServiceShapeIds()
      Returns:
      Gets the shape ID of every service in the projection.
    • setServiceShapeIds

      public void setServiceShapeIds(List<ShapeId> serviceShapeIds)
    • getOperationShapeIds

      public List<ShapeId> getOperationShapeIds()
      Returns:
      Gets the shape ID of every operation in the projection.
    • setOperationShapeIds

      public void setOperationShapeIds(List<ShapeId> operationShapeIds)
    • getResourceShapeIds

      public List<ShapeId> getResourceShapeIds()
      Returns:
      Gets the shape ID of every resource in the projection.
    • setResourceShapeIds

      public void setResourceShapeIds(List<ShapeId> resourceShapeIds)
    • getMetadata

      public Map<String,Node> getMetadata()
      Returns:
      Gets the model metadata in the projection.
    • setMetadata

      public void setMetadata(Map<String,Node> metadata)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object