Class CfnEmailAddressProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnEmailAddressProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEmailAddressProps>
- Enclosing interface:
CfnEmailAddressProps
@Stability(Stable)
public static final class CfnEmailAddressProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEmailAddressProps>
A builder for
CfnEmailAddressProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnEmailAddressProps.getDescription()
displayName
(String displayName) Sets the value ofCfnEmailAddressProps.getDisplayName()
emailAddress
(String emailAddress) Sets the value ofCfnEmailAddressProps.getEmailAddress()
instanceArn
(String instanceArn) Sets the value ofCfnEmailAddressProps.getInstanceArn()
Sets the value ofCfnEmailAddressProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailAddress
Sets the value ofCfnEmailAddressProps.getEmailAddress()
- Parameters:
emailAddress
- The email address with the instance, in [^\s@]+@[^\s@]+.[^\s@]+ format. This parameter is required.- Returns:
this
-
instanceArn
Sets the value ofCfnEmailAddressProps.getInstanceArn()
- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the instance. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnEmailAddressProps.getDescription()
- Parameters:
description
- The description of the email address.- Returns:
this
-
displayName
Sets the value ofCfnEmailAddressProps.getDisplayName()
- Parameters:
displayName
- The display name of email address.- Returns:
this
-
tags
Sets the value ofCfnEmailAddressProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEmailAddressProps>
- Returns:
- a new instance of
CfnEmailAddressProps
- Throws:
NullPointerException
- if any required attribute was not provided
-