Class PartnerSubscription.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • subscriptionId

        public PartnerSubscription.Builder subscriptionId​(String subscriptionId)
        The unique identifier of the Subscription.
        Parameters:
        subscriptionId - the value to set
        Returns:
        this builder
      • displayName

        public PartnerSubscription.Builder displayName​(String displayName)
        The subscription name.

        Must be unique within the compartment. This value can be updated.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • sourceType

        public PartnerSubscription.Builder sourceType​(SourceType sourceType)
        The type of seller in SELF Service.
        Parameters:
        sourceType - the value to set
        Returns:
        this builder
      • productId

        public PartnerSubscription.Builder productId​(String productId)
        The unique OCID of the product, effectively functioning as the listing ID.
        Parameters:
        productId - the value to set
        Returns:
        this builder
      • isAutoRenew

        public PartnerSubscription.Builder isAutoRenew​(Boolean isAutoRenew)
        Whether subscription should be auto-renewed at the end of cycle.
        Parameters:
        isAutoRenew - the value to set
        Returns:
        this builder
      • additionalDetails

        public PartnerSubscription.Builder additionalDetails​(List<ExtendedMetadata> additionalDetails)
        Additional details that are specific for this subscription such as activation details.
        Parameters:
        additionalDetails - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public PartnerSubscription.Builder lifecycleDetails​(LifecycleDetailsEnum lifecycleDetails)
        A message that describes the current state of the Subscription in more detail.

        For example, can be used to provide actionable information for a resource in the Failed state.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • timeStarted

        public PartnerSubscription.Builder timeStarted​(Date timeStarted)
        The date and time the Subscription was started, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeEnded

        public PartnerSubscription.Builder timeEnded​(Date timeEnded)
        The date and time the Subscription was ended, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeEnded - the value to set
        Returns:
        this builder
      • timeCreated

        public PartnerSubscription.Builder timeCreated​(Date timeCreated)
        The date and time the Subscription was created, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public PartnerSubscription.Builder timeUpdated​(Date timeUpdated)
        The date and time the Subscription was updated, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder