Class CfnPublicKey.PublicKeyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnPublicKey.PublicKeyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublicKey.PublicKeyConfigProperty>
- Enclosing interface:
CfnPublicKey.PublicKeyConfigProperty
@Stability(Stable)
public static final class CfnPublicKey.PublicKeyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublicKey.PublicKeyConfigProperty>
A builder for
CfnPublicKey.PublicKeyConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.callerReference(String callerReference) Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getCallerReference()Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getComment()encodedKey(String encodedKey) Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getEncodedKey()Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
callerReference
@Stability(Stable) public CfnPublicKey.PublicKeyConfigProperty.Builder callerReference(String callerReference) Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getCallerReference()- Parameters:
callerReference- A string included in the request to help make sure that the request can't be replayed. This parameter is required.- Returns:
this
-
encodedKey
@Stability(Stable) public CfnPublicKey.PublicKeyConfigProperty.Builder encodedKey(String encodedKey) Sets the value ofCfnPublicKey.PublicKeyConfigProperty.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.- Returns:
this
-
name
Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getName()- Parameters:
name- A name to help identify the public key. This parameter is required.- Returns:
this
-
comment
Sets the value ofCfnPublicKey.PublicKeyConfigProperty.getComment()- Parameters:
comment- A comment to describe the public key. The comment cannot be longer than 128 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublicKey.PublicKeyConfigProperty>- Returns:
- a new instance of
CfnPublicKey.PublicKeyConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-