Class PrivateCertificateConfigurationRootCAPrototype.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.PrivateCertificateConfigurationRootCAPrototype.Builder
-
- Enclosing class:
- PrivateCertificateConfigurationRootCAPrototype
public static class PrivateCertificateConfigurationRootCAPrototype.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(ConfigurationPrototype privateCertificateConfigurationRootCaPrototype)Instantiates a new Builder from an existing PrivateCertificateConfigurationRootCAPrototype instance.Builder(String configType, String name, String maxTtl, String commonName)Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(ConfigurationPrototype privateCertificateConfigurationRootCaPrototype)
Instantiates a new Builder from an existing PrivateCertificateConfigurationRootCAPrototype instance.- Parameters:
privateCertificateConfigurationRootCaPrototype- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public PrivateCertificateConfigurationRootCAPrototype build()
Builds a PrivateCertificateConfigurationRootCAPrototype.- Returns:
- the new PrivateCertificateConfigurationRootCAPrototype instance
-
addAltNames
public PrivateCertificateConfigurationRootCAPrototype.Builder addAltNames(String altNames)
Adds a new element to altNames.- Parameters:
altNames- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addOtherSans
public PrivateCertificateConfigurationRootCAPrototype.Builder addOtherSans(String otherSans)
Adds a new element to otherSans.- Parameters:
otherSans- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addPermittedDnsDomains
public PrivateCertificateConfigurationRootCAPrototype.Builder addPermittedDnsDomains(String permittedDnsDomains)
Adds a new element to permittedDnsDomains.- Parameters:
permittedDnsDomains- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addOu
public PrivateCertificateConfigurationRootCAPrototype.Builder addOu(String ou)
Adds a new element to ou.- Parameters:
ou- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addOrganization
public PrivateCertificateConfigurationRootCAPrototype.Builder addOrganization(String organization)
Adds a new element to organization.- Parameters:
organization- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addCountry
public PrivateCertificateConfigurationRootCAPrototype.Builder addCountry(String country)
Adds a new element to country.- Parameters:
country- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addLocality
public PrivateCertificateConfigurationRootCAPrototype.Builder addLocality(String locality)
Adds a new element to locality.- Parameters:
locality- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addProvince
public PrivateCertificateConfigurationRootCAPrototype.Builder addProvince(String province)
Adds a new element to province.- Parameters:
province- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addStreetAddress
public PrivateCertificateConfigurationRootCAPrototype.Builder addStreetAddress(String streetAddress)
Adds a new element to streetAddress.- Parameters:
streetAddress- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
addPostalCode
public PrivateCertificateConfigurationRootCAPrototype.Builder addPostalCode(String postalCode)
Adds a new element to postalCode.- Parameters:
postalCode- the new element to be added- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
configType
public PrivateCertificateConfigurationRootCAPrototype.Builder configType(String configType)
Set the configType.- Parameters:
configType- the configType- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
name
public PrivateCertificateConfigurationRootCAPrototype.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
cryptoKey
public PrivateCertificateConfigurationRootCAPrototype.Builder cryptoKey(PrivateCertificateCryptoKey cryptoKey)
Set the cryptoKey.- Parameters:
cryptoKey- the cryptoKey- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
maxTtl
public PrivateCertificateConfigurationRootCAPrototype.Builder maxTtl(String maxTtl)
Set the maxTtl.- Parameters:
maxTtl- the maxTtl- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
crlExpiry
public PrivateCertificateConfigurationRootCAPrototype.Builder crlExpiry(String crlExpiry)
Set the crlExpiry.- Parameters:
crlExpiry- the crlExpiry- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
crlDisable
public PrivateCertificateConfigurationRootCAPrototype.Builder crlDisable(Boolean crlDisable)
Set the crlDisable.- Parameters:
crlDisable- the crlDisable- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
crlDistributionPointsEncoded
public PrivateCertificateConfigurationRootCAPrototype.Builder crlDistributionPointsEncoded(Boolean crlDistributionPointsEncoded)
Set the crlDistributionPointsEncoded.- Parameters:
crlDistributionPointsEncoded- the crlDistributionPointsEncoded- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
issuingCertificatesUrlsEncoded
public PrivateCertificateConfigurationRootCAPrototype.Builder issuingCertificatesUrlsEncoded(Boolean issuingCertificatesUrlsEncoded)
Set the issuingCertificatesUrlsEncoded.- Parameters:
issuingCertificatesUrlsEncoded- the issuingCertificatesUrlsEncoded- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
commonName
public PrivateCertificateConfigurationRootCAPrototype.Builder commonName(String commonName)
Set the commonName.- Parameters:
commonName- the commonName- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
altNames
public PrivateCertificateConfigurationRootCAPrototype.Builder altNames(List<String> altNames)
Set the altNames. Existing altNames will be replaced.- Parameters:
altNames- the altNames- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
ipSans
public PrivateCertificateConfigurationRootCAPrototype.Builder ipSans(String ipSans)
Set the ipSans.- Parameters:
ipSans- the ipSans- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
uriSans
public PrivateCertificateConfigurationRootCAPrototype.Builder uriSans(String uriSans)
Set the uriSans.- Parameters:
uriSans- the uriSans- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
otherSans
public PrivateCertificateConfigurationRootCAPrototype.Builder otherSans(List<String> otherSans)
Set the otherSans. Existing otherSans will be replaced.- Parameters:
otherSans- the otherSans- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
ttl
public PrivateCertificateConfigurationRootCAPrototype.Builder ttl(String ttl)
Set the ttl.- Parameters:
ttl- the ttl- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
format
public PrivateCertificateConfigurationRootCAPrototype.Builder format(String format)
Set the format.- Parameters:
format- the format- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
privateKeyFormat
public PrivateCertificateConfigurationRootCAPrototype.Builder privateKeyFormat(String privateKeyFormat)
Set the privateKeyFormat.- Parameters:
privateKeyFormat- the privateKeyFormat- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
keyType
public PrivateCertificateConfigurationRootCAPrototype.Builder keyType(String keyType)
Set the keyType.- Parameters:
keyType- the keyType- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
keyBits
public PrivateCertificateConfigurationRootCAPrototype.Builder keyBits(long keyBits)
Set the keyBits.- Parameters:
keyBits- the keyBits- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
maxPathLength
public PrivateCertificateConfigurationRootCAPrototype.Builder maxPathLength(long maxPathLength)
Set the maxPathLength.- Parameters:
maxPathLength- the maxPathLength- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
excludeCnFromSans
public PrivateCertificateConfigurationRootCAPrototype.Builder excludeCnFromSans(Boolean excludeCnFromSans)
Set the excludeCnFromSans.- Parameters:
excludeCnFromSans- the excludeCnFromSans- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
permittedDnsDomains
public PrivateCertificateConfigurationRootCAPrototype.Builder permittedDnsDomains(List<String> permittedDnsDomains)
Set the permittedDnsDomains. Existing permittedDnsDomains will be replaced.- Parameters:
permittedDnsDomains- the permittedDnsDomains- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
ou
public PrivateCertificateConfigurationRootCAPrototype.Builder ou(List<String> ou)
Set the ou. Existing ou will be replaced.- Parameters:
ou- the ou- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
organization
public PrivateCertificateConfigurationRootCAPrototype.Builder organization(List<String> organization)
Set the organization. Existing organization will be replaced.- Parameters:
organization- the organization- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
country
public PrivateCertificateConfigurationRootCAPrototype.Builder country(List<String> country)
Set the country. Existing country will be replaced.- Parameters:
country- the country- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
locality
public PrivateCertificateConfigurationRootCAPrototype.Builder locality(List<String> locality)
Set the locality. Existing locality will be replaced.- Parameters:
locality- the locality- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
province
public PrivateCertificateConfigurationRootCAPrototype.Builder province(List<String> province)
Set the province. Existing province will be replaced.- Parameters:
province- the province- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
streetAddress
public PrivateCertificateConfigurationRootCAPrototype.Builder streetAddress(List<String> streetAddress)
Set the streetAddress. Existing streetAddress will be replaced.- Parameters:
streetAddress- the streetAddress- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
postalCode
public PrivateCertificateConfigurationRootCAPrototype.Builder postalCode(List<String> postalCode)
Set the postalCode. Existing postalCode will be replaced.- Parameters:
postalCode- the postalCode- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
serialNumber
public PrivateCertificateConfigurationRootCAPrototype.Builder serialNumber(String serialNumber)
Set the serialNumber.- Parameters:
serialNumber- the serialNumber- Returns:
- the PrivateCertificateConfigurationRootCAPrototype builder
-
-