Package com.oracle.bmc.opsi.model
Class NewsReport.Builder
- java.lang.Object
-
- com.oracle.bmc.opsi.model.NewsReport.Builder
-
- Enclosing class:
- NewsReport
public static class NewsReport.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsReport.Builder
areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded)
A flag to consider the resources within a given compartment and all sub-compartments.NewsReport
build()
NewsReport.Builder
compartmentId(String compartmentId)
The OCID of the compartment.NewsReport.Builder
contentTypes(NewsContentTypes contentTypes)
NewsReport.Builder
copy(NewsReport model)
NewsReport.Builder
dayOfWeek(DayOfWeek dayOfWeek)
Day of the week in which the news report will be sent if the frequency is set to WEEKLY.NewsReport.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.NewsReport.Builder
description(String description)
The description of the news report.NewsReport.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.NewsReport.Builder
id(String id)
The OCID of the news report resource.NewsReport.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.NewsReport.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the news report.NewsReport.Builder
locale(NewsLocale locale)
Language of the news report.NewsReport.Builder
matchRule(MatchRule matchRule)
Match rule used for tag filters.NewsReport.Builder
name(String name)
The news report name.NewsReport.Builder
newsFrequency(NewsFrequency newsFrequency)
News report frequency.NewsReport.Builder
onsTopicId(String onsTopicId)
The OCID of the ONS topic.NewsReport.Builder
status(ResourceStatus status)
Indicates the status of a news report in Ops Insights.NewsReport.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.NewsReport.Builder
tagFilters(List<String> tagFilters)
List of tag filters; each filter composed by a namespace, key, and value.NewsReport.Builder
timeCreated(Date timeCreated)
The time the the news report was first enabled.NewsReport.Builder
timeUpdated(Date timeUpdated)
The time the news report was updated.
-
-
-
Method Detail
-
newsFrequency
public NewsReport.Builder newsFrequency(NewsFrequency newsFrequency)
News report frequency.- Parameters:
newsFrequency
- the value to set- Returns:
- this builder
-
contentTypes
public NewsReport.Builder contentTypes(NewsContentTypes contentTypes)
-
locale
public NewsReport.Builder locale(NewsLocale locale)
Language of the news report.- Parameters:
locale
- the value to set- Returns:
- this builder
-
id
public NewsReport.Builder id(String id)
The OCID of the news report resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
description
public NewsReport.Builder description(String description)
The description of the news report.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public NewsReport.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public NewsReport.Builder name(String name)
The news report name.- Parameters:
name
- the value to set- Returns:
- this builder
-
onsTopicId
public NewsReport.Builder onsTopicId(String onsTopicId)
The OCID of the ONS topic.- Parameters:
onsTopicId
- the value to set- Returns:
- this builder
-
freeformTags
public NewsReport.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 NewsReport.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
-
systemTags
public NewsReport.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
status
public NewsReport.Builder status(ResourceStatus status)
Indicates the status of a news report in Ops Insights.- Parameters:
status
- the value to set- Returns:
- this builder
-
timeCreated
public NewsReport.Builder timeCreated(Date timeCreated)
The time the the news report was first enabled.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public NewsReport.Builder timeUpdated(Date timeUpdated)
The time the news report was updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public NewsReport.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the news report.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public NewsReport.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
dayOfWeek
public NewsReport.Builder dayOfWeek(DayOfWeek dayOfWeek)
Day of the week in which the news report will be sent if the frequency is set to WEEKLY.- Parameters:
dayOfWeek
- the value to set- Returns:
- this builder
-
areChildCompartmentsIncluded
public NewsReport.Builder areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded)
A flag to consider the resources within a given compartment and all sub-compartments.- Parameters:
areChildCompartmentsIncluded
- the value to set- Returns:
- this builder
-
tagFilters
public NewsReport.Builder tagFilters(List<String> tagFilters)
List of tag filters; each filter composed by a namespace, key, and value.Example for defined tags - ‘
. = ’. Example for freeform tags - ‘ = ’. - Parameters:
tagFilters
- the value to set- Returns:
- this builder
-
matchRule
public NewsReport.Builder matchRule(MatchRule matchRule)
Match rule used for tag filters.- Parameters:
matchRule
- the value to set- Returns:
- this builder
-
build
public NewsReport build()
-
copy
public NewsReport.Builder copy(NewsReport model)
-
-