Class RuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.loganalytics.model.RuleSummary.Builder
-
- Enclosing class:
- RuleSummary
public static class RuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleSummary
build()
RuleSummary.Builder
compartmentId(String compartmentId)
Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).RuleSummary.Builder
copy(RuleSummary model)
RuleSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.RuleSummary.Builder
description(String description)
Description for this resource.RuleSummary.Builder
displayName(String displayName)
The ingest time rule or scheduled task display name.RuleSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.RuleSummary.Builder
id(String id)
The log analytics entity OCID.RuleSummary.Builder
isEnabled(Boolean isEnabled)
A flag indicating whether or not the ingest time rule or scheduled task is enabled.RuleSummary.Builder
kind(RuleKind kind)
The kind of rule - either an ingest time rule or a scheduled task.RuleSummary.Builder
lastExecutionStatus(RuleSummary.LastExecutionStatus lastExecutionStatus)
The most recent task execution status.RuleSummary.Builder
lifecycleState(ConfigLifecycleState lifecycleState)
The current state of the logging analytics rule.RuleSummary.Builder
targetService(String targetService)
The target service.RuleSummary.Builder
timeCreated(Date timeCreated)
The date and time the resource was created, in the format defined by RFC3339.RuleSummary.Builder
timeLastExecuted(Date timeLastExecuted)
The date and time the scheduled task last executed, in the format defined by RFC3339.RuleSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the resource was last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public RuleSummary.Builder id(String id)
The log analytics entity OCID.This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- Parameters:
id
- the value to set- Returns:
- this builder
-
description
public RuleSummary.Builder description(String description)
Description for this resource.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public RuleSummary.Builder compartmentId(String compartmentId)
Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public RuleSummary.Builder timeCreated(Date timeCreated)
The date and time the resource was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public RuleSummary.Builder timeUpdated(Date timeUpdated)
The date and time the resource was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public RuleSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public RuleSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
lifecycleState
public RuleSummary.Builder lifecycleState(ConfigLifecycleState lifecycleState)
The current state of the logging analytics rule.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
kind
public RuleSummary.Builder kind(RuleKind kind)
The kind of rule - either an ingest time rule or a scheduled task.- Parameters:
kind
- the value to set- Returns:
- this builder
-
targetService
public RuleSummary.Builder targetService(String targetService)
The target service.- Parameters:
targetService
- the value to set- Returns:
- this builder
-
displayName
public RuleSummary.Builder displayName(String displayName)
The ingest time rule or scheduled task display name.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
isEnabled
public RuleSummary.Builder isEnabled(Boolean isEnabled)
A flag indicating whether or not the ingest time rule or scheduled task is enabled.- Parameters:
isEnabled
- the value to set- Returns:
- this builder
-
lastExecutionStatus
public RuleSummary.Builder lastExecutionStatus(RuleSummary.LastExecutionStatus lastExecutionStatus)
The most recent task execution status.- Parameters:
lastExecutionStatus
- the value to set- Returns:
- this builder
-
timeLastExecuted
public RuleSummary.Builder timeLastExecuted(Date timeLastExecuted)
The date and time the scheduled task last executed, in the format defined by RFC3339.- Parameters:
timeLastExecuted
- the value to set- Returns:
- this builder
-
build
public RuleSummary build()
-
copy
public RuleSummary.Builder copy(RuleSummary model)
-
-