Class CreateLogAnalyticsObjectCollectionRuleDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.loganalytics.model.CreateLogAnalyticsObjectCollectionRuleDetails.Builder
 
- 
- Enclosing class:
- CreateLogAnalyticsObjectCollectionRuleDetails
 
 public static class CreateLogAnalyticsObjectCollectionRuleDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLogAnalyticsObjectCollectionRuleDetailsbuild()CreateLogAnalyticsObjectCollectionRuleDetails.BuildercharEncoding(String charEncoding)An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing.CreateLogAnalyticsObjectCollectionRuleDetails.BuildercollectionType(ObjectCollectionRuleCollectionTypes collectionType)The type of collection.CreateLogAnalyticsObjectCollectionRuleDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment to which this rule belongs.CreateLogAnalyticsObjectCollectionRuleDetails.Buildercopy(CreateLogAnalyticsObjectCollectionRuleDetails model)CreateLogAnalyticsObjectCollectionRuleDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateLogAnalyticsObjectCollectionRuleDetails.Builderdescription(String description)A string that describes the details of the rule.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderentityId(String entityId)Logging Analytics entity OCID.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderisEnabled(Boolean isEnabled)Whether or not this rule is currently enabled.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderisForceHistoricCollection(Boolean isForceHistoricCollection)Flag to allow historic collection if poll period overlaps with existing ACTIVE collection ruleCreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogGroupId(String logGroupId)Logging Analytics Log group OCID to associate the processed logs with.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogSet(String logSet)The logSet to be associated with the processed logs.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogSetExtRegex(String logSetExtRegex)The regex to be applied against given logSetKey.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogSetKey(LogSetKeyTypes logSetKey)An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogSourceName(String logSourceName)Name of the Logging Analytics Source to use for the processing.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderlogType(LogTypes logType)Type of files/objects in this object collection rule.CreateLogAnalyticsObjectCollectionRuleDetails.Buildername(String name)A unique name given to the rule.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderobjectNameFilters(List<String> objectNameFilters)When the filters are provided, only the objects matching the filters are picked up for processing.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderosBucketName(String osBucketName)Name of the Object Storage bucket.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderosNamespace(String osNamespace)Object Storage namespace.CreateLogAnalyticsObjectCollectionRuleDetails.Builderoverrides(Map<String,List<PropertyOverride>> overrides)The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderpollSince(String pollSince)The oldest time of the file in the bucket to consider for collection.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderpollTill(String pollTill)The newest time of the file in the bucket to consider for collection.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderstreamCursorTime(Date streamCursorTime)The time from which to consume the objects, if streamCursorType is AT_TIME.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderstreamCursorType(StreamCursorTypes streamCursorType)Cursor type used to fetch messages from stream.CreateLogAnalyticsObjectCollectionRuleDetails.BuilderstreamId(String streamId)A Stream OCID is required for Object Collection rules of type LIVE or HISTORIC_LIVE, which will be used by Logging Analytics while creating Event Rule and consume the event notifications created by the Object Storage.CreateLogAnalyticsObjectCollectionRuleDetails.Buildertimezone(String timezone)Timezone to be used when processing log entries whose timestamps do not include an explicit timezone.
 
- 
- 
- 
Method Detail- 
namepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder name(String name) A unique name given to the rule.The name must be unique within the tenancy, and cannot be modified. - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder description(String description) A string that describes the details of the rule.It does not have to be unique, and can be changed. Avoid entering confidential information. - Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder compartmentId(String compartmentId) The OCID of the compartment to which this rule belongs.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
osNamespacepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder osNamespace(String osNamespace) Object Storage namespace.- Parameters:
- osNamespace- the value to set
- Returns:
- this builder
 
 - 
osBucketNamepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder osBucketName(String osBucketName) Name of the Object Storage bucket.- Parameters:
- osBucketName- the value to set
- Returns:
- this builder
 
 - 
collectionTypepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder collectionType(ObjectCollectionRuleCollectionTypes collectionType) The type of collection.- Parameters:
- collectionType- the value to set
- Returns:
- this builder
 
 - 
pollSincepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder pollSince(String pollSince) The oldest time of the file in the bucket to consider for collection.Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error. - Parameters:
- pollSince- the value to set
- Returns:
- this builder
 
 - 
pollTillpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder pollTill(String pollTill) The newest time of the file in the bucket to consider for collection.Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error. - Parameters:
- pollTill- the value to set
- Returns:
- this builder
 
 - 
logGroupIdpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logGroupId(String logGroupId) Logging Analytics Log group OCID to associate the processed logs with.- Parameters:
- logGroupId- the value to set
- Returns:
- this builder
 
 - 
logSourceNamepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSourceName(String logSourceName) Name of the Logging Analytics Source to use for the processing.- Parameters:
- logSourceName- the value to set
- Returns:
- this builder
 
 - 
entityIdpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder entityId(String entityId) Logging Analytics entity OCID.Associates the processed logs with the given entity (optional). - Parameters:
- entityId- the value to set
- Returns:
- this builder
 
 - 
charEncodingpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder charEncoding(String charEncoding) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing.It is recommended to set this value as ISO_8859_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs. - Parameters:
- charEncoding- the value to set
- Returns:
- this builder
 
 - 
isEnabledpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder isEnabled(Boolean isEnabled) Whether or not this rule is currently enabled.- Parameters:
- isEnabled- the value to set
- Returns:
- this builder
 
 - 
timezonepublic CreateLogAnalyticsObjectCollectionRuleDetails.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. - Parameters:
- timezone- the value to set
- Returns:
- this builder
 
 - 
logSetpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSet(String logSet) The logSet to be associated with the processed logs.The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex. - Parameters:
- logSet- the value to set
- Returns:
- this builder
 
 - 
logSetKeypublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSetKey(LogSetKeyTypes logSetKey) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex.Default value is OBJECT_PATH (e.g. /n/ /b/ /o/ ). - Parameters:
- logSetKey- the value to set
- Returns:
- this builder
 
 - 
logSetExtRegexpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSetExtRegex(String logSetExtRegex) The regex to be applied against given logSetKey.Regex has to be in string escaped format. - Parameters:
- logSetExtRegex- the value to set
- Returns:
- this builder
 
 - 
overridespublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder overrides(Map<String,List<PropertyOverride>> overrides) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket.Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are “contains”. - Parameters:
- overrides- the value to set
- Returns:
- this builder
 
 - 
objectNameFilterspublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder objectNameFilters(List<String> objectNameFilters) When the filters are provided, only the objects matching the filters are picked up for processing.The matchType supported is exact match and accommodates wildcard “*”. For more information on filters, see Event Filters. - Parameters:
- objectNameFilters- the value to set
- Returns:
- this builder
 
 - 
logTypepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logType(LogTypes logType) Type of files/objects in this object collection rule.- Parameters:
- logType- the value to set
- Returns:
- this builder
 
 - 
isForceHistoricCollectionpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder isForceHistoricCollection(Boolean isForceHistoricCollection) Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule- Parameters:
- isForceHistoricCollection- the value to set
- Returns:
- this builder
 
 - 
streamIdpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder streamId(String streamId) A Stream OCID is required for Object Collection rules of type LIVE or HISTORIC_LIVE, which will be used by Logging Analytics while creating Event Rule and consume the event notifications created by the Object Storage.- Parameters:
- streamId- the value to set
- Returns:
- this builder
 
 - 
streamCursorTypepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder streamCursorType(StreamCursorTypes streamCursorType) Cursor type used to fetch messages from stream.When the streamCursorType is set to DEFAULT, the existing cursor position will be used if already set by any previous objection collection rule(s) using the same stream. Otherwise, the behaviour is to consume from the oldest available message in the stream. When the streamCursorType is set to TRIM_HORIZON, the behaviour is to start consuming from the oldest available message in the stream. When the streamCursorType is set to LATEST, the behavior is to start consuming messages that were published after the creation of this rule. When the streamCursorType is set to AT_TIME, the behavior is to start consuming from a given time. For more information on cursor types, see Stream Consumer Groups. - Parameters:
- streamCursorType- the value to set
- Returns:
- this builder
 
 - 
streamCursorTimepublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder streamCursorTime(Date streamCursorTime) The time from which to consume the objects, if streamCursorType is AT_TIME.- Parameters:
- streamCursorTime- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic CreateLogAnalyticsObjectCollectionRuleDetails.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
 
 - 
freeformTagspublic CreateLogAnalyticsObjectCollectionRuleDetails.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
 
 - 
buildpublic CreateLogAnalyticsObjectCollectionRuleDetails build() 
 - 
copypublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder copy(CreateLogAnalyticsObjectCollectionRuleDetails model) 
 
- 
 
-