public static final class InstanceRuntime.Builder
extends java.lang.Object
InstanceRuntime
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
InstanceRuntime . |
Modifier and Type | Method and Description |
---|---|
InstanceRuntime |
build() |
InstanceRuntime.Builder |
setComputeCollectionId(java.lang.String computeCollectionId)
Resource Pool or cluster Id.
|
InstanceRuntime.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
InstanceRuntime.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created 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.
|
InstanceRuntime.Builder |
setDeploymentStatus(java.lang.String deploymentStatus)
Possible values are:
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_SUCCESSFUL
InstanceRuntime.DEPLOYMENT_STATUS_UPGRADE_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_UPGRADE_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_SUCCESSFUL
InstanceRuntime.DEPLOYMENT_STATUS_UNKNOWN
Service-Instance Runtime deployment status of the Service-VM. |
InstanceRuntime.Builder |
setDescription(java.lang.String description)
Description of this resource
|
InstanceRuntime.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
InstanceRuntime.Builder |
setErrorMessage(java.lang.String errorMessage)
Error message for the Service Instance Runtime if any.
|
InstanceRuntime.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
InstanceRuntime.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
InstanceRuntime.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified 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.
|
InstanceRuntime.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
InstanceRuntime.Builder |
setMaintenanceMode(java.lang.String maintenanceMode)
Possible values are:
InstanceRuntime.MAINTENANCE_MODE_OFF InstanceRuntime.MAINTENANCE_MODE_ENTERING InstanceRuntime.MAINTENANCE_MODE_ON InstanceRuntime.MAINTENANCE_MODE_EXITING The
maintenance mode indicates whether the corresponding service VM is in
maintenance mode. |
InstanceRuntime.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
InstanceRuntime.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
InstanceRuntime.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
InstanceRuntime.Builder |
setRuntimeHealthStatusByPartner(java.lang.String runtimeHealthStatusByPartner)
Possible values are:
InstanceRuntime.RUNTIME_HEALTH_STATUS_BY_PARTNER_HEALTHY
InstanceRuntime.RUNTIME_HEALTH_STATUS_BY_PARTNER_STOPPED
InstanceRuntime.RUNTIME_HEALTH_STATUS_BY_PARTNER_NOT_RESPONDING
Service-Instance runtime health status set by partner to indicate whether
the service is running properly or not. |
InstanceRuntime.Builder |
setRuntimeStatus(java.lang.String runtimeStatus)
Possible values are:
InstanceRuntime.RUNTIME_STATUS_IN_SERVICE InstanceRuntime.RUNTIME_STATUS_OUT_OF_SERVICE
InstanceRuntime.RUNTIME_STATUS_NEEDS_ATTENTION
InstanceRuntime.RUNTIME_STATUS_NOT_AVAILABLE
Service-Instance Runtime status of the deployed Service-VM. |
InstanceRuntime.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.
|
InstanceRuntime.Builder |
setSelf(SelfResourceLink self) |
InstanceRuntime.Builder |
setServiceInstanceId(java.lang.String serviceInstanceId)
Id of an instantiation of a registered service.
|
InstanceRuntime.Builder |
setServiceVmId(java.lang.String serviceVmId)
Service-VM/SVM id of deployed virtual-machine.
|
InstanceRuntime.Builder |
setStorageId(java.lang.String storageId)
Moref of the datastore in VC.
|
InstanceRuntime.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned 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.
|
InstanceRuntime.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
InstanceRuntime.Builder |
setUnhealthyReason(java.lang.String unhealthyReason)
Reason provided by partner for the service being unhealthy.
|
InstanceRuntime.Builder |
setVmNicInfo(VmNicInfo vmNicInfo) |
public Builder()
InstanceRuntime
.public InstanceRuntime.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public InstanceRuntime.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public InstanceRuntime.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public InstanceRuntime.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public InstanceRuntime.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public InstanceRuntime.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public InstanceRuntime.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public InstanceRuntime.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public InstanceRuntime.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public InstanceRuntime.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public InstanceRuntime.Builder setDescription(java.lang.String description)
description
- New value for the property.public InstanceRuntime.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public InstanceRuntime.Builder setId(java.lang.String id)
id
- New value for the property.public InstanceRuntime.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public InstanceRuntime.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public InstanceRuntime.Builder setComputeCollectionId(java.lang.String computeCollectionId)
computeCollectionId
- New value for the property.public InstanceRuntime.Builder setDeploymentStatus(java.lang.String deploymentStatus)
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_DEPLOYMENT_SUCCESSFUL
InstanceRuntime.DEPLOYMENT_STATUS_UPGRADE_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_UPGRADE_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_IN_PROGRESS
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_FAILED
InstanceRuntime.DEPLOYMENT_STATUS_UNDEPLOYMENT_SUCCESSFUL
InstanceRuntime.DEPLOYMENT_STATUS_UNKNOWN
deploymentStatus
- New value for the property.public InstanceRuntime.Builder setErrorMessage(java.lang.String errorMessage)
errorMessage
- New value for the property.public InstanceRuntime.Builder setMaintenanceMode(java.lang.String maintenanceMode)
maintenanceMode
- New value for the property.public InstanceRuntime.Builder setRuntimeHealthStatusByPartner(java.lang.String runtimeHealthStatusByPartner)
runtimeHealthStatusByPartner
- New value for the property.public InstanceRuntime.Builder setRuntimeStatus(java.lang.String runtimeStatus)
runtimeStatus
- New value for the property.public InstanceRuntime.Builder setServiceInstanceId(java.lang.String serviceInstanceId)
serviceInstanceId
- New value for the property.public InstanceRuntime.Builder setServiceVmId(java.lang.String serviceVmId)
serviceVmId
- New value for the property.public InstanceRuntime.Builder setStorageId(java.lang.String storageId)
storageId
- New value for the property.public InstanceRuntime.Builder setUnhealthyReason(java.lang.String unhealthyReason)
unhealthyReason
- New value for the property.public InstanceRuntime.Builder setVmNicInfo(VmNicInfo vmNicInfo)
vmNicInfo
- New value for the property.public InstanceRuntime build()