Class Lead.Builder

  • Enclosing class:
    Lead

    public static class Lead.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Lead.Builder id​(String id)
        Unique OCID identifier for the lead.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • listingId

        public Lead.Builder listingId​(String listingId)
        The OCID for the listing.
        Parameters:
        listingId - the value to set
        Returns:
        this builder
      • listingName

        public Lead.Builder listingName​(String listingName)
        The Name for the listing.
        Parameters:
        listingName - the value to set
        Returns:
        this builder
      • compartmentId

        public Lead.Builder compartmentId​(String compartmentId)
        The OCID for the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • lifecycleState

        public Lead.Builder lifecycleState​(Lead.LifecycleState lifecycleState)
        The state for the listing.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeCreated

        public Lead.Builder timeCreated​(Date timeCreated)
        The date and time the listing was created, in the format defined by RFC3339.

        Example: 2023-03-27T21:10:29.600Z

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

        public Lead build()