Package com.oracle.bmc.goldengate.model
Class Certificate.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.Certificate.Builder
-
- Enclosing class:
- Certificate
public static class Certificate.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Certificate.Builder
authorityKeyId(String authorityKeyId)
The Certificate authority key id.Certificate
build()
Certificate.Builder
certificateContent(String certificateContent)
The base64 encoded content of the PEM file containing the SSL certificate.Certificate.Builder
copy(Certificate model)
Certificate.Builder
deploymentId(String deploymentId)
The OCID of the deployment being referenced.Certificate.Builder
isCa(Boolean isCa)
Indicates if the certificate is ca.Certificate.Builder
isSelfSigned(Boolean isSelfSigned)
Indicates if the certificate is self signed.Certificate.Builder
issuer(String issuer)
The Certificate issuer.Certificate.Builder
key(String key)
The identifier key (unique name in the scope of the deployment) of the certificate being referenced.Certificate.Builder
lifecycleState(CertificateLifecycleState lifecycleState)
Possible certificate lifecycle states.Certificate.Builder
md5Hash(String md5Hash)
The Certificate md5Hash.Certificate.Builder
publicKey(String publicKey)
The Certificate public key.Certificate.Builder
publicKeyAlgorithm(String publicKeyAlgorithm)
The Certificate public key algorithm.Certificate.Builder
publicKeySize(Long publicKeySize)
The Certificate public key size.Certificate.Builder
serial(String serial)
The Certificate serial.Certificate.Builder
sha1Hash(String sha1Hash)
The Certificate sha1 hash.Certificate.Builder
subject(String subject)
The Certificate subject.Certificate.Builder
subjectKeyId(String subjectKeyId)
The Certificate subject key id.Certificate.Builder
timeCreated(Date timeCreated)
The time the resource was created.Certificate.Builder
timeValidFrom(Date timeValidFrom)
The time the certificate is valid from.Certificate.Builder
timeValidTo(Date timeValidTo)
The time the certificate is valid to.Certificate.Builder
version(String version)
The Certificate version.
-
-
-
Method Detail
-
key
public Certificate.Builder key(String key)
The identifier key (unique name in the scope of the deployment) of the certificate being referenced.It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
- Parameters:
key
- the value to set- Returns:
- this builder
-
deploymentId
public Certificate.Builder deploymentId(String deploymentId)
The OCID of the deployment being referenced.- Parameters:
deploymentId
- the value to set- Returns:
- this builder
-
certificateContent
public Certificate.Builder certificateContent(String certificateContent)
The base64 encoded content of the PEM file containing the SSL certificate.- Parameters:
certificateContent
- the value to set- Returns:
- this builder
-
issuer
public Certificate.Builder issuer(String issuer)
The Certificate issuer.- Parameters:
issuer
- the value to set- Returns:
- this builder
-
isSelfSigned
public Certificate.Builder isSelfSigned(Boolean isSelfSigned)
Indicates if the certificate is self signed.- Parameters:
isSelfSigned
- the value to set- Returns:
- this builder
-
md5Hash
public Certificate.Builder md5Hash(String md5Hash)
The Certificate md5Hash.- Parameters:
md5Hash
- the value to set- Returns:
- this builder
-
publicKey
public Certificate.Builder publicKey(String publicKey)
The Certificate public key.- Parameters:
publicKey
- the value to set- Returns:
- this builder
-
publicKeyAlgorithm
public Certificate.Builder publicKeyAlgorithm(String publicKeyAlgorithm)
The Certificate public key algorithm.- Parameters:
publicKeyAlgorithm
- the value to set- Returns:
- this builder
-
publicKeySize
public Certificate.Builder publicKeySize(Long publicKeySize)
The Certificate public key size.- Parameters:
publicKeySize
- the value to set- Returns:
- this builder
-
serial
public Certificate.Builder serial(String serial)
The Certificate serial.- Parameters:
serial
- the value to set- Returns:
- this builder
-
subject
public Certificate.Builder subject(String subject)
The Certificate subject.- Parameters:
subject
- the value to set- Returns:
- this builder
-
timeValidFrom
public Certificate.Builder timeValidFrom(Date timeValidFrom)
The time the certificate is valid from.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeValidFrom
- the value to set- Returns:
- this builder
-
timeValidTo
public Certificate.Builder timeValidTo(Date timeValidTo)
The time the certificate is valid to.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeValidTo
- the value to set- Returns:
- this builder
-
version
public Certificate.Builder version(String version)
The Certificate version.- Parameters:
version
- the value to set- Returns:
- this builder
-
sha1Hash
public Certificate.Builder sha1Hash(String sha1Hash)
The Certificate sha1 hash.- Parameters:
sha1Hash
- the value to set- Returns:
- this builder
-
authorityKeyId
public Certificate.Builder authorityKeyId(String authorityKeyId)
The Certificate authority key id.- Parameters:
authorityKeyId
- the value to set- Returns:
- this builder
-
isCa
public Certificate.Builder isCa(Boolean isCa)
Indicates if the certificate is ca.- Parameters:
isCa
- the value to set- Returns:
- this builder
-
subjectKeyId
public Certificate.Builder subjectKeyId(String subjectKeyId)
The Certificate subject key id.- Parameters:
subjectKeyId
- the value to set- Returns:
- this builder
-
lifecycleState
public Certificate.Builder lifecycleState(CertificateLifecycleState lifecycleState)
Possible certificate lifecycle states.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public Certificate.Builder timeCreated(Date timeCreated)
The time the resource was created.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
build
public Certificate build()
-
copy
public Certificate.Builder copy(Certificate model)
-
-