Interface CreatePublicKeyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<CreatePublicKeyResponse.Builder,CreatePublicKeyResponse>
,SdkBuilder<CreatePublicKeyResponse.Builder,CreatePublicKeyResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreatePublicKeyResponse
public static interface CreatePublicKeyResponse.Builder extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<CreatePublicKeyResponse.Builder,CreatePublicKeyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreatePublicKeyResponse.Builder
eTag(String eTag)
The identifier for this version of the public key.CreatePublicKeyResponse.Builder
location(String location)
The URL of the public key.default CreatePublicKeyResponse.Builder
publicKey(Consumer<PublicKey.Builder> publicKey)
The public key.CreatePublicKeyResponse.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
CreatePublicKeyResponse.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 CreatePublicKeyResponse.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)
-
location
CreatePublicKeyResponse.Builder location(String location)
The URL of the public key.
- Parameters:
location
- The URL of the public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
CreatePublicKeyResponse.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.
-
-