Class KVSecretPrototype.Builder

    • Constructor Detail

      • Builder

        public Builder​(SecretPrototype kvSecretPrototype)
        Instantiates a new Builder from an existing KVSecretPrototype instance.
        Parameters:
        kvSecretPrototype - the instance to initialize the Builder with
      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String secretType,
                       String name,
                       Map<String,​Object> data)
        Instantiates a new builder with required properties.
        Parameters:
        secretType - the secretType
        name - the name
        data - the data
    • Method Detail

      • build

        public KVSecretPrototype build()
        Builds a KVSecretPrototype.
        Returns:
        the new KVSecretPrototype instance
      • addLabels

        public KVSecretPrototype.Builder addLabels​(String labels)
        Adds a new element to labels.
        Parameters:
        labels - the new element to be added
        Returns:
        the KVSecretPrototype builder
      • secretType

        public KVSecretPrototype.Builder secretType​(String secretType)
        Set the secretType.
        Parameters:
        secretType - the secretType
        Returns:
        the KVSecretPrototype builder
      • description

        public KVSecretPrototype.Builder description​(String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the KVSecretPrototype builder
      • secretGroupId

        public KVSecretPrototype.Builder secretGroupId​(String secretGroupId)
        Set the secretGroupId.
        Parameters:
        secretGroupId - the secretGroupId
        Returns:
        the KVSecretPrototype builder
      • labels

        public KVSecretPrototype.Builder labels​(List<String> labels)
        Set the labels. Existing labels will be replaced.
        Parameters:
        labels - the labels
        Returns:
        the KVSecretPrototype builder
      • customMetadata

        public KVSecretPrototype.Builder customMetadata​(Map<String,​Object> customMetadata)
        Set the customMetadata.
        Parameters:
        customMetadata - the customMetadata
        Returns:
        the KVSecretPrototype builder
      • versionCustomMetadata

        public KVSecretPrototype.Builder versionCustomMetadata​(Map<String,​Object> versionCustomMetadata)
        Set the versionCustomMetadata.
        Parameters:
        versionCustomMetadata - the versionCustomMetadata
        Returns:
        the KVSecretPrototype builder