public static class UploadLogFileRequest.Builder extends Object implements BmcRequest.Builder<UploadLogFileRequest,InputStream>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UploadLogFileRequest.Builder |
body$(InputStream body)
Alternative setter for the body parameter.
|
UploadLogFileRequest |
build()
Build the instance of UploadLogFileRequest as configured by this builder
|
UploadLogFileRequest |
buildWithoutInvocationCallback()
Build the instance of UploadLogFileRequest as configured by this builder
|
UploadLogFileRequest.Builder |
charEncoding(String charEncoding)
Character encoding to be used to detect the encoding type of file(s) being uploaded.
|
UploadLogFileRequest.Builder |
contentMd5(String contentMd5)
The base-64 encoded MD5 hash of the body.
|
UploadLogFileRequest.Builder |
contentType(String contentType)
The content type of the log data.
|
UploadLogFileRequest.Builder |
copy(UploadLogFileRequest o)
Copy method to populate the builder with values from the given instance.
|
UploadLogFileRequest.Builder |
dateFormat(String dateFormat)
This property is used to specify the format of the date.
|
UploadLogFileRequest.Builder |
dateYear(String dateYear)
Used to indicate the year where the log entries timestamp do not mention year (Ex: Nov 8
20:45:56).
|
UploadLogFileRequest.Builder |
entityId(String entityId)
The entity OCID.
|
UploadLogFileRequest.Builder |
expect(String expect)
A value of
100-continue requests preliminary verification of the request method,
path, and headers before the request body is sent. |
UploadLogFileRequest.Builder |
filename(String filename)
The name of the file being uploaded.
|
UploadLogFileRequest.Builder |
invalidateCache(Boolean invalidateCache)
This property can be used to reset configuration cache in case of an issue with the
upload.
|
UploadLogFileRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
UploadLogFileRequest.Builder |
logSet(String logSet)
The log set that gets associated with the uploaded logs.
|
UploadLogFileRequest.Builder |
logSourceName(String logSourceName)
Name of the log source that will be used to process the files being uploaded.
|
UploadLogFileRequest.Builder |
namespaceName(String namespaceName)
The Logging Analytics namespace used for the request.
|
UploadLogFileRequest.Builder |
opcMetaLoggrpid(String opcMetaLoggrpid)
The log group OCID to which the log data in this upload will be mapped to.
|
UploadLogFileRequest.Builder |
opcRequestId(String opcRequestId)
The client request ID for tracing.
|
UploadLogFileRequest.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.
|
UploadLogFileRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
UploadLogFileRequest.Builder |
timezone(String timezone)
Timezone to be used when processing log entries whose timestamps do not include an
explicit timezone.
|
UploadLogFileRequest.Builder |
uploadLogFileBody(InputStream uploadLogFileBody)
Log data
|
UploadLogFileRequest.Builder |
uploadName(String uploadName)
The name of the upload.
|
public UploadLogFileRequest.Builder namespaceName(String namespaceName)
The Logging Analytics namespace used for the request.
namespaceName
- the value to setpublic UploadLogFileRequest.Builder uploadName(String uploadName)
The name of the upload. This can be considered as a container name where different kind of logs will be collected and searched together. This upload name/id can further be used for retrieving the details of the upload, including its status or deleting the upload.
uploadName
- the value to setpublic UploadLogFileRequest.Builder logSourceName(String logSourceName)
Name of the log source that will be used to process the files being uploaded.
logSourceName
- the value to setpublic UploadLogFileRequest.Builder filename(String filename)
The name of the file being uploaded. The extension of the filename part will be used to detect the type of file (like zip, tar).
filename
- the value to setpublic UploadLogFileRequest.Builder opcMetaLoggrpid(String opcMetaLoggrpid)
The log group OCID to which the log data in this upload will be mapped to.
opcMetaLoggrpid
- the value to setpublic UploadLogFileRequest.Builder uploadLogFileBody(InputStream uploadLogFileBody)
Log data
uploadLogFileBody
- the value to setpublic UploadLogFileRequest.Builder entityId(String entityId)
The entity OCID.
entityId
- the value to setpublic UploadLogFileRequest.Builder timezone(String timezone)
Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used
timezone
- the value to setpublic UploadLogFileRequest.Builder charEncoding(String charEncoding)
Character encoding to be used to detect the encoding type of file(s) being uploaded. When this property is not specified, system detected character encoding will be used.
charEncoding
- the value to setpublic UploadLogFileRequest.Builder dateFormat(String dateFormat)
This property is used to specify the format of the date. This is to be used for ambiguous dates like 12/11/10. This property can take any of the following values - MONTH_DAY_YEAR, DAY_MONTH_YEAR, YEAR_MONTH_DAY, MONTH_DAY, DAY_MONTH.
dateFormat
- the value to setpublic UploadLogFileRequest.Builder dateYear(String dateYear)
Used to indicate the year where the log entries timestamp do not mention year (Ex: Nov 8 20:45:56).
dateYear
- the value to setpublic UploadLogFileRequest.Builder invalidateCache(Boolean invalidateCache)
This property can be used to reset configuration cache in case of an issue with the upload.
invalidateCache
- the value to setpublic UploadLogFileRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.
opcRequestId
- the value to setpublic UploadLogFileRequest.Builder contentMd5(String contentMd5)
The base-64 encoded MD5 hash of the body. If the Content-MD5 header is present, Logging Analytics performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the log data is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:
"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"
contentMd5
- the value to setpublic UploadLogFileRequest.Builder contentType(String contentType)
The content type of the log data.
contentType
- the value to setpublic UploadLogFileRequest.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.
opcRetryToken
- the value to setpublic UploadLogFileRequest.Builder logSet(String logSet)
The log set that gets associated with the uploaded logs.
logSet
- the value to setpublic UploadLogFileRequest.Builder expect(String expect)
A value of 100-continue
requests preliminary verification of the request method,
path, and headers before the request body is sent. If no error results from such
verification, the server will send a 100 (Continue) interim response to indicate
readiness for the request body. The only allowed value for this parameter is
“100-Continue” (case-insensitive).
expect
- the value to setpublic UploadLogFileRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic UploadLogFileRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic UploadLogFileRequest.Builder copy(UploadLogFileRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<UploadLogFileRequest,InputStream>
o
- other request from which to copy valuespublic UploadLogFileRequest build()
Build the instance of UploadLogFileRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<UploadLogFileRequest,InputStream>
public UploadLogFileRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.
body$
in interface BmcRequest.Builder<UploadLogFileRequest,InputStream>
body
- the body parameterpublic UploadLogFileRequest buildWithoutInvocationCallback()
Build the instance of UploadLogFileRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.