public static final class VmcaRootTypes.CreateSpec.Builder
extends java.lang.Object
VmcaRootTypes.CreateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VmcaRootTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
VmcaRootTypes.CreateSpec |
build() |
VmcaRootTypes.CreateSpec.Builder |
setCommonName(java.lang.String commonName)
The common name of the host for which certificate is generated.
|
VmcaRootTypes.CreateSpec.Builder |
setCountry(java.lang.String country)
Country field in certificate subject.
|
VmcaRootTypes.CreateSpec.Builder |
setEmailAddress(java.lang.String emailAddress)
Email field in Certificate extensions.
|
VmcaRootTypes.CreateSpec.Builder |
setKeySize(java.lang.Long keySize)
The size of the key to be used for public and private key generation.
|
VmcaRootTypes.CreateSpec.Builder |
setLocality(java.lang.String locality)
Locality field in certificate subject.
|
VmcaRootTypes.CreateSpec.Builder |
setOrganization(java.lang.String organization)
Organization field in certificate subject.
|
VmcaRootTypes.CreateSpec.Builder |
setOrganizationUnit(java.lang.String organizationUnit)
Organization unit field in certificate subject.
|
VmcaRootTypes.CreateSpec.Builder |
setStateOrProvince(java.lang.String stateOrProvince)
State field in certificate subject.
|
VmcaRootTypes.CreateSpec.Builder |
setSubjectAltName(java.util.List<java.lang.String> subjectAltName)
SubjectAltName is list of Dns Names and Ip addresses.
|
public Builder()
VmcaRootTypes.CreateSpec
.public VmcaRootTypes.CreateSpec.Builder setKeySize(java.lang.Long keySize)
null
the key size will be 2048.keySize
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setCommonName(java.lang.String commonName)
null
the common name will be the primary network identifier (PNID) of
the vCenter Virtual Server Appliance (VCSA).commonName
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setOrganization(java.lang.String organization)
null
the organization will be 'VMware'.organization
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setOrganizationUnit(java.lang.String organizationUnit)
null
the organization unit will be 'VMware Engineering'.organizationUnit
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setLocality(java.lang.String locality)
null
the locality will be 'Palo Alto'.locality
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setStateOrProvince(java.lang.String stateOrProvince)
null
the state will be 'California'.stateOrProvince
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setCountry(java.lang.String country)
null
the country will be 'US'.country
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setEmailAddress(java.lang.String emailAddress)
null
the emailAddress will be 'email@acme.com'.emailAddress
- New value for the property.public VmcaRootTypes.CreateSpec.Builder setSubjectAltName(java.util.List<java.lang.String> subjectAltName)
null
PNID of host will be used as IPAddress or Hostname for
certificate generation.subjectAltName
- New value for the property.public VmcaRootTypes.CreateSpec build()