public static final class MigrationUnit.Builder
extends java.lang.Object
MigrationUnit
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
MigrationUnit . |
Modifier and Type | Method and Description |
---|---|
MigrationUnit |
build() |
MigrationUnit.Builder |
setCurrentVersion(java.lang.String currentVersion)
This is component version e.g.
|
MigrationUnit.Builder |
setDisplayName(java.lang.String displayName)
Name of the migration unit
|
MigrationUnit.Builder |
setGroup(ResourceReference group) |
MigrationUnit.Builder |
setId(java.lang.String id)
Identifier of the migration unit
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
MigrationUnit.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
MigrationUnit.Builder |
setMetadata(java.util.List<KeyValuePair> metadata)
Metadata about migration unit
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
MigrationUnit.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
MigrationUnit.Builder |
setSelf(SelfResourceLink self) |
MigrationUnit.Builder |
setType(java.lang.String type)
Migration unit type
|
MigrationUnit.Builder |
setWarnings(java.util.List<java.lang.String> warnings)
List of warnings indicating issues with the migration unit that may result in
migration failure
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
public Builder()
MigrationUnit
.public MigrationUnit.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public MigrationUnit.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public MigrationUnit.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public MigrationUnit.Builder setCurrentVersion(java.lang.String currentVersion)
currentVersion
- New value for the property.public MigrationUnit.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public MigrationUnit.Builder setGroup(ResourceReference group)
group
- New value for the property.public MigrationUnit.Builder setId(java.lang.String id)
id
- New value for the property.public MigrationUnit.Builder setMetadata(java.util.List<KeyValuePair> metadata)
metadata
- New value for the property.public MigrationUnit.Builder setType(java.lang.String type)
type
- New value for the property.public MigrationUnit.Builder setWarnings(java.util.List<java.lang.String> warnings)
warnings
- New value for the property.public MigrationUnit build()