Class PrivateCertificateConfigurationTemplatePrototype.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.PrivateCertificateConfigurationTemplatePrototype.Builder
-
- Enclosing class:
- PrivateCertificateConfigurationTemplatePrototype
public static class PrivateCertificateConfigurationTemplatePrototype.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(ConfigurationPrototype privateCertificateConfigurationTemplatePrototype)Instantiates a new Builder from an existing PrivateCertificateConfigurationTemplatePrototype instance.Builder(String configType, String name, String certificateAuthority)Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(ConfigurationPrototype privateCertificateConfigurationTemplatePrototype)
Instantiates a new Builder from an existing PrivateCertificateConfigurationTemplatePrototype instance.- Parameters:
privateCertificateConfigurationTemplatePrototype- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public PrivateCertificateConfigurationTemplatePrototype build()
Builds a PrivateCertificateConfigurationTemplatePrototype.- Returns:
- the new PrivateCertificateConfigurationTemplatePrototype instance
-
addAllowedDomains
public PrivateCertificateConfigurationTemplatePrototype.Builder addAllowedDomains(String allowedDomains)
Adds a new element to allowedDomains.- Parameters:
allowedDomains- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addAllowedUriSans
public PrivateCertificateConfigurationTemplatePrototype.Builder addAllowedUriSans(String allowedUriSans)
Adds a new element to allowedUriSans.- Parameters:
allowedUriSans- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addAllowedOtherSans
public PrivateCertificateConfigurationTemplatePrototype.Builder addAllowedOtherSans(String allowedOtherSans)
Adds a new element to allowedOtherSans.- Parameters:
allowedOtherSans- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addKeyUsage
public PrivateCertificateConfigurationTemplatePrototype.Builder addKeyUsage(String keyUsage)
Adds a new element to keyUsage.- Parameters:
keyUsage- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addExtKeyUsage
public PrivateCertificateConfigurationTemplatePrototype.Builder addExtKeyUsage(String extKeyUsage)
Adds a new element to extKeyUsage.- Parameters:
extKeyUsage- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addExtKeyUsageOids
public PrivateCertificateConfigurationTemplatePrototype.Builder addExtKeyUsageOids(String extKeyUsageOids)
Adds a new element to extKeyUsageOids.- Parameters:
extKeyUsageOids- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addOu
public PrivateCertificateConfigurationTemplatePrototype.Builder addOu(String ou)
Adds a new element to ou.- Parameters:
ou- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addOrganization
public PrivateCertificateConfigurationTemplatePrototype.Builder addOrganization(String organization)
Adds a new element to organization.- Parameters:
organization- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addCountry
public PrivateCertificateConfigurationTemplatePrototype.Builder addCountry(String country)
Adds a new element to country.- Parameters:
country- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addLocality
public PrivateCertificateConfigurationTemplatePrototype.Builder addLocality(String locality)
Adds a new element to locality.- Parameters:
locality- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addProvince
public PrivateCertificateConfigurationTemplatePrototype.Builder addProvince(String province)
Adds a new element to province.- Parameters:
province- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addStreetAddress
public PrivateCertificateConfigurationTemplatePrototype.Builder addStreetAddress(String streetAddress)
Adds a new element to streetAddress.- Parameters:
streetAddress- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addPostalCode
public PrivateCertificateConfigurationTemplatePrototype.Builder addPostalCode(String postalCode)
Adds a new element to postalCode.- Parameters:
postalCode- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
addPolicyIdentifiers
public PrivateCertificateConfigurationTemplatePrototype.Builder addPolicyIdentifiers(String policyIdentifiers)
Adds a new element to policyIdentifiers.- Parameters:
policyIdentifiers- the new element to be added- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
configType
public PrivateCertificateConfigurationTemplatePrototype.Builder configType(String configType)
Set the configType.- Parameters:
configType- the configType- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
name
public PrivateCertificateConfigurationTemplatePrototype.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
certificateAuthority
public PrivateCertificateConfigurationTemplatePrototype.Builder certificateAuthority(String certificateAuthority)
Set the certificateAuthority.- Parameters:
certificateAuthority- the certificateAuthority- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowedSecretGroups
public PrivateCertificateConfigurationTemplatePrototype.Builder allowedSecretGroups(String allowedSecretGroups)
Set the allowedSecretGroups.- Parameters:
allowedSecretGroups- the allowedSecretGroups- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
maxTtl
public PrivateCertificateConfigurationTemplatePrototype.Builder maxTtl(String maxTtl)
Set the maxTtl.- Parameters:
maxTtl- the maxTtl- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
ttl
public PrivateCertificateConfigurationTemplatePrototype.Builder ttl(String ttl)
Set the ttl.- Parameters:
ttl- the ttl- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowLocalhost
public PrivateCertificateConfigurationTemplatePrototype.Builder allowLocalhost(Boolean allowLocalhost)
Set the allowLocalhost.- Parameters:
allowLocalhost- the allowLocalhost- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowedDomains
public PrivateCertificateConfigurationTemplatePrototype.Builder allowedDomains(List<String> allowedDomains)
Set the allowedDomains. Existing allowedDomains will be replaced.- Parameters:
allowedDomains- the allowedDomains- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowedDomainsTemplate
public PrivateCertificateConfigurationTemplatePrototype.Builder allowedDomainsTemplate(Boolean allowedDomainsTemplate)
Set the allowedDomainsTemplate.- Parameters:
allowedDomainsTemplate- the allowedDomainsTemplate- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowBareDomains
public PrivateCertificateConfigurationTemplatePrototype.Builder allowBareDomains(Boolean allowBareDomains)
Set the allowBareDomains.- Parameters:
allowBareDomains- the allowBareDomains- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowSubdomains
public PrivateCertificateConfigurationTemplatePrototype.Builder allowSubdomains(Boolean allowSubdomains)
Set the allowSubdomains.- Parameters:
allowSubdomains- the allowSubdomains- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowGlobDomains
public PrivateCertificateConfigurationTemplatePrototype.Builder allowGlobDomains(Boolean allowGlobDomains)
Set the allowGlobDomains.- Parameters:
allowGlobDomains- the allowGlobDomains- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowWildcardCertificates
public PrivateCertificateConfigurationTemplatePrototype.Builder allowWildcardCertificates(Boolean allowWildcardCertificates)
Set the allowWildcardCertificates.- Parameters:
allowWildcardCertificates- the allowWildcardCertificates- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowAnyName
public PrivateCertificateConfigurationTemplatePrototype.Builder allowAnyName(Boolean allowAnyName)
Set the allowAnyName.- Parameters:
allowAnyName- the allowAnyName- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
enforceHostnames
public PrivateCertificateConfigurationTemplatePrototype.Builder enforceHostnames(Boolean enforceHostnames)
Set the enforceHostnames.- Parameters:
enforceHostnames- the enforceHostnames- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowIpSans
public PrivateCertificateConfigurationTemplatePrototype.Builder allowIpSans(Boolean allowIpSans)
Set the allowIpSans.- Parameters:
allowIpSans- the allowIpSans- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowedUriSans
public PrivateCertificateConfigurationTemplatePrototype.Builder allowedUriSans(List<String> allowedUriSans)
Set the allowedUriSans. Existing allowedUriSans will be replaced.- Parameters:
allowedUriSans- the allowedUriSans- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
allowedOtherSans
public PrivateCertificateConfigurationTemplatePrototype.Builder allowedOtherSans(List<String> allowedOtherSans)
Set the allowedOtherSans. Existing allowedOtherSans will be replaced.- Parameters:
allowedOtherSans- the allowedOtherSans- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
serverFlag
public PrivateCertificateConfigurationTemplatePrototype.Builder serverFlag(Boolean serverFlag)
Set the serverFlag.- Parameters:
serverFlag- the serverFlag- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
clientFlag
public PrivateCertificateConfigurationTemplatePrototype.Builder clientFlag(Boolean clientFlag)
Set the clientFlag.- Parameters:
clientFlag- the clientFlag- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
codeSigningFlag
public PrivateCertificateConfigurationTemplatePrototype.Builder codeSigningFlag(Boolean codeSigningFlag)
Set the codeSigningFlag.- Parameters:
codeSigningFlag- the codeSigningFlag- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
emailProtectionFlag
public PrivateCertificateConfigurationTemplatePrototype.Builder emailProtectionFlag(Boolean emailProtectionFlag)
Set the emailProtectionFlag.- Parameters:
emailProtectionFlag- the emailProtectionFlag- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
keyType
public PrivateCertificateConfigurationTemplatePrototype.Builder keyType(String keyType)
Set the keyType.- Parameters:
keyType- the keyType- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
keyBits
public PrivateCertificateConfigurationTemplatePrototype.Builder keyBits(long keyBits)
Set the keyBits.- Parameters:
keyBits- the keyBits- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
keyUsage
public PrivateCertificateConfigurationTemplatePrototype.Builder keyUsage(List<String> keyUsage)
Set the keyUsage. Existing keyUsage will be replaced.- Parameters:
keyUsage- the keyUsage- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
extKeyUsage
public PrivateCertificateConfigurationTemplatePrototype.Builder extKeyUsage(List<String> extKeyUsage)
Set the extKeyUsage. Existing extKeyUsage will be replaced.- Parameters:
extKeyUsage- the extKeyUsage- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
extKeyUsageOids
public PrivateCertificateConfigurationTemplatePrototype.Builder extKeyUsageOids(List<String> extKeyUsageOids)
Set the extKeyUsageOids. Existing extKeyUsageOids will be replaced.- Parameters:
extKeyUsageOids- the extKeyUsageOids- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
useCsrCommonName
public PrivateCertificateConfigurationTemplatePrototype.Builder useCsrCommonName(Boolean useCsrCommonName)
Set the useCsrCommonName.- Parameters:
useCsrCommonName- the useCsrCommonName- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
useCsrSans
public PrivateCertificateConfigurationTemplatePrototype.Builder useCsrSans(Boolean useCsrSans)
Set the useCsrSans.- Parameters:
useCsrSans- the useCsrSans- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
ou
public PrivateCertificateConfigurationTemplatePrototype.Builder ou(List<String> ou)
Set the ou. Existing ou will be replaced.- Parameters:
ou- the ou- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
organization
public PrivateCertificateConfigurationTemplatePrototype.Builder organization(List<String> organization)
Set the organization. Existing organization will be replaced.- Parameters:
organization- the organization- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
country
public PrivateCertificateConfigurationTemplatePrototype.Builder country(List<String> country)
Set the country. Existing country will be replaced.- Parameters:
country- the country- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
locality
public PrivateCertificateConfigurationTemplatePrototype.Builder locality(List<String> locality)
Set the locality. Existing locality will be replaced.- Parameters:
locality- the locality- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
province
public PrivateCertificateConfigurationTemplatePrototype.Builder province(List<String> province)
Set the province. Existing province will be replaced.- Parameters:
province- the province- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
streetAddress
public PrivateCertificateConfigurationTemplatePrototype.Builder streetAddress(List<String> streetAddress)
Set the streetAddress. Existing streetAddress will be replaced.- Parameters:
streetAddress- the streetAddress- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
postalCode
public PrivateCertificateConfigurationTemplatePrototype.Builder postalCode(List<String> postalCode)
Set the postalCode. Existing postalCode will be replaced.- Parameters:
postalCode- the postalCode- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
serialNumber
public PrivateCertificateConfigurationTemplatePrototype.Builder serialNumber(String serialNumber)
Set the serialNumber.- Parameters:
serialNumber- the serialNumber- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
requireCn
public PrivateCertificateConfigurationTemplatePrototype.Builder requireCn(Boolean requireCn)
Set the requireCn.- Parameters:
requireCn- the requireCn- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
policyIdentifiers
public PrivateCertificateConfigurationTemplatePrototype.Builder policyIdentifiers(List<String> policyIdentifiers)
Set the policyIdentifiers. Existing policyIdentifiers will be replaced.- Parameters:
policyIdentifiers- the policyIdentifiers- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
basicConstraintsValidForNonCa
public PrivateCertificateConfigurationTemplatePrototype.Builder basicConstraintsValidForNonCa(Boolean basicConstraintsValidForNonCa)
Set the basicConstraintsValidForNonCa.- Parameters:
basicConstraintsValidForNonCa- the basicConstraintsValidForNonCa- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
notBeforeDuration
public PrivateCertificateConfigurationTemplatePrototype.Builder notBeforeDuration(String notBeforeDuration)
Set the notBeforeDuration.- Parameters:
notBeforeDuration- the notBeforeDuration- Returns:
- the PrivateCertificateConfigurationTemplatePrototype builder
-
-