public static final class UpgradeUnit.Builder
extends java.lang.Object
UpgradeUnit
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
UpgradeUnit . |
Modifier and Type | Method and Description |
---|---|
UpgradeUnit |
build() |
UpgradeUnit.Builder |
setCurrentVersion(java.lang.String currentVersion)
This is component version e.g.
|
UpgradeUnit.Builder |
setDisplayName(java.lang.String displayName)
Name of the upgrade unit
|
UpgradeUnit.Builder |
setGroup(UpgradeUnitGroupInfo group) |
UpgradeUnit.Builder |
setId(java.lang.String id)
Identifier of the upgrade 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.
|
UpgradeUnit.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
UpgradeUnit.Builder |
setMetadata(java.util.List<KeyValuePair> metadata)
Metadata about upgrade 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.
|
UpgradeUnit.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.
|
UpgradeUnit.Builder |
setSelf(SelfResourceLink self) |
UpgradeUnit.Builder |
setType(java.lang.String type)
Upgrade unit type
|
UpgradeUnit.Builder |
setWarnings(java.util.List<java.lang.String> warnings)
List of warnings indicating issues with the upgrade unit that may result in
upgrade 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()
UpgradeUnit
.public UpgradeUnit.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public UpgradeUnit.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public UpgradeUnit.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public UpgradeUnit.Builder setCurrentVersion(java.lang.String currentVersion)
currentVersion
- New value for the property.public UpgradeUnit.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public UpgradeUnit.Builder setGroup(UpgradeUnitGroupInfo group)
group
- New value for the property.public UpgradeUnit.Builder setId(java.lang.String id)
id
- New value for the property.public UpgradeUnit.Builder setMetadata(java.util.List<KeyValuePair> metadata)
metadata
- New value for the property.public UpgradeUnit.Builder setType(java.lang.String type)
type
- New value for the property.public UpgradeUnit.Builder setWarnings(java.util.List<java.lang.String> warnings)
warnings
- New value for the property.public UpgradeUnit build()