Package com.vmware.nsx_policy.model
Class PolicyResourceReference.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyResourceReference.Builder
-
- Enclosing class:
- PolicyResourceReference
public static final class PolicyResourceReference.Builder extends java.lang.ObjectBuilder class forPolicyResourceReference.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyResourceReference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyResourceReferencebuild()PolicyResourceReference.BuildersetIsValid(java.lang.Boolean isValid)Will be set to false if the referenced NSX resource has been deleted.PolicyResourceReference.BuildersetOwnerId(java.lang.String ownerId)This is a UUID generated by the system for knowing who owns this resource.PolicyResourceReference.BuildersetPath(java.lang.String path)Absolute path of this object.PolicyResourceReference.BuildersetProjectScope(java.util.List<java.lang.String> projectScope)Project scope of policy 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.PolicyResourceReference.BuildersetTargetDisplayName(java.lang.String targetDisplayName)Display name of the NSX resource.PolicyResourceReference.BuildersetTargetId(java.lang.String targetId)Identifier of the NSX resource.PolicyResourceReference.BuildersetTargetType(java.lang.String targetType)Type of the NSX resource.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyResourceReference.
-
-
Method Detail
-
setIsValid
public PolicyResourceReference.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 PolicyResourceReference.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 PolicyResourceReference.Builder setTargetId(java.lang.String targetId)
Identifier of the NSX resource.- Parameters:
targetId- New value for the property.
-
setTargetType
public PolicyResourceReference.Builder setTargetType(java.lang.String targetType)
Type of the NSX resource.- Parameters:
targetType- New value for the property.
-
setOwnerId
public PolicyResourceReference.Builder setOwnerId(java.lang.String ownerId)
This is a UUID generated by the system for knowing who owns this resource. This is used in NSX+. 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:
ownerId- New value for the property.
-
setPath
public PolicyResourceReference.Builder setPath(java.lang.String path)
Absolute path of this object. 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:
path- New value for the property.
-
setProjectScope
public PolicyResourceReference.Builder setProjectScope(java.util.List<java.lang.String> projectScope)
Project scope of policy 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:
projectScope- New value for the property.
-
build
public PolicyResourceReference build()
-
-