Interface GetPublicKeyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<GetPublicKeyResponse.Builder,GetPublicKeyResponse>
,SdkBuilder<GetPublicKeyResponse.Builder,GetPublicKeyResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetPublicKeyResponse
public static interface GetPublicKeyResponse.Builder extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<GetPublicKeyResponse.Builder,GetPublicKeyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetPublicKeyResponse.Builder
eTag(String eTag)
The identifier for this version of the public key.default GetPublicKeyResponse.Builder
publicKey(Consumer<PublicKey.Builder> publicKey)
The public key.GetPublicKeyResponse.Builder
publicKey(PublicKey publicKey)
The public key.-
Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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 Detail
-
publicKey
GetPublicKeyResponse.Builder publicKey(PublicKey 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
default GetPublicKeyResponse.Builder publicKey(Consumer<PublicKey.Builder> publicKey)
The public key.
This is a convenience method that creates an instance of thePublicKey.Builder
avoiding the need to create one manually viaPublicKey.builder()
.When the
Consumer
completes,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:
publicKey(PublicKey)
-
eTag
GetPublicKeyResponse.Builder eTag(String 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.
-
-