Class SecretSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public SecretSummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the secret.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public SecretSummary.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
      • description

        public SecretSummary.Builder description​(String description)
        A brief description of the secret.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • freeformTags

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

        public SecretSummary.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
      • keyId

        public SecretSummary.Builder keyId​(String keyId)
        The OCID of the master encryption key that is used to encrypt the secret.

        You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.

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

        public SecretSummary.Builder lifecycleDetails​(String lifecycleDetails)
        Additional information about the secret’s current lifecycle state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • rotationStatus

        public SecretSummary.Builder rotationStatus​(Secret.RotationStatus rotationStatus)
        Additional information about the status of the secret rotation
        Parameters:
        rotationStatus - the value to set
        Returns:
        this builder
      • lastRotationTime

        public SecretSummary.Builder lastRotationTime​(Date lastRotationTime)
        A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format.

        Example: 2019-04-03T21:10:29.600Z

        Parameters:
        lastRotationTime - the value to set
        Returns:
        this builder
      • nextRotationTime

        public SecretSummary.Builder nextRotationTime​(Date nextRotationTime)
        A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format.

        Example: 2019-04-03T21:10:29.600Z

        Parameters:
        nextRotationTime - the value to set
        Returns:
        this builder
      • secretName

        public SecretSummary.Builder secretName​(String secretName)
        The name of the secret.
        Parameters:
        secretName - the value to set
        Returns:
        this builder
      • timeCreated

        public SecretSummary.Builder timeCreated​(Date timeCreated)
        A property indicating when the secret was created, expressed in RFC 3339 timestamp format.

        Example: 2019-04-03T21:10:29.600Z

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

        public SecretSummary.Builder timeOfCurrentVersionExpiry​(Date timeOfCurrentVersionExpiry)
        An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format.

        Example: 2019-04-03T21:10:29.600Z

        Parameters:
        timeOfCurrentVersionExpiry - the value to set
        Returns:
        this builder
      • timeOfDeletion

        public SecretSummary.Builder timeOfDeletion​(Date timeOfDeletion)
        An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format.

        Example: 2019-04-03T21:10:29.600Z

        Parameters:
        timeOfDeletion - the value to set
        Returns:
        this builder
      • vaultId

        public SecretSummary.Builder vaultId​(String vaultId)
        The OCID of the Vault in which the secret exists
        Parameters:
        vaultId - the value to set
        Returns:
        this builder
      • isAutoGenerationEnabled

        public SecretSummary.Builder isAutoGenerationEnabled​(Boolean isAutoGenerationEnabled)
        The value of this flag determines whether or not secret content will be generated automatically.
        Parameters:
        isAutoGenerationEnabled - the value to set
        Returns:
        this builder