Class CfnDomainProps.Builder
java.lang.Object
software.amazon.awscdk.services.codeartifact.CfnDomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainProps>
- Enclosing interface:
- CfnDomainProps
@Stability(Stable)
public static final class CfnDomainProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainProps>
A builder for
CfnDomainProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnDomainProps.getDomainName()encryptionKey(String encryptionKey) Sets the value ofCfnDomainProps.getEncryptionKey()permissionsPolicyDocument(Object permissionsPolicyDocument) Sets the value ofCfnDomainProps.getPermissionsPolicyDocument()Sets the value ofCfnDomainProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCfnDomainProps.getDomainName()- Parameters:
domainName- A string that specifies the name of the requested domain. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofCfnDomainProps.getEncryptionKey()- Parameters:
encryptionKey- The key used to encrypt the domain.- Returns:
this
-
permissionsPolicyDocument
@Stability(Stable) public CfnDomainProps.Builder permissionsPolicyDocument(Object permissionsPolicyDocument) Sets the value ofCfnDomainProps.getPermissionsPolicyDocument()- Parameters:
permissionsPolicyDocument- The document that defines the resource policy that is set on a domain.- Returns:
this
-
tags
Sets the value ofCfnDomainProps.getTags()- Parameters:
tags- A list of tags to be applied to the domain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainProps>- Returns:
- a new instance of
CfnDomainProps - Throws:
NullPointerException- if any required attribute was not provided
-