Package com.oracle.bmc.logging.model
Class Log.Builder
- java.lang.Object
- 
- com.oracle.bmc.logging.model.Log.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Logbuild()Log.BuildercompartmentId(String compartmentId)The OCID of the compartment that the resource belongs to.Log.Builderconfiguration(Configuration configuration)Log.Buildercopy(Log model)Log.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Log.BuilderdisplayName(String displayName)The user-friendly display name.Log.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Log.Builderid(String id)The OCID of the resource.Log.BuilderisEnabled(Boolean isEnabled)Whether or not this resource is currently enabled.Log.BuilderlifecycleState(LogLifecycleState lifecycleState)The pipeline state.Log.BuilderlogGroupId(String logGroupId)Log group OCID.Log.BuilderlogType(Log.LogType logType)The logType that the log object is for, whether custom or service.Log.BuilderretentionDuration(Integer retentionDuration)Log retention duration in 30-day increments (30, 60, 90 and so on until 180).Log.BuildertenancyId(String tenancyId)The OCID of the tenancy.Log.BuildertimeCreated(Date timeCreated)Time the resource was created.Log.BuildertimeLastModified(Date timeLastModified)Time the resource was last modified.
 
- 
- 
- 
Method Detail- 
idpublic Log.Builder id(String id) The OCID of the resource.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
tenancyIdpublic Log.Builder tenancyId(String tenancyId) The OCID of the tenancy.- Parameters:
- tenancyId- the value to set
- Returns:
- this builder
 
 - 
logGroupIdpublic Log.Builder logGroupId(String logGroupId) Log group OCID.- Parameters:
- logGroupId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Log.Builder displayName(String displayName) The user-friendly display name.This must be unique within the enclosing resource, and it’s changeable. Avoid entering confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
logTypepublic Log.Builder logType(Log.LogType logType) The logType that the log object is for, whether custom or service.- Parameters:
- logType- the value to set
- Returns:
- this builder
 
 - 
isEnabledpublic Log.Builder isEnabled(Boolean isEnabled) Whether or not this resource is currently enabled.- Parameters:
- isEnabled- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic Log.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Log.Builder freeformTags(Map<String,String> freeformTags) Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
configurationpublic Log.Builder configuration(Configuration configuration) 
 - 
lifecycleStatepublic Log.Builder lifecycleState(LogLifecycleState lifecycleState) The pipeline state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Log.Builder timeCreated(Date timeCreated) Time the resource was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeLastModifiedpublic Log.Builder timeLastModified(Date timeLastModified) Time the resource was last modified.- Parameters:
- timeLastModified- the value to set
- Returns:
- this builder
 
 - 
retentionDurationpublic Log.Builder retentionDuration(Integer retentionDuration) Log retention duration in 30-day increments (30, 60, 90 and so on until 180).- Parameters:
- retentionDuration- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Log.Builder compartmentId(String compartmentId) The OCID of the compartment that the resource belongs to.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
buildpublic Log build() 
 - 
copypublic Log.Builder copy(Log model) 
 
- 
 
-