Class CreateSubscriptionDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.ons.model.CreateSubscriptionDetails.Builder
-
- Enclosing class:
- CreateSubscriptionDetails
public static class CreateSubscriptionDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
topicId
public CreateSubscriptionDetails.Builder topicId(String topicId)
The OCID of the topic for the subscription.- Parameters:
topicId
- the value to set- Returns:
- this builder
-
compartmentId
public CreateSubscriptionDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment for the subscription.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
protocol
public 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.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
- Parameters:
protocol
- the value to set- Returns:
- this builder
-
endpoint
public 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.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
- Parameters:
endpoint
- the value to set- Returns:
- this builder
-
metadata
public CreateSubscriptionDetails.Builder metadata(String metadata)
Metadata for the subscription.- Parameters:
metadata
- the value to set- Returns:
- this builder
-
freeformTags
public 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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateSubscriptionDetails build()
-
copy
public CreateSubscriptionDetails.Builder copy(CreateSubscriptionDetails model)
-
-