Package com.vmware.nsx_policy.model
Class HostMovementSpec.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.HostMovementSpec.Builder
-
- Enclosing class:
- HostMovementSpec
public static final class HostMovementSpec.Builder extends java.lang.Object
Builder class forHostMovementSpec
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofHostMovementSpec
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostMovementSpec
build()
HostMovementSpec.Builder
setDestination(java.lang.String destination)
This is the policy path of destination sub-cluster to which hosts will be moved to.HostMovementSpec.Builder
setDiscoveredNodeIds(java.util.List<java.lang.String> discoveredNodeIds)
Discovered node IDs to be moved.HostMovementSpec.Builder
setSource(java.lang.String source)
This is the policy path of source sub-cluster from which hosts are moved out
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofHostMovementSpec
.
-
-
Method Detail
-
setDestination
public HostMovementSpec.Builder setDestination(java.lang.String destination)
This is the policy path of destination sub-cluster to which hosts will be moved to. If this value is null, then we assume the host is moved into the cluster.- Parameters:
destination
- New value for the property.
-
setDiscoveredNodeIds
public HostMovementSpec.Builder setDiscoveredNodeIds(java.util.List<java.lang.String> discoveredNodeIds)
Discovered node IDs to be moved.- Parameters:
discoveredNodeIds
- New value for the property.
-
setSource
public HostMovementSpec.Builder setSource(java.lang.String source)
This is the policy path of source sub-cluster from which hosts are moved out- Parameters:
source
- New value for the property.
-
build
public HostMovementSpec build()
-
-