Class ArbitrarySecretPrototype.Builder

    • Constructor Detail

      • Builder

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

        public Builder()
        Instantiates a new builder.
      • Builder

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

      • build

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

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

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

        public ArbitrarySecretPrototype.Builder expirationDate​(Date expirationDate)
        Set the expirationDate.
        Parameters:
        expirationDate - the expirationDate
        Returns:
        the ArbitrarySecretPrototype builder
      • labels

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

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

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

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