Interface DescribeInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeInstancesResponse.Builder,
,DescribeInstancesResponse> OpsWorksResponse.Builder
,SdkBuilder<DescribeInstancesResponse.Builder,
,DescribeInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeInstancesResponse
public static interface DescribeInstancesResponse.Builder
extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribeInstancesResponse.Builder,DescribeInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstances
(Collection<Instance> instances) An array ofInstance
objects that describe the instances.instances
(Consumer<Instance.Builder>... instances) An array ofInstance
objects that describe the instances.An array ofInstance
objects that describe the instances.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
-
instances
An array of
Instance
objects that describe the instances.- Parameters:
instances
- An array ofInstance
objects that describe the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
An array of
Instance
objects that describe the instances.- Parameters:
instances
- An array ofInstance
objects that describe the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
An array of
This is a convenience method that creates an instance of theInstance
objects that describe the instances.Instance.Builder
avoiding the need to create one manually viaInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<Instance>)
.- Parameters:
instances
- a consumer that will call methods onInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-