com.pulumi.aws.timestreamwrite.outputs.GetTableRetentionProperty Maven / Gradle / Ivy
// *** 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.timestreamwrite.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class GetTableRetentionProperty {
/**
* @return Duration in days in which the data must be stored in magnetic store.
*
*/
private Integer magneticStoreRetentionPeriodInDays;
/**
* @return Duration in hours in which the data must be stored in memory store.
*
*/
private Integer memoryStoreRetentionPeriodInHours;
private GetTableRetentionProperty() {}
/**
* @return Duration in days in which the data must be stored in magnetic store.
*
*/
public Integer magneticStoreRetentionPeriodInDays() {
return this.magneticStoreRetentionPeriodInDays;
}
/**
* @return Duration in hours in which the data must be stored in memory store.
*
*/
public Integer memoryStoreRetentionPeriodInHours() {
return this.memoryStoreRetentionPeriodInHours;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTableRetentionProperty defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer magneticStoreRetentionPeriodInDays;
private Integer memoryStoreRetentionPeriodInHours;
public Builder() {}
public Builder(GetTableRetentionProperty defaults) {
Objects.requireNonNull(defaults);
this.magneticStoreRetentionPeriodInDays = defaults.magneticStoreRetentionPeriodInDays;
this.memoryStoreRetentionPeriodInHours = defaults.memoryStoreRetentionPeriodInHours;
}
@CustomType.Setter
public Builder magneticStoreRetentionPeriodInDays(Integer magneticStoreRetentionPeriodInDays) {
if (magneticStoreRetentionPeriodInDays == null) {
throw new MissingRequiredPropertyException("GetTableRetentionProperty", "magneticStoreRetentionPeriodInDays");
}
this.magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays;
return this;
}
@CustomType.Setter
public Builder memoryStoreRetentionPeriodInHours(Integer memoryStoreRetentionPeriodInHours) {
if (memoryStoreRetentionPeriodInHours == null) {
throw new MissingRequiredPropertyException("GetTableRetentionProperty", "memoryStoreRetentionPeriodInHours");
}
this.memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours;
return this;
}
public GetTableRetentionProperty build() {
final var _resultValue = new GetTableRetentionProperty();
_resultValue.magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays;
_resultValue.memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy