Class ListWarningsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.loganalytics.requests.ListWarningsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListWarningsRequest,Void>
- Enclosing class:
- ListWarningsRequest
public static class ListWarningsRequest.Builder extends Object implements BmcRequest.Builder<ListWarningsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListWarningsRequestbuild()Build the instance of ListWarningsRequest as configured by this builderListWarningsRequestbuildWithoutInvocationCallback()Build the instance of ListWarningsRequest as configured by this builderListWarningsRequest.BuildercompartmentId(String compartmentId)The ID of the compartment in which to list resources.ListWarningsRequest.Buildercopy(ListWarningsRequest o)Copy method to populate the builder with values from the given instance.ListWarningsRequest.BuilderendTime(String endTime)The warning end date query parameter.ListWarningsRequest.BuilderentityName(String entityName)The entity name used for filtering.ListWarningsRequest.BuilderentityType(String entityType)The entity type used for filtering.ListWarningsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListWarningsRequest.BuilderisNoSource(Boolean isNoSource)A flag indicating whether to filter warnings based on source display name or on warning level.ListWarningsRequest.Builderlimit(Integer limit)The maximum number of items to return.ListWarningsRequest.BuildernamespaceName(String namespaceName)The Logging Analytics namespace used for the request.ListWarningsRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.ListWarningsRequest.Builderpage(String page)The page token representing the page at which to start retrieving results.ListWarningsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListWarningsRequest.BuildersortBy(ListWarningsRequest.SortBy sortBy)The attribute used to sort the returned warningsListWarningsRequest.BuildersortOrder(ListWarningsRequest.SortOrder sortOrder)The sort order to use, either ascending (ASC) or descending (DESC).ListWarningsRequest.BuildersourceName(String sourceName)The source name.ListWarningsRequest.BuildersourcePattern(String sourcePattern)The source pattern used for filtering.ListWarningsRequest.BuilderstartTime(String startTime)The warning start date query parameter.ListWarningsRequest.BuilderwarningMessage(String warningMessage)warning message query parameterListWarningsRequest.BuilderwarningState(ListWarningsRequest.WarningState warningState)The warning state used for filtering.ListWarningsRequest.BuilderwarningType(String warningType)The warning type query parameter.-
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
-
namespaceName
public ListWarningsRequest.Builder namespaceName(String namespaceName)
The Logging Analytics namespace used for the request.- Parameters:
namespaceName- the value to set- Returns:
- this builder instance
-
compartmentId
public ListWarningsRequest.Builder compartmentId(String compartmentId)
The ID of the compartment in which to list resources.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
warningState
public ListWarningsRequest.Builder warningState(ListWarningsRequest.WarningState warningState)
The warning state used for filtering.A value of SUPPRESSED will return only suppressed warnings, a value of UNSUPPRESSED will return only unsuppressed warnings, and a value of ALL will return all warnings regardless of their suppression state. Default is UNSUPPRESSED.
- Parameters:
warningState- the value to set- Returns:
- this builder instance
-
sourceName
public ListWarningsRequest.Builder sourceName(String sourceName)
The source name.- Parameters:
sourceName- the value to set- Returns:
- this builder instance
-
sourcePattern
public ListWarningsRequest.Builder sourcePattern(String sourcePattern)
The source pattern used for filtering.Only warnings associated with a source with the specified pattern will be returned.
- Parameters:
sourcePattern- the value to set- Returns:
- this builder instance
-
warningMessage
public ListWarningsRequest.Builder warningMessage(String warningMessage)
warning message query parameter- Parameters:
warningMessage- the value to set- Returns:
- this builder instance
-
entityName
public ListWarningsRequest.Builder entityName(String entityName)
The entity name used for filtering.Only warnings associated with an entity with the specified name will be returned.
- Parameters:
entityName- the value to set- Returns:
- this builder instance
-
entityType
public ListWarningsRequest.Builder entityType(String entityType)
The entity type used for filtering.Only associations on an entity with the specified type will be returned.
- Parameters:
entityType- the value to set- Returns:
- this builder instance
-
warningType
public ListWarningsRequest.Builder warningType(String warningType)
The warning type query parameter.- Parameters:
warningType- the value to set- Returns:
- this builder instance
-
isNoSource
public ListWarningsRequest.Builder isNoSource(Boolean isNoSource)
A flag indicating whether to filter warnings based on source display name or on warning level.A value of true will filter based on warning level (rule, source, or pattern), while a value of false will filter based on source display name.
- Parameters:
isNoSource- the value to set- Returns:
- this builder instance
-
startTime
public ListWarningsRequest.Builder startTime(String startTime)
The warning start date query parameter.- Parameters:
startTime- the value to set- Returns:
- this builder instance
-
endTime
public ListWarningsRequest.Builder endTime(String endTime)
The warning end date query parameter.- Parameters:
endTime- the value to set- Returns:
- this builder instance
-
limit
public ListWarningsRequest.Builder limit(Integer limit)
The maximum number of items to return.- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListWarningsRequest.Builder page(String page)
The page token representing the page at which to start retrieving results.This is usually retrieved from a previous list call.
- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortOrder
public ListWarningsRequest.Builder sortOrder(ListWarningsRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListWarningsRequest.Builder sortBy(ListWarningsRequest.SortBy sortBy)
The attribute used to sort the returned warnings- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListWarningsRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListWarningsRequest.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 ListWarningsRequest.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 ListWarningsRequest.Builder copy(ListWarningsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListWarningsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListWarningsRequest build()
Build the instance of ListWarningsRequest 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<ListWarningsRequest,Void>- Returns:
- instance of ListWarningsRequest
-
buildWithoutInvocationCallback
public ListWarningsRequest buildWithoutInvocationCallback()
Build the instance of ListWarningsRequest 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 ListWarningsRequest
-
-