Class CreateSubscriptionDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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