public static class CreateSubscriptionDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateSubscriptionDetails |
build() |
CreateSubscriptionDetails.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment for the subscription.
|
CreateSubscriptionDetails.Builder |
copy(CreateSubscriptionDetails model) |
CreateSubscriptionDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateSubscriptionDetails.Builder |
endpoint(String endpoint)
A locator that corresponds to the subscription protocol.
|
CreateSubscriptionDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateSubscriptionDetails.Builder |
metadata(String metadata)
Metadata for the subscription.
|
CreateSubscriptionDetails.Builder |
protocol(String protocol)
The protocol used for the subscription.
|
CreateSubscriptionDetails.Builder |
topicId(String topicId)
The OCID
of the topic for the subscription.
|
public CreateSubscriptionDetails.Builder topicId(String topicId)
The OCID of the topic for the subscription.
topicId
- the value to setpublic CreateSubscriptionDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment for the subscription.
compartmentId
- the value to setpublic CreateSubscriptionDetails.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 CreateSubscriptionDetails.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. HTTP-based protocols use URL endpoints that begin with
“http:” or “https:”. A URL cannot exceed 512 characters. Avoid entering confidential
information.
For protocol-specific endpoint formats and steps to get or create endpoints, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
endpoint
- the value to setpublic CreateSubscriptionDetails.Builder metadata(String metadata)
Metadata for the subscription.
metadata
- the value to setpublic CreateSubscriptionDetails.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 CreateSubscriptionDetails.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 CreateSubscriptionDetails build()
public CreateSubscriptionDetails.Builder copy(CreateSubscriptionDetails model)
Copyright © 2016–2024. All rights reserved.