Class Lockbox.Builder

  • Enclosing class:
    Lockbox

    public static class Lockbox.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Lockbox.Builder id​(String id)
        Unique identifier that is immutable on creation
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Lockbox.Builder displayName​(String displayName)
        Lockbox Identifier, can be renamed
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • compartmentId

        public Lockbox.Builder compartmentId​(String compartmentId)
        Compartment Identifier
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • partnerId

        public Lockbox.Builder partnerId​(String partnerId)
        The unique identifier (OCID) of partner resource using this lockbox to lock a resource
        Parameters:
        partnerId - the value to set
        Returns:
        this builder
      • parentLockboxId

        public Lockbox.Builder parentLockboxId​(String parentLockboxId)
        The unique identifier (OCID) of lockbox resource using to reference parent lockbox in hybrid oma setup
        Parameters:
        parentLockboxId - the value to set
        Returns:
        this builder
      • partnerCompartmentId

        public Lockbox.Builder partnerCompartmentId​(String partnerCompartmentId)
        Compartment Identifier
        Parameters:
        partnerCompartmentId - the value to set
        Returns:
        this builder
      • resourceId

        public Lockbox.Builder resourceId​(String resourceId)
        The unique identifier (OCID) of associated resource that the lockbox is created for.
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • lockboxPartner

        public Lockbox.Builder lockboxPartner​(LockboxPartner lockboxPartner)
        The partner using this lockbox to lock a resource.
        Parameters:
        lockboxPartner - the value to set
        Returns:
        this builder
      • timeCreated

        public Lockbox.Builder timeCreated​(Date timeCreated)
        The time the the Lockbox was created.

        An RFC3339 formatted datetime string

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

        public Lockbox.Builder timeUpdated​(Date timeUpdated)
        The time the Lockbox was updated.

        An RFC3339 formatted datetime string

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

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

        public Lockbox.Builder approvalTemplateId​(String approvalTemplateId)
        Approval template ID
        Parameters:
        approvalTemplateId - the value to set
        Returns:
        this builder
      • maxAccessDuration

        public Lockbox.Builder maxAccessDuration​(String maxAccessDuration)
        The maximum amount of time operator has access to associated resources.
        Parameters:
        maxAccessDuration - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Lockbox.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.

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

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

        public Lockbox.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is 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 Lockbox.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

        public Lockbox.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