Package com.oracle.bmc.ons.model
Class NotificationTopic.Builder
- java.lang.Object
-
- com.oracle.bmc.ons.model.NotificationTopic.Builder
-
- Enclosing class:
- NotificationTopic
public static class NotificationTopic.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationTopic.Builder
apiEndpoint(String apiEndpoint)
The endpoint for managing subscriptions or publishing messages to the topic.NotificationTopic
build()
NotificationTopic.Builder
compartmentId(String compartmentId)
The OCID of the compartment for the topic.NotificationTopic.Builder
copy(NotificationTopic model)
NotificationTopic.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.NotificationTopic.Builder
description(String description)
The description of the topic.NotificationTopic.Builder
etag(String etag)
For optimistic concurrency control.NotificationTopic.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.NotificationTopic.Builder
lifecycleState(NotificationTopic.LifecycleState lifecycleState)
The lifecycle state of the topic.NotificationTopic.Builder
name(String name)
The name of the topic.NotificationTopic.Builder
shortTopicId(String shortTopicId)
A unique short topic Id.NotificationTopic.Builder
timeCreated(Date timeCreated)
The time the topic was created.NotificationTopic.Builder
topicId(String topicId)
The OCID of the topic.
-
-
-
Method Detail
-
name
public NotificationTopic.Builder name(String name)
The name of the topic.- Parameters:
name
- the value to set- Returns:
- this builder
-
topicId
public NotificationTopic.Builder topicId(String topicId)
The OCID of the topic.- Parameters:
topicId
- the value to set- Returns:
- this builder
-
shortTopicId
public NotificationTopic.Builder shortTopicId(String shortTopicId)
A unique short topic Id.This is used only for SMS subscriptions.
- Parameters:
shortTopicId
- the value to set- Returns:
- this builder
-
compartmentId
public NotificationTopic.Builder compartmentId(String compartmentId)
The OCID of the compartment for the topic.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public NotificationTopic.Builder lifecycleState(NotificationTopic.LifecycleState lifecycleState)
The lifecycle state of the topic.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
description
public NotificationTopic.Builder description(String description)
The description of the topic.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public NotificationTopic.Builder timeCreated(Date timeCreated)
The time the topic was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
etag
public NotificationTopic.Builder etag(String etag)
For optimistic concurrency control.See if-match.
- Parameters:
etag
- the value to set- Returns:
- this builder
-
freeformTags
public NotificationTopic.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
-
definedTags
public NotificationTopic.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
-
apiEndpoint
public NotificationTopic.Builder apiEndpoint(String apiEndpoint)
The endpoint for managing subscriptions or publishing messages to the topic.- Parameters:
apiEndpoint
- the value to set- Returns:
- this builder
-
build
public NotificationTopic build()
-
copy
public NotificationTopic.Builder copy(NotificationTopic model)
-
-