Class AnnouncementSubscription.Builder
- java.lang.Object
-
- com.oracle.bmc.announcementsservice.model.AnnouncementSubscription.Builder
-
- Enclosing class:
- AnnouncementSubscription
public static class AnnouncementSubscription.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnouncementSubscriptionbuild()AnnouncementSubscription.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the announcement subscription.AnnouncementSubscription.Buildercopy(AnnouncementSubscription model)AnnouncementSubscription.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AnnouncementSubscription.Builderdescription(String description)A description of the announcement subscription.AnnouncementSubscription.BuilderdisplayName(String displayName)A user-friendly name for the announcement subscription.AnnouncementSubscription.BuilderfilterGroups(Map<String,FilterGroup> filterGroups)A list of filter groups for the announcement subscription.AnnouncementSubscription.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.AnnouncementSubscription.Builderid(String id)The OCID of the announcement subscription.AnnouncementSubscription.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current lifecycle state in more detail.AnnouncementSubscription.BuilderlifecycleState(AnnouncementSubscription.LifecycleState lifecycleState)The current lifecycle state of the announcement subscription.AnnouncementSubscription.BuilderonsTopicId(String onsTopicId)The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.AnnouncementSubscription.BuilderpreferredLanguage(String preferredLanguage)(For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements.AnnouncementSubscription.BuilderpreferredTimeZone(String preferredTimeZone)The time zone in which the user prefers to receive announcements.AnnouncementSubscription.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.AnnouncementSubscription.BuildertimeCreated(Date timeCreated)The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.AnnouncementSubscription.BuildertimeUpdated(Date timeUpdated)The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public AnnouncementSubscription.Builder id(String id)
The OCID of the announcement subscription.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public AnnouncementSubscription.Builder displayName(String displayName)
A user-friendly name for the announcement subscription.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public AnnouncementSubscription.Builder description(String description)
A description of the announcement subscription.Avoid entering confidential information.
- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public AnnouncementSubscription.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the announcement subscription.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeCreated
public AnnouncementSubscription.Builder timeCreated(Date timeCreated)
The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public AnnouncementSubscription.Builder timeUpdated(Date timeUpdated)
The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public AnnouncementSubscription.Builder lifecycleState(AnnouncementSubscription.LifecycleState lifecycleState)
The current lifecycle state of the announcement subscription.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public AnnouncementSubscription.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current lifecycle state in more detail.For example, details might provide required or recommended actions for a resource in a Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
onsTopicId
public AnnouncementSubscription.Builder onsTopicId(String onsTopicId)
The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.- Parameters:
onsTopicId- the value to set- Returns:
- this builder
-
filterGroups
public AnnouncementSubscription.Builder filterGroups(Map<String,FilterGroup> filterGroups)
A list of filter groups for the announcement subscription.A filter group is a combination of multiple filters applied to announcements for matching purposes.
- Parameters:
filterGroups- the value to set- Returns:
- this builder
-
preferredLanguage
public AnnouncementSubscription.Builder preferredLanguage(String preferredLanguage)
(For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements.Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- Parameters:
preferredLanguage- the value to set- Returns:
- this builder
-
preferredTimeZone
public AnnouncementSubscription.Builder preferredTimeZone(String preferredTimeZone)
The time zone in which the user prefers to receive announcements.Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- Parameters:
preferredTimeZone- the value to set- Returns:
- this builder
-
freeformTags
public AnnouncementSubscription.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 AnnouncementSubscription.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 AnnouncementSubscription.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public AnnouncementSubscription build()
-
copy
public AnnouncementSubscription.Builder copy(AnnouncementSubscription model)
-
-