Class ListEventsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.requests.ListEventsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListEventsRequest,Void>
- Enclosing class:
- ListEventsRequest
public static class ListEventsRequest.Builder extends Object implements BmcRequest.Builder<ListEventsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListEventsRequestbuild()Build the instance of ListEventsRequest as configured by this builderListEventsRequestbuildWithoutInvocationCallback()Build the instance of ListEventsRequest as configured by this builderListEventsRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the resources to list.ListEventsRequest.Buildercopy(ListEventsRequest o)Copy method to populate the builder with values from the given instance.ListEventsRequest.BuildereventFingerprint(String eventFingerprint)The eventFingerprint of the KernelEventData.ListEventsRequest.BuildereventSummary(String eventSummary)A filter to return only events whose summary matches the given value.ListEventsRequest.BuildereventSummaryContains(String eventSummaryContains)A filter to return only events with a summary that contains the value provided.ListEventsRequest.Builderid(String id)The OCID of the event.ListEventsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListEventsRequest.BuilderisManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)Indicates whether to list only resources managed by the Autonomous Linux service.ListEventsRequest.BuilderlifecycleState(Event.LifecycleState lifecycleState)A filter to return only events that match the state provided.ListEventsRequest.Builderlimit(Integer limit)For list pagination.ListEventsRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListEventsRequest.Builderpage(String page)For list pagination.ListEventsRequest.BuilderresourceId(String resourceId)The OCID of the resource.ListEventsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListEventsRequest.BuildersortBy(ListEventsRequest.SortBy sortBy)The field to sort by.ListEventsRequest.BuildersortOrder(SortOrder sortOrder)The sort order to use, either ‘ASC’ or ‘DESC’.ListEventsRequest.BuildertimeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)A filter that returns events that occurred on or after the date provided.ListEventsRequest.BuildertimeCreatedLessThan(Date timeCreatedLessThan)A filter that returns events that occurred on or before the date provided.ListEventsRequest.Buildertype(EventType singularValue)Singular setter.ListEventsRequest.Buildertype(List<EventType> type)A filter to return only resources whose type matches the given value.-
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
-
eventSummary
public ListEventsRequest.Builder eventSummary(String eventSummary)
A filter to return only events whose summary matches the given value.- Parameters:
eventSummary- the value to set- Returns:
- this builder instance
-
eventSummaryContains
public ListEventsRequest.Builder eventSummaryContains(String eventSummaryContains)
A filter to return only events with a summary that contains the value provided.- Parameters:
eventSummaryContains- the value to set- Returns:
- this builder instance
-
id
public ListEventsRequest.Builder id(String id)
The OCID of the event.- Parameters:
id- the value to set- Returns:
- this builder instance
-
eventFingerprint
public ListEventsRequest.Builder eventFingerprint(String eventFingerprint)
The eventFingerprint of the KernelEventData.- Parameters:
eventFingerprint- the value to set- Returns:
- this builder instance
-
compartmentId
public ListEventsRequest.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
-
lifecycleState
public ListEventsRequest.Builder lifecycleState(Event.LifecycleState lifecycleState)
A filter to return only events that match the state provided.The state value is case-insensitive.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
resourceId
public ListEventsRequest.Builder resourceId(String resourceId)
The OCID of the resource.This filter returns resources associated with the specified resource.
- Parameters:
resourceId- the value to set- Returns:
- this builder instance
-
type
public ListEventsRequest.Builder type(List<EventType> type)
A filter to return only resources whose type matches the given value.- Parameters:
type- the value to set- Returns:
- this builder instance
-
type
public ListEventsRequest.Builder type(EventType singularValue)
Singular setter.A filter to return only resources whose type matches the given value.
- Parameters:
singularValue- the singular value to set- Returns:
- this builder instance
-
limit
public ListEventsRequest.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 ListEventsRequest.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
-
timeCreatedLessThan
public ListEventsRequest.Builder timeCreatedLessThan(Date timeCreatedLessThan)
A filter that returns events that occurred on or before the date provided.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreatedLessThan- the value to set- Returns:
- this builder instance
-
timeCreatedGreaterThanOrEqualTo
public ListEventsRequest.Builder timeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)
A filter that returns events that occurred on or after the date provided.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreatedGreaterThanOrEqualTo- the value to set- Returns:
- this builder instance
-
sortOrder
public ListEventsRequest.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 ListEventsRequest.Builder sortBy(ListEventsRequest.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for timeCreated, timeOccurredAt and timeUpdated is descending. Default order for eventSummary is ascending.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListEventsRequest.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
-
isManagedByAutonomousLinux
public ListEventsRequest.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether to list only resources managed by the Autonomous Linux service.- Parameters:
isManagedByAutonomousLinux- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListEventsRequest.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 ListEventsRequest.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 ListEventsRequest.Builder copy(ListEventsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListEventsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListEventsRequest build()
Build the instance of ListEventsRequest 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<ListEventsRequest,Void>- Returns:
- instance of ListEventsRequest
-
buildWithoutInvocationCallback
public ListEventsRequest buildWithoutInvocationCallback()
Build the instance of ListEventsRequest 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 ListEventsRequest
-
-