public static class UploadLogFileRequest.Builder extends Object implements com.oracle.bmc.requests.BmcRequest.Builder<UploadLogFileRequest,InputStream>
| 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() |
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 |
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.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
|
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(com.oracle.bmc.retrier.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.
|
String |
toString() |
UploadLogFileRequest.Builder |
uploadLogFileBody(InputStream uploadLogFileBody)
Log data
|
UploadLogFileRequest.Builder |
uploadName(String uploadName)
The name of the upload.
|
public UploadLogFileRequest.Builder invocationCallback(com.oracle.bmc.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback - the invocation callback to be set for the requestpublic UploadLogFileRequest.Builder retryConfiguration(com.oracle.bmc.retrier.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 com.oracle.bmc.requests.BmcRequest.Builder<UploadLogFileRequest,InputStream>public UploadLogFileRequest build()
Build the instance of UploadLogFileRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.util.internal.Consumer) into account,
while the method buildWithoutInvocationCallback() does not.
This is the preferred method to build an instance.
build in interface com.oracle.bmc.requests.BmcRequest.Builder<UploadLogFileRequest,InputStream>public UploadLogFileRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.
body$ in interface com.oracle.bmc.requests.BmcRequest.Builder<UploadLogFileRequest,InputStream>body - the body parameterpublic UploadLogFileRequest.Builder namespaceName(String namespaceName)
The Logging Analytics namespace used for the request.
this.public 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.
this.public UploadLogFileRequest.Builder logSourceName(String logSourceName)
Name of the log source that will be used to process the files being uploaded.
this.public 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).
this.public UploadLogFileRequest.Builder opcMetaLoggrpid(String opcMetaLoggrpid)
The log group OCID to which the log data in this upload will be mapped to.
this.public UploadLogFileRequest.Builder uploadLogFileBody(InputStream uploadLogFileBody)
Log data
this.public UploadLogFileRequest.Builder entityId(String entityId)
The entity OCID.
this.public 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
this.public 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.
this.public 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.
this.public 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).
this.public UploadLogFileRequest.Builder invalidateCache(Boolean invalidateCache)
This property can be used to reset configuration cache in case of an issue with the upload.
this.public UploadLogFileRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.
this.public 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)\"
this.public UploadLogFileRequest.Builder contentType(String contentType)
The content type of the log data.
this.public 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.
this.public UploadLogFileRequest buildWithoutInvocationCallback()
Copyright © 2016–2021. All rights reserved.