Class Subscription.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Subscription.Builder id​(String id)
        The unique identifier for the subscription within a specific compartment.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Subscription.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
      • compartmentId

        public Subscription.Builder compartmentId​(String compartmentId)
        The unique identifier for the compartment where the subscription was purchased.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • tenantId

        public Subscription.Builder tenantId​(String tenantId)
        The unique identifier for the tenant where the subscription was purchased.
        Parameters:
        tenantId - the value to set
        Returns:
        this builder
      • sellerId

        public Subscription.Builder sellerId​(String sellerId)
        The OCID that identifies the seller within the platform.
        Parameters:
        sellerId - the value to set
        Returns:
        this builder
      • sourceType

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

        public Subscription.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
      • additionalDetails

        public Subscription.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
      • realm

        public Subscription.Builder realm​(String realm)
        The realm from where customer is buying the subscription.
        Parameters:
        realm - the value to set
        Returns:
        this builder
      • region

        public Subscription.Builder region​(String region)
        The region from where customer is buying the subscription.
        Parameters:
        region - the value to set
        Returns:
        this builder
      • timeCreated

        public Subscription.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 Subscription.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
      • timeStarted

        public Subscription.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 Subscription.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
      • lifecycleState

        public Subscription.Builder lifecycleState​(LifecycleStateEnum lifecycleState)
        The current lifecycle state of the Subscription.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Subscription.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
      • freeformTags

        public Subscription.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 Subscription.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
      • systemTags

        public Subscription.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace.

        Example: {"orcl-cloud": {"free-tier-retained": "true"}}

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