Class WrappingKey.Builder

  • Enclosing class:
    WrappingKey

    public static class WrappingKey.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

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

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

        public WrappingKey.Builder lifecycleState​(WrappingKey.LifecycleState lifecycleState)
        The key’s current lifecycle state.

        Example: ENABLED

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

        public WrappingKey.Builder publicKey​(String publicKey)
        The public key, in PEM format, to use to wrap the key material before importing it.
        Parameters:
        publicKey - the value to set
        Returns:
        this builder
      • timeCreated

        public WrappingKey.Builder timeCreated​(Date timeCreated)
        The date and time the key was created, expressed in RFC 3339 timestamp format.

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

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

        public WrappingKey.Builder vaultId​(String vaultId)
        The OCID of the vault that contains this key.
        Parameters:
        vaultId - the value to set
        Returns:
        this builder