Class Channel.Builder

  • Enclosing class:
    Channel

    public static class Channel.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Channel.Builder id​(String id)
        The OCID of the Channel.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public Channel.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public Channel.Builder displayName​(String displayName)
        The user-friendly name for the Channel.

        It does not have to be unique.

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

        public Channel.Builder isEnabled​(Boolean isEnabled)
        Whether the Channel has been enabled by the user.
        Parameters:
        isEnabled - the value to set
        Returns:
        this builder
      • description

        public Channel.Builder description​(String description)
        User provided description of the Channel.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lifecycleState

        public Channel.Builder lifecycleState​(Channel.LifecycleState lifecycleState)
        The state of the Channel.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Channel.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the state of the Channel.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • timeCreated

        public Channel.Builder timeCreated​(Date timeCreated)
        The date and time the Channel was created, as described by RFC 3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Channel.Builder timeUpdated​(Date timeUpdated)
        The time the Channel was last updated, as described by RFC 3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public Channel.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public Channel.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Usage of predefined tag keys.

        These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

        public Channel.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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