Interface ImportCertificateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportCertificateRequest.Builder,
,ImportCertificateRequest> SdkBuilder<ImportCertificateRequest.Builder,
,ImportCertificateRequest> SdkPojo
,SdkRequest.Builder
,TransferRequest.Builder
- Enclosing class:
ImportCertificateRequest
-
Method Summary
Modifier and TypeMethodDescriptionactiveDate
(Instant activeDate) An optional date that specifies when the certificate becomes active.certificate
(String certificate) certificateChain
(String certificateChain) An optional list of certificates that make up the chain for the certificate that's being imported.description
(String description) A short description that helps identify the certificate.inactiveDate
(Instant inactiveDate) An optional date that specifies when the certificate becomes inactive.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.privateKey
(String privateKey) tags
(Collection<Tag> tags) Key-value pairs that can be used to group and search for certificates.tags
(Consumer<Tag.Builder>... tags) Key-value pairs that can be used to group and search for certificates.Key-value pairs that can be used to group and search for certificates.Specifies how this certificate is used.usage
(CertificateUsageType usage) Specifies how this certificate is used.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.transfer.model.TransferRequest.Builder
build
-
Method Details
-
usage
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
- Parameters:
usage
- Specifies how this certificate is used. It can be used in the following ways:-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
usage
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
- Parameters:
usage
- Specifies how this certificate is used. It can be used in the following ways:-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
certificate
-
For the CLI, provide a file path for a certificate in URI format. For example,
--certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content. -
For the SDK, specify the raw content of a certificate file. For example,
--certificate "`cat encryption-cert.pem`"
.
You can provide both the certificate and its chain in this parameter, without needing to use the
CertificateChain
parameter. If you use this parameter for both the certificate and its chain, do not use theCertificateChain
parameter.- Parameters:
certificate
-For the CLI, provide a file path for a certificate in URI format. For example,
--certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.For the SDK, specify the raw content of a certificate file. For example,
--certificate "`cat encryption-cert.pem`"
.You can provide both the certificate and its chain in this parameter, without needing to use the
CertificateChain
parameter. If you use this parameter for both the certificate and its chain, do not use theCertificateChain
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
certificateChain
An optional list of certificates that make up the chain for the certificate that's being imported.
- Parameters:
certificateChain
- An optional list of certificates that make up the chain for the certificate that's being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKey
-
For the CLI, provide a file path for a private key in URI format. For example,
--private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the private key file. -
For the SDK, specify the raw content of a private key file. For example,
--private-key "`cat encryption-key.pem`"
- Parameters:
privateKey
-For the CLI, provide a file path for a private key in URI format. For example,
--private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the private key file.For the SDK, specify the raw content of a private key file. For example,
--private-key "`cat encryption-key.pem`"
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
activeDate
An optional date that specifies when the certificate becomes active. If you do not specify a value,
ActiveDate
takes the same value asNotBeforeDate
, which is specified by the CA.- Parameters:
activeDate
- An optional date that specifies when the certificate becomes active. If you do not specify a value,ActiveDate
takes the same value asNotBeforeDate
, which is specified by the CA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inactiveDate
An optional date that specifies when the certificate becomes inactive. If you do not specify a value,
InactiveDate
takes the same value asNotAfterDate
, which is specified by the CA.- Parameters:
inactiveDate
- An optional date that specifies when the certificate becomes inactive. If you do not specify a value,InactiveDate
takes the same value asNotAfterDate
, which is specified by the CA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A short description that helps identify the certificate.
- Parameters:
description
- A short description that helps identify the certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for certificates.
- Parameters:
tags
- Key-value pairs that can be used to group and search for certificates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for certificates.
- Parameters:
tags
- Key-value pairs that can be used to group and search for certificates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for certificates.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ImportCertificateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportCertificateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-