Class PublicKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.PublicKeyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublicKeyProps>
- Enclosing interface:
- PublicKeyProps
@Stability(Stable)
public static final class PublicKeyProps.Builder
extends Object
implements software.amazon.jsii.Builder<PublicKeyProps>
A builder for
PublicKeyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofPublicKeyProps.getComment()encodedKey(String encodedKey) Sets the value ofPublicKeyProps.getEncodedKey()publicKeyName(String publicKeyName) Sets the value ofPublicKeyProps.getPublicKeyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encodedKey
Sets the value ofPublicKeyProps.getEncodedKey()- Parameters:
encodedKey- The public key that you can use with signed URLs and signed cookies, or with field-level encryption. This parameter is required. TheencodedKeyparameter must include-----BEGIN PUBLIC KEY-----and-----END PUBLIC KEY-----lines.- Returns:
this
-
comment
Sets the value ofPublicKeyProps.getComment()- Parameters:
comment- A comment to describe the public key.- Returns:
this
-
publicKeyName
Sets the value ofPublicKeyProps.getPublicKeyName()- Parameters:
publicKeyName- A name to identify the public key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublicKeyProps>- Returns:
- a new instance of
PublicKeyProps - Throws:
NullPointerException- if any required attribute was not provided
-