Class BuildInfo
- java.lang.Object
-
- software.amazon.smithy.build.plugins.BuildInfo
-
public final class BuildInfo extends java.lang.Object
POJO to represents a smithy-build-info.json file.
-
-
Constructor Summary
Constructors Constructor Description BuildInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,Node>
getMetadata()
java.util.List<ShapeId>
getOperationShapeIds()
ProjectionConfig
getProjection()
java.lang.String
getProjectionName()
java.util.List<ShapeId>
getResourceShapeIds()
java.util.List<ShapeId>
getServiceShapeIds()
java.util.List<ShapeId>
getTraitDefNames()
java.util.List<ShapeId>
getTraitNames()
java.util.List<ValidationEvent>
getValidationEvents()
java.lang.String
getVersion()
int
hashCode()
void
setMetadata(java.util.Map<java.lang.String,Node> metadata)
void
setOperationShapeIds(java.util.List<ShapeId> operationShapeIds)
void
setProjection(ProjectionConfig projection)
void
setProjectionName(java.lang.String projectionName)
void
setResourceShapeIds(java.util.List<ShapeId> resourceShapeIds)
void
setServiceShapeIds(java.util.List<ShapeId> serviceShapeIds)
void
setTraitDefNames(java.util.List<ShapeId> traitDefNames)
void
setTraitNames(java.util.List<ShapeId> traitNames)
void
setValidationEvents(java.util.List<ValidationEvent> validationEvents)
void
setVersion(java.lang.String version)
-
-
-
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.
-
setProjection
public void setProjection(ProjectionConfig projection)
-
getValidationEvents
public java.util.List<ValidationEvent> getValidationEvents()
- Returns:
- Gets the validation events encountered by the projection.
-
setValidationEvents
public void setValidationEvents(java.util.List<ValidationEvent> validationEvents)
-
getTraitNames
public java.util.List<ShapeId> getTraitNames()
- Returns:
- Gets the shape ID of every trait used in the projected model.
-
setTraitNames
public void setTraitNames(java.util.List<ShapeId> traitNames)
-
getTraitDefNames
public java.util.List<ShapeId> getTraitDefNames()
- Returns:
- Gets the shape ID of every trait shape defined in the projection.
-
setTraitDefNames
public void setTraitDefNames(java.util.List<ShapeId> traitDefNames)
-
getServiceShapeIds
public java.util.List<ShapeId> getServiceShapeIds()
- Returns:
- Gets the shape ID of every service in the projection.
-
setServiceShapeIds
public void setServiceShapeIds(java.util.List<ShapeId> serviceShapeIds)
-
getOperationShapeIds
public java.util.List<ShapeId> getOperationShapeIds()
- Returns:
- Gets the shape ID of every operation in the projection.
-
setOperationShapeIds
public void setOperationShapeIds(java.util.List<ShapeId> operationShapeIds)
-
getResourceShapeIds
public java.util.List<ShapeId> getResourceShapeIds()
- Returns:
- Gets the shape ID of every resource in the projection.
-
setResourceShapeIds
public void setResourceShapeIds(java.util.List<ShapeId> resourceShapeIds)
-
getMetadata
public java.util.Map<java.lang.String,Node> getMetadata()
- Returns:
- Gets the model metadata in the projection.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,Node> metadata)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-