Class ListEventsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.audit.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.ListEventsRequest.Buildercopy(ListEventsRequest o)Copy method to populate the builder with values from the given instance.ListEventsRequest.BuilderendTime(Date endTime)Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.ListEventsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListEventsRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListEventsRequest.Builderpage(String page)For list pagination.ListEventsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListEventsRequest.BuilderstartTime(Date startTime)Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.-
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 ListEventsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
startTime
public ListEventsRequest.Builder startTime(Date startTime)
Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.
- Parameters:
startTime- the value to set- Returns:
- this builder instance
-
endTime
public ListEventsRequest.Builder endTime(Date endTime)
Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.
- Parameters:
endTime- 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.
- Parameters:
page- 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
-
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
-
-