Class ImportedCertificatePrototype.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ImportedCertificatePrototype.Builder
-
- Enclosing class:
- ImportedCertificatePrototype
public static class ImportedCertificatePrototype.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(SecretPrototype importedCertificatePrototype)Instantiates a new Builder from an existing ImportedCertificatePrototype instance.Builder(String secretType, String name)Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(SecretPrototype importedCertificatePrototype)
Instantiates a new Builder from an existing ImportedCertificatePrototype instance.- Parameters:
importedCertificatePrototype- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public ImportedCertificatePrototype build()
Builds a ImportedCertificatePrototype.- Returns:
- the new ImportedCertificatePrototype instance
-
addLabels
public ImportedCertificatePrototype.Builder addLabels(String labels)
Adds a new element to labels.- Parameters:
labels- the new element to be added- Returns:
- the ImportedCertificatePrototype builder
-
secretType
public ImportedCertificatePrototype.Builder secretType(String secretType)
Set the secretType.- Parameters:
secretType- the secretType- Returns:
- the ImportedCertificatePrototype builder
-
name
public ImportedCertificatePrototype.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the ImportedCertificatePrototype builder
-
description
public ImportedCertificatePrototype.Builder description(String description)
Set the description.- Parameters:
description- the description- Returns:
- the ImportedCertificatePrototype builder
-
secretGroupId
public ImportedCertificatePrototype.Builder secretGroupId(String secretGroupId)
Set the secretGroupId.- Parameters:
secretGroupId- the secretGroupId- Returns:
- the ImportedCertificatePrototype builder
-
labels
public ImportedCertificatePrototype.Builder labels(List<String> labels)
Set the labels. Existing labels will be replaced.- Parameters:
labels- the labels- Returns:
- the ImportedCertificatePrototype builder
-
certificate
public ImportedCertificatePrototype.Builder certificate(String certificate)
Set the certificate.- Parameters:
certificate- the certificate- Returns:
- the ImportedCertificatePrototype builder
-
intermediate
public ImportedCertificatePrototype.Builder intermediate(String intermediate)
Set the intermediate.- Parameters:
intermediate- the intermediate- Returns:
- the ImportedCertificatePrototype builder
-
privateKey
public ImportedCertificatePrototype.Builder privateKey(String privateKey)
Set the privateKey.- Parameters:
privateKey- the privateKey- Returns:
- the ImportedCertificatePrototype builder
-
managedCsr
public ImportedCertificatePrototype.Builder managedCsr(ImportedCertificateManagedCsr managedCsr)
Set the managedCsr.- Parameters:
managedCsr- the managedCsr- Returns:
- the ImportedCertificatePrototype builder
-
customMetadata
public ImportedCertificatePrototype.Builder customMetadata(Map<String,Object> customMetadata)
Set the customMetadata.- Parameters:
customMetadata- the customMetadata- Returns:
- the ImportedCertificatePrototype builder
-
versionCustomMetadata
public ImportedCertificatePrototype.Builder versionCustomMetadata(Map<String,Object> versionCustomMetadata)
Set the versionCustomMetadata.- Parameters:
versionCustomMetadata- the versionCustomMetadata- Returns:
- the ImportedCertificatePrototype builder
-
-