Interface DescribeServiceErrorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeServiceErrorsResponse.Builder,
,DescribeServiceErrorsResponse> OpsWorksResponse.Builder
,SdkBuilder<DescribeServiceErrorsResponse.Builder,
,DescribeServiceErrorsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeServiceErrorsResponse
public static interface DescribeServiceErrorsResponse.Builder
extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribeServiceErrorsResponse.Builder,DescribeServiceErrorsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserviceErrors
(Collection<ServiceError> serviceErrors) An array ofServiceError
objects that describe the specified service errors.serviceErrors
(Consumer<ServiceError.Builder>... serviceErrors) An array ofServiceError
objects that describe the specified service errors.serviceErrors
(ServiceError... serviceErrors) An array ofServiceError
objects that describe the specified service errors.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
serviceErrors
An array of
ServiceError
objects that describe the specified service errors.- Parameters:
serviceErrors
- An array ofServiceError
objects that describe the specified service errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceErrors
An array of
ServiceError
objects that describe the specified service errors.- Parameters:
serviceErrors
- An array ofServiceError
objects that describe the specified service errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceErrors
DescribeServiceErrorsResponse.Builder serviceErrors(Consumer<ServiceError.Builder>... serviceErrors) An array of
This is a convenience method that creates an instance of theServiceError
objects that describe the specified service errors.ServiceError.Builder
avoiding the need to create one manually viaServiceError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceErrors(List<ServiceError>)
.- Parameters:
serviceErrors
- a consumer that will call methods onServiceError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-