Package com.vmware.nsx_policy.model
Class ResourceLink.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ResourceLink.Builder
-
- Enclosing class:
- ResourceLink
public static final class ResourceLink.Builder extends java.lang.Object
Builder class forResourceLink
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofResourceLink
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLink
build()
ResourceLink.Builder
setAction(java.lang.String action)
Optional action This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ResourceLink.Builder
setHref(java.lang.String href)
Link to 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.ResourceLink.Builder
setRel(java.lang.String rel)
Custom relation type (follows RFC 5988 where appropriate definitions exist) 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 ofResourceLink
.
-
-
Method Detail
-
setAction
public ResourceLink.Builder setAction(java.lang.String action)
Optional action 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:
action
- New value for the property.
-
setHref
public ResourceLink.Builder setHref(java.lang.String href)
Link to 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:
href
- New value for the property.
-
setRel
public ResourceLink.Builder setRel(java.lang.String rel)
Custom relation type (follows RFC 5988 where appropriate definitions exist) 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:
rel
- New value for the property.
-
build
public ResourceLink build()
-
-