public static class Subscription.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Subscription |
build() |
Subscription.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment for the subscription.
|
Subscription.Builder |
copy(Subscription model) |
Subscription.Builder |
createdTime(Long createdTime)
The time when this suscription was created.
|
Subscription.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Subscription.Builder |
deliverPolicy(String deliverPolicy)
The delivery policy of the subscription.
|
Subscription.Builder |
endpoint(String endpoint)
A locator that corresponds to the subscription protocol.
|
Subscription.Builder |
etag(String etag)
For optimistic concurrency control.
|
Subscription.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Subscription.Builder |
id(String id)
The OCID
of the subscription.
|
Subscription.Builder |
lifecycleState(Subscription.LifecycleState lifecycleState)
The lifecycle state of the subscription.
|
Subscription.Builder |
protocol(String protocol)
The protocol used for the subscription.
|
Subscription.Builder |
topicId(String topicId)
The OCID
of the associated topic.
|
public Subscription.Builder id(String id)
The OCID of the subscription.
id
- the value to setpublic Subscription.Builder topicId(String topicId)
The OCID of the associated topic.
topicId
- the value to setpublic Subscription.Builder protocol(String protocol)
The protocol used for the subscription.
Allowed values: * CUSTOM_HTTPS
* EMAIL
* HTTPS
(deprecated;
for PagerDuty endpoints, use PAGERDUTY
) * ORACLE_FUNCTIONS
* PAGERDUTY
* SLACK
* SMS
For information about subscription protocols, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
protocol
- the value to setpublic Subscription.Builder endpoint(String endpoint)
A locator that corresponds to the subscription protocol. For example, an email address
for a subscription that uses the EMAIL
protocol, or a URL for a subscription that
uses an HTTP-based protocol.
endpoint
- the value to setpublic Subscription.Builder lifecycleState(Subscription.LifecycleState lifecycleState)
The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
lifecycleState
- the value to setpublic Subscription.Builder compartmentId(String compartmentId)
The OCID of the compartment for the subscription.
compartmentId
- the value to setpublic Subscription.Builder createdTime(Long createdTime)
The time when this suscription was created.
createdTime
- the value to setpublic Subscription.Builder deliverPolicy(String deliverPolicy)
The delivery policy of the subscription. Stored as a JSON string.
deliverPolicy
- the value to setpublic Subscription.Builder etag(String etag)
For optimistic concurrency control. See if-match
.
etag
- the value to setpublic Subscription.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"}
freeformTags
- the value to setpublic Subscription.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"}}
definedTags
- the value to setpublic Subscription build()
public Subscription.Builder copy(Subscription model)
Copyright © 2016–2024. All rights reserved.