Class PutLogsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.loggingingestion.requests.PutLogsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<PutLogsRequest,PutLogsDetails>
- Enclosing class:
- PutLogsRequest
public static class PutLogsRequest.Builder extends Object implements BmcRequest.Builder<PutLogsRequest,PutLogsDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutLogsRequest.Builderbody$(PutLogsDetails body)Alternative setter for the body parameter.PutLogsRequestbuild()Build the instance of PutLogsRequest as configured by this builderPutLogsRequestbuildWithoutInvocationCallback()Build the instance of PutLogsRequest as configured by this builderPutLogsRequest.Buildercopy(PutLogsRequest o)Copy method to populate the builder with values from the given instance.PutLogsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.PutLogsRequest.BuilderlogId(String logId)OCID of a log to work with.PutLogsRequest.BuilderopcAgentVersion(String opcAgentVersion)Version of the agent sending the request.PutLogsRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.PutLogsRequest.BuilderputLogsDetails(PutLogsDetails putLogsDetails)The logs to emit.PutLogsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.PutLogsRequest.BuildertimestampOpcAgentProcessing(Date timestampOpcAgentProcessing)Effective timestamp, for when the agent started processing the log segment being sent.
-
-
-
Method Detail
-
logId
public PutLogsRequest.Builder logId(String logId)
OCID of a log to work with.- Parameters:
logId- the value to set- Returns:
- this builder instance
-
putLogsDetails
public PutLogsRequest.Builder putLogsDetails(PutLogsDetails putLogsDetails)
The logs to emit.- Parameters:
putLogsDetails- the value to set- Returns:
- this builder instance
-
timestampOpcAgentProcessing
public PutLogsRequest.Builder timestampOpcAgentProcessing(Date timestampOpcAgentProcessing)
Effective timestamp, for when the agent started processing the log segment being sent.An RFC3339-formatted date-time string with milliseconds precision.
- Parameters:
timestampOpcAgentProcessing- the value to set- Returns:
- this builder instance
-
opcAgentVersion
public PutLogsRequest.Builder opcAgentVersion(String opcAgentVersion)
Version of the agent sending the request.- Parameters:
opcAgentVersion- the value to set- Returns:
- this builder instance
-
opcRequestId
public PutLogsRequest.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 PutLogsRequest.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 PutLogsRequest.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 PutLogsRequest.Builder copy(PutLogsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<PutLogsRequest,PutLogsDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public PutLogsRequest build()
Build the instance of PutLogsRequest 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<PutLogsRequest,PutLogsDetails>- Returns:
- instance of PutLogsRequest
-
body$
public PutLogsRequest.Builder body$(PutLogsDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<PutLogsRequest,PutLogsDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public PutLogsRequest buildWithoutInvocationCallback()
Build the instance of PutLogsRequest 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 PutLogsRequest
-
-