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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KeyUsage.Buildercritical(Boolean critical)Sets 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.KeyUsage.BuilderusageFlags(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, sdkFields
-
-
-
-
Method Detail
-
critical
KeyUsage.Builder critical(Boolean 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
KeyUsage.Builder usageFlags(KeyUsageFlags 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
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.
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:
usageFlags(KeyUsageFlags)
-
-