public static interface Certificate.Builder extends SdkPojo, CopyableBuilder<Certificate.Builder,Certificate>
| Modifier and Type | Method and Description |
|---|---|
Certificate.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the certificate.
|
Certificate.Builder |
createdAt(Instant createdAt)
The timestamp when the certificate was created.
|
Certificate.Builder |
domainName(String domainName)
The domain name of the certificate.
|
Certificate.Builder |
domainValidationRecords(Collection<DomainValidationRecord> domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
|
Certificate.Builder |
domainValidationRecords(Consumer<DomainValidationRecord.Builder>... domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
|
Certificate.Builder |
domainValidationRecords(DomainValidationRecord... domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
|
Certificate.Builder |
eligibleToRenew(String eligibleToRenew)
The renewal eligibility of the certificate.
|
Certificate.Builder |
inUseResourceCount(Integer inUseResourceCount)
The number of Lightsail resources that the certificate is attached to.
|
Certificate.Builder |
issuedAt(Instant issuedAt)
The timestamp when the certificate was issued.
|
Certificate.Builder |
issuerCA(String issuerCA)
The certificate authority that issued the certificate.
|
Certificate.Builder |
keyAlgorithm(String keyAlgorithm)
The algorithm used to generate the key pair (the public and private key) of the certificate.
|
Certificate.Builder |
name(String name)
The name of the certificate (e.g.,
my-certificate). |
Certificate.Builder |
notAfter(Instant notAfter)
The timestamp when the certificate expires.
|
Certificate.Builder |
notBefore(Instant notBefore)
The timestamp when the certificate is first valid.
|
default Certificate.Builder |
renewalSummary(Consumer<RenewalSummary.Builder> renewalSummary)
An object that describes the status of the certificate renewal managed by Lightsail.
|
Certificate.Builder |
renewalSummary(RenewalSummary renewalSummary)
An object that describes the status of the certificate renewal managed by Lightsail.
|
Certificate.Builder |
requestFailureReason(String requestFailureReason)
The validation failure reason, if any, of the certificate.
|
Certificate.Builder |
revocationReason(String revocationReason)
The reason the certificate was revoked.
|
Certificate.Builder |
revokedAt(Instant revokedAt)
The timestamp when the certificate was revoked.
|
Certificate.Builder |
serialNumber(String serialNumber)
The serial number of the certificate.
|
Certificate.Builder |
status(CertificateStatus status)
The validation status of the certificate.
|
Certificate.Builder |
status(String status)
The validation status of the certificate.
|
Certificate.Builder |
subjectAlternativeNames(Collection<String> subjectAlternativeNames)
An array of strings that specify the alternate domains (e.g.,
example2.com) and subdomains
(e.g., blog.example.com) of the certificate. |
Certificate.Builder |
subjectAlternativeNames(String... subjectAlternativeNames)
An array of strings that specify the alternate domains (e.g.,
example2.com) and subdomains
(e.g., blog.example.com) of the certificate. |
Certificate.Builder |
supportCode(String supportCode)
The support code.
|
Certificate.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
Certificate.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource.
|
Certificate.Builder |
tags(Tag... tags)
The tag keys and optional values for the resource.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCertificate.Builder arn(String arn)
The Amazon Resource Name (ARN) of the certificate.
arn - The Amazon Resource Name (ARN) of the certificate.Certificate.Builder name(String name)
The name of the certificate (e.g., my-certificate).
name - The name of the certificate (e.g., my-certificate).Certificate.Builder domainName(String domainName)
The domain name of the certificate.
domainName - The domain name of the certificate.Certificate.Builder status(String status)
The validation status of the certificate.
status - The validation status of the certificate.CertificateStatus,
CertificateStatusCertificate.Builder status(CertificateStatus status)
The validation status of the certificate.
status - The validation status of the certificate.CertificateStatus,
CertificateStatusCertificate.Builder serialNumber(String serialNumber)
The serial number of the certificate.
serialNumber - The serial number of the certificate.Certificate.Builder subjectAlternativeNames(Collection<String> subjectAlternativeNames)
An array of strings that specify the alternate domains (e.g., example2.com) and subdomains
(e.g., blog.example.com) of the certificate.
subjectAlternativeNames - An array of strings that specify the alternate domains (e.g., example2.com) and
subdomains (e.g., blog.example.com) of the certificate.Certificate.Builder subjectAlternativeNames(String... subjectAlternativeNames)
An array of strings that specify the alternate domains (e.g., example2.com) and subdomains
(e.g., blog.example.com) of the certificate.
subjectAlternativeNames - An array of strings that specify the alternate domains (e.g., example2.com) and
subdomains (e.g., blog.example.com) of the certificate.Certificate.Builder domainValidationRecords(Collection<DomainValidationRecord> domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
domainValidationRecords - An array of objects that describe the domain validation records of the certificate.Certificate.Builder domainValidationRecords(DomainValidationRecord... domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
domainValidationRecords - An array of objects that describe the domain validation records of the certificate.Certificate.Builder domainValidationRecords(Consumer<DomainValidationRecord.Builder>... domainValidationRecords)
An array of objects that describe the domain validation records of the certificate.
This is a convenience that creates an instance of theList.Builder avoiding
the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #domainValidationRecords(List) .domainValidationRecords - a consumer that will call methods on List.Builder #domainValidationRecords(List) Certificate.Builder requestFailureReason(String requestFailureReason)
The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not
available for Lightsail certificates.
ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process
this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within
the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.
You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was
reported as an unsafe domain by VirusTotal. To correct
the problem, search for your domain name on the VirusTotal website. If your domain is reported as
suspicious, see Google Help for
Hacked Websites to learn what you can do.
If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.
If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.
INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is
not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to
request a certificate again, correcting any spelling errors or typos that were in the failed request, and
ensure that all domain names in the request are for valid top-level domains. For example, you cannot request
a certificate for example.invalidpublicdomain because invalidpublicdomain is not a
valid top-level domain.
OTHER - Typically, this failure occurs when there is a typographical error in one or
more of the domain names in the certificate request. Try to request a certificate again, correcting any
spelling errors or typos that were in the failed request.
requestFailureReason - The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not
available for Lightsail certificates.
ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to
process this certificate request. This can happen as a fraud-protection measure, such as when the
domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.
You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request
was reported as an unsafe domain by VirusTotal.
To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as
suspicious, see Google Help
for Hacked Websites to learn what you can do.
If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.
If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.
INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate
request is not valid. Typically, this is because a domain name in the request is not a valid top-level
domain. Try to request a certificate again, correcting any spelling errors or typos that were in the
failed request, and ensure that all domain names in the request are for valid top-level domains. For
example, you cannot request a certificate for example.invalidpublicdomain because
invalidpublicdomain is not a valid top-level domain.
OTHER - Typically, this failure occurs when there is a typographical error in
one or more of the domain names in the certificate request. Try to request a certificate again,
correcting any spelling errors or typos that were in the failed request.
Certificate.Builder inUseResourceCount(Integer inUseResourceCount)
The number of Lightsail resources that the certificate is attached to.
inUseResourceCount - The number of Lightsail resources that the certificate is attached to.Certificate.Builder keyAlgorithm(String keyAlgorithm)
The algorithm used to generate the key pair (the public and private key) of the certificate.
keyAlgorithm - The algorithm used to generate the key pair (the public and private key) of the certificate.Certificate.Builder createdAt(Instant createdAt)
The timestamp when the certificate was created.
createdAt - The timestamp when the certificate was created.Certificate.Builder issuedAt(Instant issuedAt)
The timestamp when the certificate was issued.
issuedAt - The timestamp when the certificate was issued.Certificate.Builder issuerCA(String issuerCA)
The certificate authority that issued the certificate.
issuerCA - The certificate authority that issued the certificate.Certificate.Builder notBefore(Instant notBefore)
The timestamp when the certificate is first valid.
notBefore - The timestamp when the certificate is first valid.Certificate.Builder notAfter(Instant notAfter)
The timestamp when the certificate expires.
notAfter - The timestamp when the certificate expires.Certificate.Builder eligibleToRenew(String eligibleToRenew)
The renewal eligibility of the certificate.
eligibleToRenew - The renewal eligibility of the certificate.Certificate.Builder renewalSummary(RenewalSummary renewalSummary)
An object that describes the status of the certificate renewal managed by Lightsail.
renewalSummary - An object that describes the status of the certificate renewal managed by Lightsail.default Certificate.Builder renewalSummary(Consumer<RenewalSummary.Builder> renewalSummary)
An object that describes the status of the certificate renewal managed by Lightsail.
This is a convenience that creates an instance of theRenewalSummary.Builder avoiding the need to
create one manually via RenewalSummary.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to renewalSummary(RenewalSummary).renewalSummary - a consumer that will call methods on RenewalSummary.BuilderrenewalSummary(RenewalSummary)Certificate.Builder revokedAt(Instant revokedAt)
The timestamp when the certificate was revoked. This value is present only when the certificate status is
REVOKED.
revokedAt - The timestamp when the certificate was revoked. This value is present only when the certificate status
is REVOKED.Certificate.Builder revocationReason(String revocationReason)
The reason the certificate was revoked. This value is present only when the certificate status is
REVOKED.
revocationReason - The reason the certificate was revoked. This value is present only when the certificate status is
REVOKED.Certificate.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Lightsail Dev
Guide.Certificate.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Lightsail Dev
Guide.Certificate.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) Certificate.Builder supportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail certificate. This code enables our support team to look up your Lightsail information more easily.
supportCode - The support code. Include this code in your email to support when you have questions about your
Lightsail certificate. This code enables our support team to look up your Lightsail information more
easily.Copyright © 2021. All rights reserved.