Class IntelligentTieringConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.s3.IntelligentTieringConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IntelligentTieringConfiguration>
- Enclosing interface:
IntelligentTieringConfiguration
@Stability(Stable)
public static final class IntelligentTieringConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<IntelligentTieringConfiguration>
A builder for
IntelligentTieringConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveAccessTierTime(Duration archiveAccessTierTime) Sets the value ofIntelligentTieringConfiguration.getArchiveAccessTierTime()build()Builds the configured instance.deepArchiveAccessTierTime(Duration deepArchiveAccessTierTime) Sets the value ofIntelligentTieringConfiguration.getDeepArchiveAccessTierTime()Sets the value ofIntelligentTieringConfiguration.getName()Sets the value ofIntelligentTieringConfiguration.getPrefix()Sets the value ofIntelligentTieringConfiguration.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofIntelligentTieringConfiguration.getName()- Parameters:
name- Configuration name. This parameter is required.- Returns:
this
-
archiveAccessTierTime
@Stability(Stable) public IntelligentTieringConfiguration.Builder archiveAccessTierTime(Duration archiveAccessTierTime) Sets the value ofIntelligentTieringConfiguration.getArchiveAccessTierTime()- Parameters:
archiveAccessTierTime- When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 90 days to the Archive Access tier.- Returns:
this
-
deepArchiveAccessTierTime
@Stability(Stable) public IntelligentTieringConfiguration.Builder deepArchiveAccessTierTime(Duration deepArchiveAccessTierTime) Sets the value ofIntelligentTieringConfiguration.getDeepArchiveAccessTierTime()- Parameters:
deepArchiveAccessTierTime- When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 180 days to the Deep Archive Access tier.- Returns:
this
-
prefix
Sets the value ofIntelligentTieringConfiguration.getPrefix()- Parameters:
prefix- Add a filter to limit the scope of this configuration to a single prefix.- Returns:
this
-
tags
Sets the value ofIntelligentTieringConfiguration.getTags()- Parameters:
tags- You can limit the scope of this rule to the key value pairs added below.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IntelligentTieringConfiguration>- Returns:
- a new instance of
IntelligentTieringConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-