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