Class CfnMailManagerArchiveMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerArchiveMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerArchiveMixinProps>
- Enclosing interface:
CfnMailManagerArchiveMixinProps
@Stability(Stable)
public static final class CfnMailManagerArchiveMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerArchiveMixinProps>
A builder for
CfnMailManagerArchiveMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveName(String archiveName) Sets the value ofCfnMailManagerArchiveMixinProps.getArchiveName()build()Builds the configured instance.Sets the value ofCfnMailManagerArchiveMixinProps.getKmsKeyArn()Sets the value ofCfnMailManagerArchiveMixinProps.getRetention()retention(IResolvable retention) Sets the value ofCfnMailManagerArchiveMixinProps.getRetention()Sets the value ofCfnMailManagerArchiveMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
archiveName
Sets the value ofCfnMailManagerArchiveMixinProps.getArchiveName()- Parameters:
archiveName- A unique name for the new archive.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnMailManagerArchiveMixinProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.- Returns:
this
-
retention
Sets the value ofCfnMailManagerArchiveMixinProps.getRetention()- Parameters:
retention- The period for retaining emails in the archive before automatic deletion.- Returns:
this
-
retention
@Stability(Stable) public CfnMailManagerArchiveMixinProps.Builder retention(CfnMailManagerArchivePropsMixin.ArchiveRetentionProperty retention) Sets the value ofCfnMailManagerArchiveMixinProps.getRetention()- Parameters:
retention- The period for retaining emails in the archive before automatic deletion.- Returns:
this
-
tags
Sets the value ofCfnMailManagerArchiveMixinProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerArchiveMixinProps>- Returns:
- a new instance of
CfnMailManagerArchiveMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-