Package com.oracle.bmc.desktops.requests
Class ListDesktopsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.desktops.requests.ListDesktopsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListDesktopsRequest,Void>
- Enclosing class:
- ListDesktopsRequest
public static class ListDesktopsRequest.Builder extends Object implements BmcRequest.Builder<ListDesktopsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDesktopsRequest.Builder
availabilityDomain(String availabilityDomain)
The name of the availability domain.ListDesktopsRequest
build()
Build the instance of ListDesktopsRequest as configured by this builderListDesktopsRequest
buildWithoutInvocationCallback()
Build the instance of ListDesktopsRequest as configured by this builderListDesktopsRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment of the desktop pool.ListDesktopsRequest.Builder
copy(ListDesktopsRequest o)
Copy method to populate the builder with values from the given instance.ListDesktopsRequest.Builder
desktopPoolId(String desktopPoolId)
The OCID of the desktop pool.ListDesktopsRequest.Builder
displayName(String displayName)
A filter to return only results with the given displayName.ListDesktopsRequest.Builder
id(String id)
A filter to return only results with the given OCID.ListDesktopsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListDesktopsRequest.Builder
lifecycleState(String lifecycleState)
A filter to return only results with the given lifecycleState.ListDesktopsRequest.Builder
limit(Integer limit)
The maximum number of results to return.ListDesktopsRequest.Builder
opcRequestId(String opcRequestId)
The unique identifier of the request.ListDesktopsRequest.Builder
page(String page)
For list pagination.ListDesktopsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListDesktopsRequest.Builder
sortBy(ListDesktopsRequest.SortBy sortBy)
A field to sort by.ListDesktopsRequest.Builder
sortOrder(ListDesktopsRequest.SortOrder sortOrder)
A field to indicate the sort order.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
compartmentId
public ListDesktopsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment of the desktop pool.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
availabilityDomain
public ListDesktopsRequest.Builder availabilityDomain(String availabilityDomain)
The name of the availability domain.- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder instance
-
displayName
public ListDesktopsRequest.Builder displayName(String displayName)
A filter to return only results with the given displayName.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
id
public ListDesktopsRequest.Builder id(String id)
A filter to return only results with the given OCID.- Parameters:
id
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListDesktopsRequest.Builder lifecycleState(String lifecycleState)
A filter to return only results with the given lifecycleState.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
limit
public ListDesktopsRequest.Builder limit(Integer limit)
The maximum number of results to return.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
sortBy
public ListDesktopsRequest.Builder sortBy(ListDesktopsRequest.SortBy sortBy)
A field to sort by.- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListDesktopsRequest.Builder sortOrder(ListDesktopsRequest.SortOrder sortOrder)
A field to indicate the sort order.- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListDesktopsRequest.Builder opcRequestId(String opcRequestId)
The unique identifier of the request.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
page
public ListDesktopsRequest.Builder page(String page)
For list pagination.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
desktopPoolId
public ListDesktopsRequest.Builder desktopPoolId(String desktopPoolId)
The OCID of the desktop pool.- Parameters:
desktopPoolId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListDesktopsRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public ListDesktopsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public ListDesktopsRequest.Builder copy(ListDesktopsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListDesktopsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListDesktopsRequest build()
Build the instance of ListDesktopsRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<ListDesktopsRequest,Void>
- Returns:
- instance of ListDesktopsRequest
-
buildWithoutInvocationCallback
public ListDesktopsRequest buildWithoutInvocationCallback()
Build the instance of ListDesktopsRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of ListDesktopsRequest
-
-