Class PublicCertificatePrototype.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.PublicCertificatePrototype.Builder
-
- Enclosing class:
- PublicCertificatePrototype
public static class PublicCertificatePrototype.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(SecretPrototype publicCertificatePrototype)Instantiates a new Builder from an existing PublicCertificatePrototype instance.Builder(String secretType, String name, String ca, String dns)Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(SecretPrototype publicCertificatePrototype)
Instantiates a new Builder from an existing PublicCertificatePrototype instance.- Parameters:
publicCertificatePrototype- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public PublicCertificatePrototype build()
Builds a PublicCertificatePrototype.- Returns:
- the new PublicCertificatePrototype instance
-
addLabels
public PublicCertificatePrototype.Builder addLabels(String labels)
Adds a new element to labels.- Parameters:
labels- the new element to be added- Returns:
- the PublicCertificatePrototype builder
-
addAltNames
public PublicCertificatePrototype.Builder addAltNames(String altNames)
Adds a new element to altNames.- Parameters:
altNames- the new element to be added- Returns:
- the PublicCertificatePrototype builder
-
secretType
public PublicCertificatePrototype.Builder secretType(String secretType)
Set the secretType.- Parameters:
secretType- the secretType- Returns:
- the PublicCertificatePrototype builder
-
name
public PublicCertificatePrototype.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the PublicCertificatePrototype builder
-
description
public PublicCertificatePrototype.Builder description(String description)
Set the description.- Parameters:
description- the description- Returns:
- the PublicCertificatePrototype builder
-
secretGroupId
public PublicCertificatePrototype.Builder secretGroupId(String secretGroupId)
Set the secretGroupId.- Parameters:
secretGroupId- the secretGroupId- Returns:
- the PublicCertificatePrototype builder
-
labels
public PublicCertificatePrototype.Builder labels(List<String> labels)
Set the labels. Existing labels will be replaced.- Parameters:
labels- the labels- Returns:
- the PublicCertificatePrototype builder
-
commonName
public PublicCertificatePrototype.Builder commonName(String commonName)
Set the commonName.- Parameters:
commonName- the commonName- Returns:
- the PublicCertificatePrototype builder
-
altNames
public PublicCertificatePrototype.Builder altNames(List<String> altNames)
Set the altNames. Existing altNames will be replaced.- Parameters:
altNames- the altNames- Returns:
- the PublicCertificatePrototype builder
-
keyAlgorithm
public PublicCertificatePrototype.Builder keyAlgorithm(String keyAlgorithm)
Set the keyAlgorithm.- Parameters:
keyAlgorithm- the keyAlgorithm- Returns:
- the PublicCertificatePrototype builder
-
ca
public PublicCertificatePrototype.Builder ca(String ca)
Set the ca.- Parameters:
ca- the ca- Returns:
- the PublicCertificatePrototype builder
-
dns
public PublicCertificatePrototype.Builder dns(String dns)
Set the dns.- Parameters:
dns- the dns- Returns:
- the PublicCertificatePrototype builder
-
bundleCerts
public PublicCertificatePrototype.Builder bundleCerts(Boolean bundleCerts)
Set the bundleCerts.- Parameters:
bundleCerts- the bundleCerts- Returns:
- the PublicCertificatePrototype builder
-
rotation
public PublicCertificatePrototype.Builder rotation(RotationPolicy rotation)
Set the rotation.- Parameters:
rotation- the rotation- Returns:
- the PublicCertificatePrototype builder
-
customMetadata
public PublicCertificatePrototype.Builder customMetadata(Map<String,Object> customMetadata)
Set the customMetadata.- Parameters:
customMetadata- the customMetadata- Returns:
- the PublicCertificatePrototype builder
-
versionCustomMetadata
public PublicCertificatePrototype.Builder versionCustomMetadata(Map<String,Object> versionCustomMetadata)
Set the versionCustomMetadata.- Parameters:
versionCustomMetadata- the versionCustomMetadata- Returns:
- the PublicCertificatePrototype builder
-
-