Interface ImportCertificateRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>,SdkBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>,SdkPojo,SdkRequest.Builder,TransferRequest.Builder
- Enclosing class:
- ImportCertificateRequest
public static interface ImportCertificateRequest.Builder extends TransferRequest.Builder, SdkPojo, CopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImportCertificateRequest.BuilderactiveDate(Instant activeDate)An optional date that specifies when the certificate becomes active.ImportCertificateRequest.Buildercertificate(String certificate)ImportCertificateRequest.BuildercertificateChain(String certificateChain)An optional list of certificates that make up the chain for the certificate that's being imported.ImportCertificateRequest.Builderdescription(String description)A short description that helps identify the certificate.ImportCertificateRequest.BuilderinactiveDate(Instant inactiveDate)An optional date that specifies when the certificate becomes inactive.ImportCertificateRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ImportCertificateRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ImportCertificateRequest.BuilderprivateKey(String privateKey)ImportCertificateRequest.Buildertags(Collection<Tag> tags)Key-value pairs that can be used to group and search for certificates.ImportCertificateRequest.Buildertags(Consumer<Tag.Builder>... tags)Key-value pairs that can be used to group and search for certificates.ImportCertificateRequest.Buildertags(Tag... tags)Key-value pairs that can be used to group and search for certificates.ImportCertificateRequest.Builderusage(String usage)Specifies how this certificate is used.ImportCertificateRequest.Builderusage(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 Detail
-
usage
ImportCertificateRequest.Builder usage(String 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:
CertificateUsageType,CertificateUsageType
-
-
usage
ImportCertificateRequest.Builder usage(CertificateUsageType 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:
CertificateUsageType,CertificateUsageType
-
-
certificate
ImportCertificateRequest.Builder certificate(String 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`".
- 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`".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
certificateChain
ImportCertificateRequest.Builder certificateChain(String 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
ImportCertificateRequest.Builder privateKey(String 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
ImportCertificateRequest.Builder activeDate(Instant activeDate)
An optional date that specifies when the certificate becomes active.
- Parameters:
activeDate- An optional date that specifies when the certificate becomes active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inactiveDate
ImportCertificateRequest.Builder inactiveDate(Instant inactiveDate)
An optional date that specifies when the certificate becomes inactive.
- Parameters:
inactiveDate- An optional date that specifies when the certificate becomes inactive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ImportCertificateRequest.Builder description(String 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
ImportCertificateRequest.Builder tags(Collection<Tag> 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
ImportCertificateRequest.Builder tags(Tag... 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
ImportCertificateRequest.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
overrideConfiguration
ImportCertificateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ImportCertificateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-