Interface GetContainerServicesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetContainerServicesResponse.Builder,
,GetContainerServicesResponse> LightsailResponse.Builder
,SdkBuilder<GetContainerServicesResponse.Builder,
,GetContainerServicesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetContainerServicesResponse
@Mutable
@NotThreadSafe
public static interface GetContainerServicesResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetContainerServicesResponse.Builder,GetContainerServicesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerServices
(Collection<ContainerService> containerServices) An array of objects that describe one or more container services.containerServices
(Consumer<ContainerService.Builder>... containerServices) An array of objects that describe one or more container services.containerServices
(ContainerService... containerServices) An array of objects that describe one or more container services.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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 Details
-
containerServices
GetContainerServicesResponse.Builder containerServices(Collection<ContainerService> containerServices) An array of objects that describe one or more container services.
- Parameters:
containerServices
- An array of objects that describe one or more container services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerServices
An array of objects that describe one or more container services.
- Parameters:
containerServices
- An array of objects that describe one or more container services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerServices
GetContainerServicesResponse.Builder containerServices(Consumer<ContainerService.Builder>... containerServices) An array of objects that describe one or more container services.
This is a convenience method that creates an instance of theContainerService.Builder
avoiding the need to create one manually viaContainerService.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerServices(List<ContainerService>)
.- Parameters:
containerServices
- a consumer that will call methods onContainerService.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-