Class LogAnalyticsTemplate.Builder
- java.lang.Object
-
- com.oracle.bmc.loganalytics.model.LogAnalyticsTemplate.Builder
-
- Enclosing class:
- LogAnalyticsTemplate
public static class LogAnalyticsTemplate.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogAnalyticsTemplatebuild()LogAnalyticsTemplate.BuildercompartmentId(String compartmentId)Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).LogAnalyticsTemplate.Buildercontent(String content)Base64 encoded template content.LogAnalyticsTemplate.BuildercontentFormat(String contentFormat)Content format.LogAnalyticsTemplate.Buildercopy(LogAnalyticsTemplate model)LogAnalyticsTemplate.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.LogAnalyticsTemplate.Builderdescription(String description)Description for this resource.LogAnalyticsTemplate.Builderfacets(List<TemplateFacet> facets)Facets of the templateLogAnalyticsTemplate.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.LogAnalyticsTemplate.Builderid(String id)The log analytics entity OCID.LogAnalyticsTemplate.BuilderisSystem(Boolean isSystem)The system flag.LogAnalyticsTemplate.BuilderlifecycleState(ConfigLifecycleState lifecycleState)The current state of the template.LogAnalyticsTemplate.Buildername(String name)The template name.LogAnalyticsTemplate.Builderparameters(String parameters)Base64 encoded template parameters.LogAnalyticsTemplate.BuilderparametersFormat(String parametersFormat)Parameters format.LogAnalyticsTemplate.BuilderparametersMetadata(String parametersMetadata)Base64 encoded parameters metadata definition.LogAnalyticsTemplate.BuildertimeCreated(Date timeCreated)The date and time the resource was created, in the format defined by RFC3339.LogAnalyticsTemplate.BuildertimeUpdated(Date timeUpdated)The date and time the resource was last updated, in the format defined by RFC3339.LogAnalyticsTemplate.Buildertype(String type)The template type.
-
-
-
Method Detail
-
id
public LogAnalyticsTemplate.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 LogAnalyticsTemplate.Builder description(String description)
Description for this resource.- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public LogAnalyticsTemplate.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 LogAnalyticsTemplate.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 LogAnalyticsTemplate.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 LogAnalyticsTemplate.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 LogAnalyticsTemplate.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
-
name
public LogAnalyticsTemplate.Builder name(String name)
The template name.- Parameters:
name- the value to set- Returns:
- this builder
-
type
public LogAnalyticsTemplate.Builder type(String type)
The template type.- Parameters:
type- the value to set- Returns:
- this builder
-
isSystem
public LogAnalyticsTemplate.Builder isSystem(Boolean isSystem)
The system flag.A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
- Parameters:
isSystem- the value to set- Returns:
- this builder
-
lifecycleState
public LogAnalyticsTemplate.Builder lifecycleState(ConfigLifecycleState lifecycleState)
The current state of the template.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
facets
public LogAnalyticsTemplate.Builder facets(List<TemplateFacet> facets)
Facets of the template- Parameters:
facets- the value to set- Returns:
- this builder
-
content
public LogAnalyticsTemplate.Builder content(String content)
Base64 encoded template content.- Parameters:
content- the value to set- Returns:
- this builder
-
contentFormat
public LogAnalyticsTemplate.Builder contentFormat(String contentFormat)
Content format.For example - XML.
- Parameters:
contentFormat- the value to set- Returns:
- this builder
-
parameters
public LogAnalyticsTemplate.Builder parameters(String parameters)
Base64 encoded template parameters.- Parameters:
parameters- the value to set- Returns:
- this builder
-
parametersFormat
public LogAnalyticsTemplate.Builder parametersFormat(String parametersFormat)
Parameters format.For example - NAME_VALUE_PAIR.
- Parameters:
parametersFormat- the value to set- Returns:
- this builder
-
parametersMetadata
public LogAnalyticsTemplate.Builder parametersMetadata(String parametersMetadata)
Base64 encoded parameters metadata definition.- Parameters:
parametersMetadata- the value to set- Returns:
- this builder
-
build
public LogAnalyticsTemplate build()
-
copy
public LogAnalyticsTemplate.Builder copy(LogAnalyticsTemplate model)
-
-