Package com.vmware.nsx_policy.model
Class RevisionedResource.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RevisionedResource.Builder
-
- Enclosing class:
- RevisionedResource
public static final class RevisionedResource.Builder extends java.lang.Object
Builder class forRevisionedResource
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofRevisionedResource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevisionedResource
build()
RevisionedResource.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.RevisionedResource.Builder
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.RevisionedResource.Builder
setSchema(java.lang.String schema)
Schema for this 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.RevisionedResource.Builder
setSelf(SelfResourceLink self)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRevisionedResource
.
-
-
Method Detail
-
setLinks
public RevisionedResource.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. 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:
links
- New value for the property.
-
setSchema
public RevisionedResource.Builder setSchema(java.lang.String schema)
Schema for this 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:
schema
- New value for the property.
-
setSelf
public RevisionedResource.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setRevision
public RevisionedResource.Builder setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32- Parameters:
revision
- New value for the property.
-
build
public RevisionedResource build()
-
-