Class BuildInfo


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

      • BuildInfo

        public BuildInfo()
    • Method Detail

      • getVersion

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

        public void setVersion​(java.lang.String version)
      • getProjectionName

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

        public void setProjectionName​(java.lang.String projectionName)
      • getProjection

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

        public java.util.List<software.amazon.smithy.model.validation.ValidationEvent> getValidationEvents()
        Returns:
        Gets the validation events encountered by the projection.
      • setValidationEvents

        public void setValidationEvents​(java.util.List<software.amazon.smithy.model.validation.ValidationEvent> validationEvents)
      • getTraitNames

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

        public void setTraitNames​(java.util.List<software.amazon.smithy.model.shapes.ShapeId> traitNames)
      • getTraitDefNames

        public java.util.List<software.amazon.smithy.model.shapes.ShapeId> getTraitDefNames()
        Returns:
        Gets the shape ID of every trait shape defined in the projection.
      • setTraitDefNames

        public void setTraitDefNames​(java.util.List<software.amazon.smithy.model.shapes.ShapeId> traitDefNames)
      • getServiceShapeIds

        public java.util.List<software.amazon.smithy.model.shapes.ShapeId> getServiceShapeIds()
        Returns:
        Gets the shape ID of every service in the projection.
      • setServiceShapeIds

        public void setServiceShapeIds​(java.util.List<software.amazon.smithy.model.shapes.ShapeId> serviceShapeIds)
      • getOperationShapeIds

        public java.util.List<software.amazon.smithy.model.shapes.ShapeId> getOperationShapeIds()
        Returns:
        Gets the shape ID of every operation in the projection.
      • setOperationShapeIds

        public void setOperationShapeIds​(java.util.List<software.amazon.smithy.model.shapes.ShapeId> operationShapeIds)
      • getResourceShapeIds

        public java.util.List<software.amazon.smithy.model.shapes.ShapeId> getResourceShapeIds()
        Returns:
        Gets the shape ID of every resource in the projection.
      • setResourceShapeIds

        public void setResourceShapeIds​(java.util.List<software.amazon.smithy.model.shapes.ShapeId> resourceShapeIds)
      • getMetadata

        public java.util.Map<java.lang.String,​software.amazon.smithy.model.node.Node> getMetadata()
        Returns:
        Gets the model metadata in the projection.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​software.amazon.smithy.model.node.Node> metadata)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object