com.pulumi.aws.rbin.inputs.RuleRetentionPeriodArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.rbin.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class RuleRetentionPeriodArgs extends com.pulumi.resources.ResourceArgs {
public static final RuleRetentionPeriodArgs Empty = new RuleRetentionPeriodArgs();
/**
* The unit of time in which the retention period is measured. Currently, only DAYS is supported.
*
*/
@Import(name="retentionPeriodUnit", required=true)
private Output retentionPeriodUnit;
/**
* @return The unit of time in which the retention period is measured. Currently, only DAYS is supported.
*
*/
public Output retentionPeriodUnit() {
return this.retentionPeriodUnit;
}
/**
* The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
*
*/
@Import(name="retentionPeriodValue", required=true)
private Output retentionPeriodValue;
/**
* @return The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
*
*/
public Output retentionPeriodValue() {
return this.retentionPeriodValue;
}
private RuleRetentionPeriodArgs() {}
private RuleRetentionPeriodArgs(RuleRetentionPeriodArgs $) {
this.retentionPeriodUnit = $.retentionPeriodUnit;
this.retentionPeriodValue = $.retentionPeriodValue;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleRetentionPeriodArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RuleRetentionPeriodArgs $;
public Builder() {
$ = new RuleRetentionPeriodArgs();
}
public Builder(RuleRetentionPeriodArgs defaults) {
$ = new RuleRetentionPeriodArgs(Objects.requireNonNull(defaults));
}
/**
* @param retentionPeriodUnit The unit of time in which the retention period is measured. Currently, only DAYS is supported.
*
* @return builder
*
*/
public Builder retentionPeriodUnit(Output retentionPeriodUnit) {
$.retentionPeriodUnit = retentionPeriodUnit;
return this;
}
/**
* @param retentionPeriodUnit The unit of time in which the retention period is measured. Currently, only DAYS is supported.
*
* @return builder
*
*/
public Builder retentionPeriodUnit(String retentionPeriodUnit) {
return retentionPeriodUnit(Output.of(retentionPeriodUnit));
}
/**
* @param retentionPeriodValue The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
*
* @return builder
*
*/
public Builder retentionPeriodValue(Output retentionPeriodValue) {
$.retentionPeriodValue = retentionPeriodValue;
return this;
}
/**
* @param retentionPeriodValue The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
*
* @return builder
*
*/
public Builder retentionPeriodValue(Integer retentionPeriodValue) {
return retentionPeriodValue(Output.of(retentionPeriodValue));
}
public RuleRetentionPeriodArgs build() {
if ($.retentionPeriodUnit == null) {
throw new MissingRequiredPropertyException("RuleRetentionPeriodArgs", "retentionPeriodUnit");
}
if ($.retentionPeriodValue == null) {
throw new MissingRequiredPropertyException("RuleRetentionPeriodArgs", "retentionPeriodValue");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy