Interface KeyUsage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<KeyUsage.Builder,,KeyUsage> SdkBuilder<KeyUsage.Builder,,KeyUsage> SdkPojo
- Enclosing class:
KeyUsage
public static interface KeyUsage.Builder
extends SdkPojo, CopyableBuilder<KeyUsage.Builder,KeyUsage>
-
Method Summary
Modifier and TypeMethodDescriptionSets the key usage extension to critical.default KeyUsage.BuilderusageFlags(Consumer<KeyUsageFlags.Builder> usageFlags) The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.usageFlags(KeyUsageFlags usageFlags) The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
critical
Sets the key usage extension to critical.
- Parameters:
critical- Sets the key usage extension to critical.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageFlags
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
- Parameters:
usageFlags- The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageFlags
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
This is a convenience method that creates an instance of theKeyUsageFlags.Builderavoiding the need to create one manually viaKeyUsageFlags.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousageFlags(KeyUsageFlags).- Parameters:
usageFlags- a consumer that will call methods onKeyUsageFlags.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-