@Generated(value="software.amazon.awssdk:codegen") public final class RevokeCertificateRequest extends AcmPcaRequest implements ToCopyableBuilder<RevokeCertificateRequest.Builder,RevokeCertificateRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
RevokeCertificateRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static RevokeCertificateRequest.Builder |
builder() |
String |
certificateAuthorityArn()
Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked.
|
String |
certificateSerial()
Serial number of the certificate to be revoked.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
RevocationReason |
revocationReason()
Specifies why you revoked the certificate.
|
String |
revocationReasonAsString()
Specifies why you revoked the certificate.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RevokeCertificateRequest.Builder> |
serializableBuilderClass() |
RevokeCertificateRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String certificateAuthorityArn()
Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
public String certificateSerial()
Serial number of the certificate to be revoked. This must be in hexadecimal format. You can retrieve the serial number by calling GetCertificate with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your private CA. The GetCertificate operation retrieves the certificate in the PEM format. You can use the following OpenSSL command to list the certificate in text format and copy the hexadecimal serial number.
openssl x509 -in file_path -text -noout
You can also copy the serial number from the console or use the DescribeCertificate operation in the AWS Certificate Manager API Reference.
openssl x509 -in file_path -text -noout
You can also copy the serial number from the console or use the DescribeCertificate operation in the AWS Certificate Manager API Reference.
public RevocationReason revocationReason()
Specifies why you revoked the certificate.
If the service returns an enum value that is not available in the current SDK version, revocationReason
will return RevocationReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from revocationReasonAsString()
.
RevocationReason
public String revocationReasonAsString()
Specifies why you revoked the certificate.
If the service returns an enum value that is not available in the current SDK version, revocationReason
will return RevocationReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from revocationReasonAsString()
.
RevocationReason
public RevokeCertificateRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RevokeCertificateRequest.Builder,RevokeCertificateRequest>
toBuilder
in class AcmPcaRequest
public static RevokeCertificateRequest.Builder builder()
public static Class<? extends RevokeCertificateRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.