Class KeyGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.KeyGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeyGroupProps>
- Enclosing interface:
KeyGroupProps
@Stability(Stable)
public static final class KeyGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<KeyGroupProps>
A builder for
KeyGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofKeyGroupProps.getComment()
items
(List<? extends IPublicKey> items) Sets the value ofKeyGroupProps.getItems()
keyGroupName
(String keyGroupName) Sets the value ofKeyGroupProps.getKeyGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
items
Sets the value ofKeyGroupProps.getItems()
- Parameters:
items
- A list of public keys to add to the key group. This parameter is required.- Returns:
this
-
comment
Sets the value ofKeyGroupProps.getComment()
- Parameters:
comment
- A comment to describe the key group.- Returns:
this
-
keyGroupName
Sets the value ofKeyGroupProps.getKeyGroupName()
- Parameters:
keyGroupName
- A name to identify the key group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KeyGroupProps>
- Returns:
- a new instance of
KeyGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-