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