Class PreviewManagedInstancesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.requests.PreviewManagedInstancesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<PreviewManagedInstancesRequest,PreviewManagedInstancesDetails>
- Enclosing class:
- PreviewManagedInstancesRequest
public static class PreviewManagedInstancesRequest.Builder extends Object implements BmcRequest.Builder<PreviewManagedInstancesRequest,PreviewManagedInstancesDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreviewManagedInstancesRequest.Builderbody$(PreviewManagedInstancesDetails body)Alternative setter for the body parameter.PreviewManagedInstancesRequestbuild()Build the instance of PreviewManagedInstancesRequest as configured by this builderPreviewManagedInstancesRequestbuildWithoutInvocationCallback()Build the instance of PreviewManagedInstancesRequest as configured by this builderPreviewManagedInstancesRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the resources to list.PreviewManagedInstancesRequest.BuildercompartmentIdInSubtree(Boolean compartmentIdInSubtree)Indicates whether to include subcompartments in the returned results.PreviewManagedInstancesRequest.Buildercopy(PreviewManagedInstancesRequest o)Copy method to populate the builder with values from the given instance.PreviewManagedInstancesRequest.BuilderdisplayName(String displayName)A filter to return resources that match the given user-friendly name.PreviewManagedInstancesRequest.BuilderdisplayNameContains(String displayNameContains)A filter to return resources that may partially match the given display name.PreviewManagedInstancesRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.PreviewManagedInstancesRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.PreviewManagedInstancesRequest.Builderlimit(Integer limit)For list pagination.PreviewManagedInstancesRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.PreviewManagedInstancesRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.PreviewManagedInstancesRequest.Builderpage(String page)For list pagination.PreviewManagedInstancesRequest.BuilderpreviewManagedInstancesDetails(PreviewManagedInstancesDetails previewManagedInstancesDetails)Provides the information used to Preview the dynamic set.PreviewManagedInstancesRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.PreviewManagedInstancesRequest.BuildersortBy(PreviewManagedInstancesRequest.SortBy sortBy)The field to sort by.PreviewManagedInstancesRequest.BuildersortOrder(SortOrder sortOrder)The sort order to use, either ‘ASC’ or ‘DESC’.
-
-
-
Method Detail
-
previewManagedInstancesDetails
public PreviewManagedInstancesRequest.Builder previewManagedInstancesDetails(PreviewManagedInstancesDetails previewManagedInstancesDetails)
Provides the information used to Preview the dynamic set.- Parameters:
previewManagedInstancesDetails- the value to set- Returns:
- this builder instance
-
compartmentId
public PreviewManagedInstancesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the resources to list.This filter returns only resources contained within the specified compartment.
- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
compartmentIdInSubtree
public PreviewManagedInstancesRequest.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Indicates whether to include subcompartments in the returned results.Default is false.
- Parameters:
compartmentIdInSubtree- the value to set- Returns:
- this builder instance
-
opcRetryToken
public PreviewManagedInstancesRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
ifMatch
public PreviewManagedInstancesRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
opcRequestId
public PreviewManagedInstancesRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
limit
public PreviewManagedInstancesRequest.Builder limit(Integer limit)
For list pagination.The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.
Example: 50
- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public PreviewManagedInstancesRequest.Builder page(String page)
For list pagination.The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.
Example: 3
- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortOrder
public PreviewManagedInstancesRequest.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 PreviewManagedInstancesRequest.Builder sortBy(PreviewManagedInstancesRequest.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
displayName
public PreviewManagedInstancesRequest.Builder displayName(String displayName)
A filter to return resources that match the given user-friendly name.- Parameters:
displayName- the value to set- Returns:
- this builder instance
-
displayNameContains
public PreviewManagedInstancesRequest.Builder displayNameContains(String displayNameContains)
A filter to return resources that may partially match the given display name.- Parameters:
displayNameContains- the value to set- Returns:
- this builder instance
-
invocationCallback
public PreviewManagedInstancesRequest.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 PreviewManagedInstancesRequest.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 PreviewManagedInstancesRequest.Builder copy(PreviewManagedInstancesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<PreviewManagedInstancesRequest,PreviewManagedInstancesDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public PreviewManagedInstancesRequest build()
Build the instance of PreviewManagedInstancesRequest 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:
buildin interfaceBmcRequest.Builder<PreviewManagedInstancesRequest,PreviewManagedInstancesDetails>- Returns:
- instance of PreviewManagedInstancesRequest
-
body$
public PreviewManagedInstancesRequest.Builder body$(PreviewManagedInstancesDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<PreviewManagedInstancesRequest,PreviewManagedInstancesDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public PreviewManagedInstancesRequest buildWithoutInvocationCallback()
Build the instance of PreviewManagedInstancesRequest 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 PreviewManagedInstancesRequest
-
-