Class CreateSubscriptionDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.ons.model.CreateSubscriptionDetails.Builder
 
- 
- Enclosing class:
- CreateSubscriptionDetails
 
 public static class CreateSubscriptionDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSubscriptionDetailsbuild()CreateSubscriptionDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment for the subscription.CreateSubscriptionDetails.Buildercopy(CreateSubscriptionDetails model)CreateSubscriptionDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateSubscriptionDetails.Builderendpoint(String endpoint)A locator that corresponds to the subscription protocol.CreateSubscriptionDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateSubscriptionDetails.Buildermetadata(String metadata)Metadata for the subscription.CreateSubscriptionDetails.Builderprotocol(String protocol)The protocol used for the subscription.CreateSubscriptionDetails.BuildertopicId(String topicId)The OCID of the topic for the subscription.
 
- 
- 
- 
Method Detail- 
topicIdpublic CreateSubscriptionDetails.Builder topicId(String topicId) The OCID of the topic for the subscription.- Parameters:
- topicId- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic CreateSubscriptionDetails.Builder compartmentId(String compartmentId) The OCID of the compartment for the subscription.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
protocolpublic 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
 
 - 
endpointpublic 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
 
 - 
metadatapublic CreateSubscriptionDetails.Builder metadata(String metadata) Metadata for the subscription.- Parameters:
- metadata- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
buildpublic CreateSubscriptionDetails build() 
 - 
copypublic CreateSubscriptionDetails.Builder copy(CreateSubscriptionDetails model) 
 
- 
 
-