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 ofServiceErrorobjects that describe the specified service errors.serviceErrors(Consumer<ServiceError.Builder>... serviceErrors) An array ofServiceErrorobjects that describe the specified service errors.serviceErrors(ServiceError... serviceErrors) An array ofServiceErrorobjects that describe the specified service errors.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
serviceErrors
An array of
ServiceErrorobjects that describe the specified service errors.- Parameters:
serviceErrors- An array ofServiceErrorobjects 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
ServiceErrorobjects that describe the specified service errors.- Parameters:
serviceErrors- An array ofServiceErrorobjects 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 theServiceErrorobjects that describe the specified service errors.ServiceError.Builderavoiding the need to create one manually viaServiceError.builder().When the
Consumercompletes,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:
-