Interface DescribeKeyPairsResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CopyableBuilder<DescribeKeyPairsResponse.Builder,,DescribeKeyPairsResponse> Ec2Response.Builder,SdkBuilder<DescribeKeyPairsResponse.Builder,,DescribeKeyPairsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
 DescribeKeyPairsResponse
public static interface DescribeKeyPairsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeKeyPairsResponse.Builder,DescribeKeyPairsResponse> 
- 
Method Summary
Modifier and TypeMethodDescriptionkeyPairs(Collection<KeyPairInfo> keyPairs) Information about the key pairs.keyPairs(Consumer<KeyPairInfo.Builder>... keyPairs) Information about the key pairs.keyPairs(KeyPairInfo... keyPairs) Information about the key pairs.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
- 
keyPairs
Information about the key pairs.
- Parameters:
 keyPairs- Information about the key pairs.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
keyPairs
Information about the key pairs.
- Parameters:
 keyPairs- Information about the key pairs.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
keyPairs
Information about the key pairs.
This is a convenience method that creates an instance of theKeyPairInfo.Builderavoiding the need to create one manually viaKeyPairInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyPairs(List<KeyPairInfo>).- Parameters:
 keyPairs- a consumer that will call methods onKeyPairInfo.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -