Package com.vmware.nsx_policy.model
Class DiscoveredResource.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.DiscoveredResource.Builder
-
- Enclosing class:
- DiscoveredResource
public static final class DiscoveredResource.Builder extends java.lang.Object
Builder class forDiscoveredResource
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofDiscoveredResource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoveredResource
build()
DiscoveredResource.Builder
setDescription(java.lang.String description)
Description of this resourceDiscoveredResource.Builder
setDisplayName(java.lang.String displayName)
Defaults to ID if not setDiscoveredResource.Builder
setLastSyncTime(java.lang.Long lastSyncTime)
Timestamp of last modification format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.DiscoveredResource.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.DiscoveredResource.Builder
setResourceType(java.lang.String resourceType)
The type of this resource.DiscoveredResource.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.DiscoveredResource.Builder
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.DiscoveredResource.Builder
setSelf(SelfResourceLink self)
DiscoveredResource.Builder
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofDiscoveredResource
.
-
-
Method Detail
-
setLinks
public DiscoveredResource.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 DiscoveredResource.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 DiscoveredResource.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setLastSyncTime
public DiscoveredResource.Builder setLastSyncTime(java.lang.Long lastSyncTime)
Timestamp of last modification format: int64 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:
lastSyncTime
- New value for the property.
-
setDescription
public DiscoveredResource.Builder setDescription(java.lang.String description)
Description of this resource- Parameters:
description
- New value for the property.
-
setDisplayName
public DiscoveredResource.Builder setDisplayName(java.lang.String displayName)
Defaults to ID if not set- Parameters:
displayName
- New value for the property.
-
setResourceType
public DiscoveredResource.Builder setResourceType(java.lang.String resourceType)
The type of this resource.- Parameters:
resourceType
- New value for the property.
-
setScope
public DiscoveredResource.Builder setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource. e.g. if VHC path is associated with principal identity, who owns the discovered resource, then scope id will be VHC path and scope type will be VHC.- Parameters:
scope
- New value for the property.
-
setTags
public DiscoveredResource.Builder setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user- Parameters:
tags
- New value for the property.
-
build
public DiscoveredResource build()
-
-