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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeKeyPairsResponse.BuilderkeyPairs(Collection<KeyPairInfo> keyPairs)Information about the key pairs.DescribeKeyPairsResponse.BuilderkeyPairs(Consumer<KeyPairInfo.Builder>... keyPairs)Information about the key pairs.DescribeKeyPairsResponse.BuilderkeyPairs(KeyPairInfo... keyPairs)Information about the key pairs.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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 Detail
-
keyPairs
DescribeKeyPairsResponse.Builder keyPairs(Collection<KeyPairInfo> 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
DescribeKeyPairsResponse.Builder keyPairs(KeyPairInfo... 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
DescribeKeyPairsResponse.Builder keyPairs(Consumer<KeyPairInfo.Builder>... 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 to#keyPairs(List.) - 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:
#keyPairs(java.util.Collection)
-
-