public class ResourceCheckinSpecification extends Object implements Serializable
In general, a ResourceCheckinSpecification with a versionType of MAJOR will indicate the major number field should be incremented by one, a versionType of MINOR will indicate the minor number field should be incremented by one, and CUSTOM allows you to specify exactly what the next version number should be.
When specifying a CUSTOM check in specification, the provided number must be greater than the current version of the resource you are manipulating.
Constructor and Description |
---|
ResourceCheckinSpecification(String comment) |
ResourceCheckinSpecification(String comment,
VersionType versionType) |
ResourceCheckinSpecification(String comment,
VersionType versionType,
String customVersion) |
Modifier and Type | Method and Description |
---|---|
String |
getComment() |
String |
getCustomVersion() |
VersionType |
getVersionType() |
String |
toString() |
static VersionType |
toVersionType(String versionTypeString)
Convert string to equivalent version type.
|
public ResourceCheckinSpecification(String comment)
comment
- Description or label for the change.public ResourceCheckinSpecification(String comment, VersionType versionType)
comment
- Description or label for the change.versionType
- How the next version label should be created.public ResourceCheckinSpecification(String comment, VersionType versionType, String customVersion)
comment
- Description or label for the change.versionType
- How the next version label should be created.customVersion
- The version label to use if versionType is CUSTOM.public static VersionType toVersionType(String versionTypeString)
versionTypeString
- public VersionType getVersionType()
public String getCustomVersion()
public String getComment()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA