Class Stack.Builder

  • Enclosing class:
    Stack

    public static class Stack.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Stack.Builder id​(String id)
        Unique identifier (OCID) for the stack.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public Stack.Builder compartmentId​(String compartmentId)
        Unique identifier (OCID) for the compartment where the stack is located.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public Stack.Builder displayName​(String displayName)
        Human-readable name of the stack.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public Stack.Builder description​(String description)
        Description of the stack.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • timeCreated

        public Stack.Builder timeCreated​(Date timeCreated)
        The date and time at which the stack was created.

        Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

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

        public Stack.Builder lifecycleState​(Stack.LifecycleState lifecycleState)
        The current lifecycle state of the stack.

        For more information about stack lifecycle states in Resource Manager, see Key Concepts.

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • isThirdPartyProviderExperienceEnabled

        public Stack.Builder isThirdPartyProviderExperienceEnabled​(Boolean isThirdPartyProviderExperienceEnabled)
        When true, the stack sources third-party Terraform providers from Terraform Registry and allows customTerraformProvider.

        For more information about stack sourcing of third-party Terraform providers, see Third-party Provider Configuration.

        Parameters:
        isThirdPartyProviderExperienceEnabled - the value to set
        Returns:
        this builder
      • variables

        public Stack.Builder variables​(Map<String,​String> variables)
        Terraform variables associated with this resource.

        Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example: {“CompartmentId”: “compartment-id-value”}

        Parameters:
        variables - the value to set
        Returns:
        this builder
      • terraformVersion

        public Stack.Builder terraformVersion​(String terraformVersion)
        The version of Terraform specified for the stack.

        Example: 0.12.x

        Parameters:
        terraformVersion - the value to set
        Returns:
        this builder
      • stackDriftStatus

        public Stack.Builder stackDriftStatus​(Stack.StackDriftStatus stackDriftStatus)
        Drift status of the stack.

        Drift refers to differences between the actual (current) state of the stack and the expected (defined) state of the stack.

        Parameters:
        stackDriftStatus - the value to set
        Returns:
        this builder
      • timeDriftLastChecked

        public Stack.Builder timeDriftLastChecked​(Date timeDriftLastChecked)
        The date and time when the drift detection was last executed.

        Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

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

        public Stack.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags associated with the resource.

        Each tag is a 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 Stack.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
      • build

        public Stack build()