Interface ShareDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ShareDetails.Builder,ShareDetails>,SdkBuilder<ShareDetails.Builder,ShareDetails>,SdkPojo
- Enclosing class:
- ShareDetails
public static interface ShareDetails.Builder extends SdkPojo, CopyableBuilder<ShareDetails.Builder,ShareDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShareDetails.BuildershareErrors(Collection<ShareError> shareErrors)List of errors.ShareDetails.BuildershareErrors(Consumer<ShareError.Builder>... shareErrors)List of errors.ShareDetails.BuildershareErrors(ShareError... shareErrors)List of errors.ShareDetails.BuildersuccessfulShares(String... successfulShares)List of accounts for whom the operation succeeded.ShareDetails.BuildersuccessfulShares(Collection<String> successfulShares)List of accounts for whom the operation succeeded.-
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 Detail
-
successfulShares
ShareDetails.Builder successfulShares(Collection<String> successfulShares)
List of accounts for whom the operation succeeded.
- Parameters:
successfulShares- List of accounts for whom the operation succeeded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulShares
ShareDetails.Builder successfulShares(String... successfulShares)
List of accounts for whom the operation succeeded.
- Parameters:
successfulShares- List of accounts for whom the operation succeeded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shareErrors
ShareDetails.Builder shareErrors(Collection<ShareError> shareErrors)
List of errors.
- Parameters:
shareErrors- List of errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shareErrors
ShareDetails.Builder shareErrors(ShareError... shareErrors)
List of errors.
- Parameters:
shareErrors- List of errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shareErrors
ShareDetails.Builder shareErrors(Consumer<ShareError.Builder>... shareErrors)
List of errors.
This is a convenience method that creates an instance of theShareError.Builderavoiding the need to create one manually viaShareError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#shareErrors(List.) - Parameters:
shareErrors- a consumer that will call methods onShareError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#shareErrors(java.util.Collection)
-
-