com.pulumi.aws.timestreamwrite.inputs.TableRetentionPropertiesArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
public final class TableRetentionPropertiesArgs extends com.pulumi.resources.ResourceArgs {
public static final TableRetentionPropertiesArgs Empty = new TableRetentionPropertiesArgs();
/**
* The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*
*/
@Import(name="magneticStoreRetentionPeriodInDays", required=true)
private Output magneticStoreRetentionPeriodInDays;
/**
* @return The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*
*/
public Output magneticStoreRetentionPeriodInDays() {
return this.magneticStoreRetentionPeriodInDays;
}
/**
* The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*
*/
@Import(name="memoryStoreRetentionPeriodInHours", required=true)
private Output memoryStoreRetentionPeriodInHours;
/**
* @return The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*
*/
public Output memoryStoreRetentionPeriodInHours() {
return this.memoryStoreRetentionPeriodInHours;
}
private TableRetentionPropertiesArgs() {}
private TableRetentionPropertiesArgs(TableRetentionPropertiesArgs $) {
this.magneticStoreRetentionPeriodInDays = $.magneticStoreRetentionPeriodInDays;
this.memoryStoreRetentionPeriodInHours = $.memoryStoreRetentionPeriodInHours;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TableRetentionPropertiesArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TableRetentionPropertiesArgs $;
public Builder() {
$ = new TableRetentionPropertiesArgs();
}
public Builder(TableRetentionPropertiesArgs defaults) {
$ = new TableRetentionPropertiesArgs(Objects.requireNonNull(defaults));
}
/**
* @param magneticStoreRetentionPeriodInDays The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*
* @return builder
*
*/
public Builder magneticStoreRetentionPeriodInDays(Output magneticStoreRetentionPeriodInDays) {
$.magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays;
return this;
}
/**
* @param magneticStoreRetentionPeriodInDays The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*
* @return builder
*
*/
public Builder magneticStoreRetentionPeriodInDays(Integer magneticStoreRetentionPeriodInDays) {
return magneticStoreRetentionPeriodInDays(Output.of(magneticStoreRetentionPeriodInDays));
}
/**
* @param memoryStoreRetentionPeriodInHours The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*
* @return builder
*
*/
public Builder memoryStoreRetentionPeriodInHours(Output memoryStoreRetentionPeriodInHours) {
$.memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours;
return this;
}
/**
* @param memoryStoreRetentionPeriodInHours The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*
* @return builder
*
*/
public Builder memoryStoreRetentionPeriodInHours(Integer memoryStoreRetentionPeriodInHours) {
return memoryStoreRetentionPeriodInHours(Output.of(memoryStoreRetentionPeriodInHours));
}
public TableRetentionPropertiesArgs build() {
if ($.magneticStoreRetentionPeriodInDays == null) {
throw new MissingRequiredPropertyException("TableRetentionPropertiesArgs", "magneticStoreRetentionPeriodInDays");
}
if ($.memoryStoreRetentionPeriodInHours == null) {
throw new MissingRequiredPropertyException("TableRetentionPropertiesArgs", "memoryStoreRetentionPeriodInHours");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy