Package com.vmware.nsx_policy.model
Class ResourceReference.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ResourceReference.Builder
-
- Enclosing class:
- ResourceReference
public static final class ResourceReference.Builder extends java.lang.Object
Builder class forResourceReference
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofResourceReference
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReference
build()
ResourceReference.Builder
setIsValid(java.lang.Boolean isValid)
Will be set to false if the referenced NSX resource has been deleted.ResourceReference.Builder
setTargetDisplayName(java.lang.String targetDisplayName)
Display name of the NSX resource.ResourceReference.Builder
setTargetId(java.lang.String targetId)
Identifier of the NSX resource.ResourceReference.Builder
setTargetType(java.lang.String targetType)
Type of the NSX resource.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofResourceReference
.
-
-
Method Detail
-
setIsValid
public ResourceReference.Builder setIsValid(java.lang.Boolean isValid)
Will be set to false if the referenced NSX resource has been deleted. 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:
isValid
- New value for the property.
-
setTargetDisplayName
public ResourceReference.Builder setTargetDisplayName(java.lang.String targetDisplayName)
Display name of the NSX 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.- Parameters:
targetDisplayName
- New value for the property.
-
setTargetId
public ResourceReference.Builder setTargetId(java.lang.String targetId)
Identifier of the NSX resource.- Parameters:
targetId
- New value for the property.
-
setTargetType
public ResourceReference.Builder setTargetType(java.lang.String targetType)
Type of the NSX resource.- Parameters:
targetType
- New value for the property.
-
build
public ResourceReference build()
-
-