Interface GetPublicKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudFrontResponse.Builder,CopyableBuilder<GetPublicKeyResponse.Builder,,GetPublicKeyResponse> SdkBuilder<GetPublicKeyResponse.Builder,,GetPublicKeyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPublicKeyResponse
@Mutable
@NotThreadSafe
public static interface GetPublicKeyResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<GetPublicKeyResponse.Builder,GetPublicKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier for this version of the public key.default GetPublicKeyResponse.BuilderpublicKey(Consumer<PublicKey.Builder> publicKey) The public key.The public key.Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
publicKey
The public key.
- Parameters:
publicKey- The public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicKey
The public key.
This is a convenience method that creates an instance of thePublicKey.Builderavoiding the need to create one manually viaPublicKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topublicKey(PublicKey).- Parameters:
publicKey- a consumer that will call methods onPublicKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eTag
The identifier for this version of the public key.
- Parameters:
eTag- The identifier for this version of the public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-