Package com.vmware.nsx_policy.model
Class SearchResponse.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SearchResponse.Builder
-
- Enclosing class:
- SearchResponse
public static final class SearchResponse.Builder extends java.lang.Object
Builder class forSearchResponse
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSearchResponse
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponse
build()
SearchResponse.Builder
setCursor(java.lang.String cursor)
Opaque cursor to be used for getting next page of records (supplied by current result page) This property may be present in responses from the server, but if it is present in a request to server it will be ignored.SearchResponse.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.SearchResponse.Builder
setResultCount(java.lang.Long resultCount)
Count of results found (across all pages), set only on first page 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.SearchResponse.Builder
setResults(java.util.List<com.vmware.vapi.bindings.Structure> results)
List of records matching the search query.SearchResponse.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.SearchResponse.Builder
setSelf(SelfResourceLink self)
SearchResponse.Builder
setSortAscending(java.lang.Boolean sortAscending)
If true, results are sorted in ascending order This property may be present in responses from the server, but if it is present in a request to server it will be ignored.SearchResponse.Builder
setSortBy(java.lang.String sortBy)
Field by which records are sorted 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 ofSearchResponse
.
-
-
Method Detail
-
setLinks
public SearchResponse.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 SearchResponse.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 SearchResponse.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setCursor
public SearchResponse.Builder setCursor(java.lang.String cursor)
Opaque cursor to be used for getting next page of records (supplied by current result page) 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:
cursor
- New value for the property.
-
setResultCount
public SearchResponse.Builder setResultCount(java.lang.Long resultCount)
Count of results found (across all pages), set only on first page 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:
resultCount
- New value for the property.
-
setSortAscending
public SearchResponse.Builder setSortAscending(java.lang.Boolean sortAscending)
If true, results are sorted in ascending order 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:
sortAscending
- New value for the property.
-
setSortBy
public SearchResponse.Builder setSortBy(java.lang.String sortBy)
Field by which records are sorted 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:
sortBy
- New value for the property.
-
setResults
public SearchResponse.Builder setResults(java.util.List<com.vmware.vapi.bindings.Structure> results)
List of records matching the search query. 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:
results
- New value for the property.
-
build
public SearchResponse build()
-
-