public static final class LocationSpec.Builder
extends java.lang.Object
LocationSpec
.Constructor and Description |
---|
Builder(java.lang.String hostname,
java.lang.String username,
char[] password)
Constructor with parameters for the required properties of
LocationSpec . |
Modifier and Type | Method and Description |
---|---|
LocationSpec |
build() |
LocationSpec.Builder |
setHttpsPort(java.lang.Long httpsPort)
The HTTPS port of the container.
|
LocationSpec.Builder |
setSslThumbprint(java.lang.String sslThumbprint)
SHA1 thumbprint of the server SSL certificate will be used for verification.
|
LocationSpec.Builder |
setSslVerify(java.lang.Boolean sslVerify)
SSL verification should be enabled or disabled.
|
public Builder(java.lang.String hostname, java.lang.String username, char[] password)
LocationSpec
.public LocationSpec.Builder setHttpsPort(java.lang.Long httpsPort)
null
, port 443 will be used.httpsPort
- New value for the property.public LocationSpec.Builder setSslThumbprint(java.lang.String sslThumbprint)
getSslVerify()
is null
or has
the value true.sslThumbprint
- New value for the property.public LocationSpec.Builder setSslVerify(java.lang.Boolean sslVerify)
getSslVerify()
is
true and and getSslThumbprint()
is null
, the CA certificate will
be used for verification. If getSslVerify()
is true and getSslThumbprint()
is set then the thumbprint will be used for verification. No
verification will be performed if getSslVerify()
value is set to false.
This property was added in vSphere API 6.7.
If null
, ssl_verify true will be used.sslVerify
- New value for the property.public LocationSpec build()