public static class SubscriptionSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public SubscriptionSummary.Builder id(String id)
The OCID of the subscription.
id
- the value to setpublic SubscriptionSummary.Builder topicId(String topicId)
The OCID of the associated topic.
topicId
- the value to setpublic SubscriptionSummary.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 SubscriptionSummary.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 SubscriptionSummary.Builder lifecycleState(SubscriptionSummary.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 SubscriptionSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment for the subscription.
compartmentId
- the value to setpublic SubscriptionSummary.Builder createdTime(Long createdTime)
The time when this suscription was created.
createdTime
- the value to setpublic SubscriptionSummary.Builder deliveryPolicy(DeliveryPolicy deliveryPolicy)
public SubscriptionSummary.Builder etag(String etag)
For optimistic concurrency control. See if-match
.
etag
- the value to setpublic SubscriptionSummary.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 SubscriptionSummary.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 SubscriptionSummary build()
public SubscriptionSummary.Builder copy(SubscriptionSummary model)
Copyright © 2016–2024. All rights reserved.