Class RevokeCertificateRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.acmpca.model.AcmPcaRequest
-
- software.amazon.awssdk.services.acmpca.model.RevokeCertificateRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RevokeCertificateRequest.Builder,RevokeCertificateRequest>
@Generated("software.amazon.awssdk:codegen") public final class RevokeCertificateRequest extends AcmPcaRequest implements ToCopyableBuilder<RevokeCertificateRequest.Builder,RevokeCertificateRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRevokeCertificateRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RevokeCertificateRequest.Builderbuilder()StringcertificateAuthorityArn()Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked.StringcertificateSerial()Serial number of the certificate to be revoked.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RevocationReasonrevocationReason()Specifies why you revoked the certificate.StringrevocationReasonAsString()Specifies why you revoked the certificate.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RevokeCertificateRequest.Builder>serializableBuilderClass()RevokeCertificateRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
certificateAuthorityArn
public final 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- Returns:
- 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
-
certificateSerial
public final 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 action 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 -nooutYou can also copy the serial number from the console or use the DescribeCertificate action in the Certificate Manager API Reference.
- Returns:
- 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 action 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 -nooutYou can also copy the serial number from the console or use the DescribeCertificate action in the Certificate Manager API Reference.
-
revocationReason
public final RevocationReason revocationReason()
Specifies why you revoked the certificate.
If the service returns an enum value that is not available in the current SDK version,
revocationReasonwill returnRevocationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrevocationReasonAsString().- Returns:
- Specifies why you revoked the certificate.
- See Also:
RevocationReason
-
revocationReasonAsString
public final String revocationReasonAsString()
Specifies why you revoked the certificate.
If the service returns an enum value that is not available in the current SDK version,
revocationReasonwill returnRevocationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrevocationReasonAsString().- Returns:
- Specifies why you revoked the certificate.
- See Also:
RevocationReason
-
toBuilder
public RevokeCertificateRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RevokeCertificateRequest.Builder,RevokeCertificateRequest>- Specified by:
toBuilderin classAcmPcaRequest
-
builder
public static RevokeCertificateRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends RevokeCertificateRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-