Package com.vmware.nsx_policy.model
Class ClusterBackupInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ClusterBackupInfo.Builder
-
- Enclosing class:
- ClusterBackupInfo
public static final class ClusterBackupInfo.Builder extends java.lang.Object
Builder class forClusterBackupInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofClusterBackupInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterBackupInfo
build()
ClusterBackupInfo.Builder
setIpAddress(java.lang.String ipAddress)
IP address or FQDN of the node which would be used for the restoration.ClusterBackupInfo.Builder
setIpv6Address(java.lang.String ipv6Address)
IPv6 address or FQDN v6 of the node which would be used for the restoration.ClusterBackupInfo.Builder
setNodeId(java.lang.String nodeId)
ID of the node from which the backup was taken This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterBackupInfo.Builder
setRestoreType(java.util.List<java.lang.String> restoreType)
Possible values are:ClusterBackupInfo.RESTORE_TYPE_REGULAR_RESTORE
ClusterBackupInfo.RESTORE_TYPE_POLICY_ONLY_RESTORE
Type of restore allowed This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterBackupInfo.Builder
setTimestamp(java.lang.Long timestamp)
timestamp of the cluster backup file 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofClusterBackupInfo
.
-
-
Method Detail
-
setIpAddress
public ClusterBackupInfo.Builder setIpAddress(java.lang.String ipAddress)
IP address or FQDN of the node which would be used for the restoration. This should be same as the one on which backup was taken format: hostname-or-ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ipAddress
- New value for the property.
-
setIpv6Address
public ClusterBackupInfo.Builder setIpv6Address(java.lang.String ipv6Address)
IPv6 address or FQDN v6 of the node which would be used for the restoration. This should be same as the one on which backup was taken format: hostname-or-ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ipv6Address
- New value for the property.
-
setNodeId
public ClusterBackupInfo.Builder setNodeId(java.lang.String nodeId)
ID of the node from which the backup was taken This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
nodeId
- New value for the property.
-
setRestoreType
public ClusterBackupInfo.Builder setRestoreType(java.util.List<java.lang.String> restoreType)
Possible values are: Type of restore allowed This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
restoreType
- New value for the property.
-
setTimestamp
public ClusterBackupInfo.Builder setTimestamp(java.lang.Long timestamp)
timestamp of the cluster backup file 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.- Parameters:
timestamp
- New value for the property.
-
build
public ClusterBackupInfo build()
-
-