Class ListMigrationPlansRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.requests.ListMigrationPlansRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListMigrationPlansRequest,Void>
- Enclosing class:
- ListMigrationPlansRequest
public static class ListMigrationPlansRequest.Builder extends Object implements BmcRequest.Builder<ListMigrationPlansRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListMigrationPlansRequest
build()
Build the instance of ListMigrationPlansRequest as configured by this builderListMigrationPlansRequest
buildWithoutInvocationCallback()
Build the instance of ListMigrationPlansRequest as configured by this builderListMigrationPlansRequest.Builder
compartmentId(String compartmentId)
The ID of the compartment in which to list resources.ListMigrationPlansRequest.Builder
copy(ListMigrationPlansRequest o)
Copy method to populate the builder with values from the given instance.ListMigrationPlansRequest.Builder
displayName(String displayName)
A filter to return only resources that match the entire given display name.ListMigrationPlansRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListMigrationPlansRequest.Builder
lifecycleState(MigrationPlan.LifecycleState lifecycleState)
The current state of the migration plan.ListMigrationPlansRequest.Builder
limit(Integer limit)
The maximum number of items to return.ListMigrationPlansRequest.Builder
migrationId(String migrationId)
Unique migration identifierListMigrationPlansRequest.Builder
migrationPlanId(String migrationPlanId)
Unique migration plan identifierListMigrationPlansRequest.Builder
opcRequestId(String opcRequestId)
The client request ID for tracing.ListMigrationPlansRequest.Builder
page(String page)
A token representing the position at which to start retrieving results.ListMigrationPlansRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListMigrationPlansRequest.Builder
sortBy(ListMigrationPlansRequest.SortBy sortBy)
The field to sort by.ListMigrationPlansRequest.Builder
sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.-
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 ListMigrationPlansRequest.Builder compartmentId(String compartmentId)
The ID of the compartment in which to list resources.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
migrationId
public ListMigrationPlansRequest.Builder migrationId(String migrationId)
Unique migration identifier- Parameters:
migrationId
- the value to set- Returns:
- this builder instance
-
displayName
public ListMigrationPlansRequest.Builder displayName(String displayName)
A filter to return only resources that match the entire given display name.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
migrationPlanId
public ListMigrationPlansRequest.Builder migrationPlanId(String migrationPlanId)
Unique migration plan identifier- Parameters:
migrationPlanId
- the value to set- Returns:
- this builder instance
-
limit
public ListMigrationPlansRequest.Builder limit(Integer limit)
The maximum number of items to return.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListMigrationPlansRequest.Builder page(String page)
A token representing the position at which to start retrieving results.This must come from the opc-next-page header field of the previous response.
- Parameters:
page
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListMigrationPlansRequest.Builder lifecycleState(MigrationPlan.LifecycleState lifecycleState)
The current state of the migration plan.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListMigrationPlansRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
sortBy
public ListMigrationPlansRequest.Builder sortBy(ListMigrationPlansRequest.SortBy sortBy)
The field to sort by.Only one sort order can be provided. The default order for ‘timeCreated’ is descending. The default order for ‘displayName’ is ascending.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListMigrationPlansRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListMigrationPlansRequest.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 ListMigrationPlansRequest.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 ListMigrationPlansRequest.Builder copy(ListMigrationPlansRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListMigrationPlansRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListMigrationPlansRequest build()
Build the instance of ListMigrationPlansRequest 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<ListMigrationPlansRequest,Void>
- Returns:
- instance of ListMigrationPlansRequest
-
buildWithoutInvocationCallback
public ListMigrationPlansRequest buildWithoutInvocationCallback()
Build the instance of ListMigrationPlansRequest 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 ListMigrationPlansRequest
-
-