public static interface ImportCertificateRequest.Builder extends ACMRequest.Builder, CopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>
Modifier and Type | Method and Description |
---|---|
ImportCertificateRequest.Builder |
certificate(ByteBuffer certificate)
The certificate to import.
|
ImportCertificateRequest.Builder |
certificateArn(String certificateArn)
The Amazon Resource Name
(ARN) of an imported certificate to replace.
|
ImportCertificateRequest.Builder |
certificateChain(ByteBuffer certificateChain)
The certificate chain.
|
ImportCertificateRequest.Builder |
privateKey(ByteBuffer privateKey)
The private key that matches the public key in the certificate.
|
ImportCertificateRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
ImportCertificateRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
build
requestOverrideConfig
copy
apply, build
ImportCertificateRequest.Builder certificateArn(String certificateArn)
The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.
certificateArn
- The Amazon
Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this
field.ImportCertificateRequest.Builder certificate(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).
To preserve immutability, the remaining bytes in the provided buffer will be copied into a new buffer when set.
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).
ImportCertificateRequest.Builder privateKey(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.
To preserve immutability, the remaining bytes in the provided buffer will be copied into a new buffer when set.
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.
ImportCertificateRequest.Builder certificateChain(ByteBuffer certificateChain)
The certificate chain. It must be PEM-encoded.
To preserve immutability, the remaining bytes in the provided buffer will be copied into a new buffer when set.
certificateChain
- The certificate chain. It must be PEM-encoded.ImportCertificateRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.ImportCertificateRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.