@Generated(value="software.amazon.awssdk:codegen") public class ImportCertificateRequest extends ACMRequest implements ToCopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ImportCertificateRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static ImportCertificateRequest.Builder |
builder() |
ByteBuffer |
certificate()
The certificate to import.
|
String |
certificateArn()
The Amazon Resource Name
(ARN) of an imported certificate to replace.
|
ByteBuffer |
certificateChain()
The certificate chain.
|
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() |
ByteBuffer |
privateKey()
The private key that matches the public key in the certificate.
|
static Class<? extends ImportCertificateRequest.Builder> |
serializableBuilderClass() |
ImportCertificateRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String certificateArn()
The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.
public ByteBuffer certificate()
The certificate to import. It must meet the following requirements:
Must be PEM-encoded.
Must contain a 1024-bit or 2048-bit RSA public key.
Must be valid at the time of import. You cannot import a certificate before its validity period begins (the
certificate's NotBefore
date) or after it expires (the certificate's NotAfter
date).
This method will return a new read-only ByteBuffer
each time it is invoked.
Must be PEM-encoded.
Must contain a 1024-bit or 2048-bit RSA public key.
Must be valid at the time of import. You cannot import a certificate before its validity period begins
(the certificate's NotBefore
date) or after it expires (the certificate's
NotAfter
date).
public ByteBuffer privateKey()
The private key that matches the public key in the certificate. It must meet the following requirements:
Must be PEM-encoded.
Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.
This method will return a new read-only ByteBuffer
each time it is invoked.
Must be PEM-encoded.
Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.
public ByteBuffer certificateChain()
The certificate chain. It must be PEM-encoded.
This method will return a new read-only ByteBuffer
each time it is invoked.
public ImportCertificateRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>
toBuilder
in class ACMRequest
public static ImportCertificateRequest.Builder builder()
public static Class<? extends ImportCertificateRequest.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.