Interface CreateLedgerResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>
,QldbResponse.Builder
,SdkBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateLedgerResponse
public static interface CreateLedgerResponse.Builder extends QldbResponse.Builder, SdkPojo, CopyableBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateLedgerResponse.Builder
arn(String arn)
The Amazon Resource Name (ARN) for the ledger.CreateLedgerResponse.Builder
creationDateTime(Instant creationDateTime)
The date and time, in epoch time format, when the ledger was created.CreateLedgerResponse.Builder
deletionProtection(Boolean deletionProtection)
Specifies whether the ledger is protected from being deleted by any user.CreateLedgerResponse.Builder
kmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest.CreateLedgerResponse.Builder
name(String name)
The name of the ledger.CreateLedgerResponse.Builder
permissionsMode(String permissionsMode)
The permissions mode of the ledger that you created.CreateLedgerResponse.Builder
permissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger that you created.CreateLedgerResponse.Builder
state(String state)
The current status of the ledger.CreateLedgerResponse.Builder
state(LedgerState state)
The current status of the ledger.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.qldb.model.QldbResponse.Builder
build, responseMetadata, responseMetadata
-
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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
name
CreateLedgerResponse.Builder name(String name)
The name of the ledger.
- Parameters:
name
- The name of the ledger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
CreateLedgerResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) for the ledger.
- Parameters:
arn
- The Amazon Resource Name (ARN) for the ledger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
CreateLedgerResponse.Builder state(String state)
The current status of the ledger.
- Parameters:
state
- The current status of the ledger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LedgerState
,LedgerState
-
state
CreateLedgerResponse.Builder state(LedgerState state)
The current status of the ledger.
- Parameters:
state
- The current status of the ledger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LedgerState
,LedgerState
-
creationDateTime
CreateLedgerResponse.Builder creationDateTime(Instant creationDateTime)
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
- Parameters:
creationDateTime
- The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsMode
CreateLedgerResponse.Builder permissionsMode(String permissionsMode)
The permissions mode of the ledger that you created.
- Parameters:
permissionsMode
- The permissions mode of the ledger that you created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionsMode
,PermissionsMode
-
permissionsMode
CreateLedgerResponse.Builder permissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger that you created.
- Parameters:
permissionsMode
- The permissions mode of the ledger that you created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionsMode
,PermissionsMode
-
deletionProtection
CreateLedgerResponse.Builder deletionProtection(Boolean deletionProtection)
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (
true
) by default.If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the
UpdateLedger
operation to set this parameter tofalse
.- Parameters:
deletionProtection
- Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the
UpdateLedger
operation to set this parameter tofalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
CreateLedgerResponse.Builder kmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
- Parameters:
kmsKeyArn
- The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-