Interface KeyUsage.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KeyUsage.Builder,
,KeyUsage> SdkBuilder<KeyUsage.Builder,
,KeyUsage> SdkPojo
- Enclosing class:
KeyUsage
@Mutable
@NotThreadSafe
public static interface KeyUsage.Builder
extends SdkPojo, CopyableBuilder<KeyUsage.Builder,KeyUsage>
-
Method Summary
Modifier and TypeMethodDescriptionSets the key usage extension to critical.default KeyUsage.Builder
usageFlags
(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
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
-
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.Builder
avoiding the need to create one manually viaKeyUsageFlags.builder()
.When the
Consumer
completes,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:
-