Interface FinancialRecordError.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FinancialRecordError.Builder,,FinancialRecordError> SdkBuilder<FinancialRecordError.Builder,,FinancialRecordError> SdkPojo
- Enclosing class:
FinancialRecordError
-
Method Summary
Modifier and TypeMethodDescriptionThe error code that indicates why the retrieval failed.code(BatchErrorCode code) The error code that indicates why the retrieval failed.default FinancialRecordError.BuilderThe key of the record that couldn't be retrieved, as you requested it.key(FinancialRecordKey key) The key of the record that couldn't be retrieved, as you requested it.A description of why the operation couldn't retrieve this record.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, sdkFieldNameToField, sdkFields
-
Method Details
-
key
The key of the record that couldn't be retrieved, as you requested it.
- Parameters:
key- The key of the record that couldn't be retrieved, as you requested it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The key of the record that couldn't be retrieved, as you requested it.
This is a convenience method that creates an instance of theFinancialRecordKey.Builderavoiding the need to create one manually viaFinancialRecordKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokey(FinancialRecordKey).- Parameters:
key- a consumer that will call methods onFinancialRecordKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
code
The error code that indicates why the retrieval failed. The following values are valid:
-
NOT_FOUND– No financial record on your account matches the key. -
INTERNAL_ERROR– An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.
- Parameters:
code- The error code that indicates why the retrieval failed. The following values are valid:-
NOT_FOUND– No financial record on your account matches the key. -
INTERNAL_ERROR– An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
code
The error code that indicates why the retrieval failed. The following values are valid:
-
NOT_FOUND– No financial record on your account matches the key. -
INTERNAL_ERROR– An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.
- Parameters:
code- The error code that indicates why the retrieval failed. The following values are valid:-
NOT_FOUND– No financial record on your account matches the key. -
INTERNAL_ERROR– An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
message
A description of why the operation couldn't retrieve this record. The wording can change at any time and isn't localized, so don't parse this value. To handle the error in your code, use
codeinstead.- Parameters:
message- A description of why the operation couldn't retrieve this record. The wording can change at any time and isn't localized, so don't parse this value. To handle the error in your code, usecodeinstead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-