com.pulumi.azurenative.workloads.outputs.TieringPolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.workloads.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TieringPolicyResponse {
/**
* @return Number of days/weeks/months/years to retain backups in current tier before tiering.
* Used only if TieringMode is set to TierAfter
*
*/
private @Nullable Integer duration;
/**
* @return Retention duration type: days/weeks/months/years
* Used only if TieringMode is set to TierAfter
*
*/
private @Nullable String durationType;
/**
* @return Tiering Mode to control automatic tiering of recovery points. Supported values are:
* 1. TierRecommended: Tier all recovery points recommended to be tiered
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
* 3. DoNotTier: Do not tier any recovery points
*
*/
private @Nullable String tieringMode;
private TieringPolicyResponse() {}
/**
* @return Number of days/weeks/months/years to retain backups in current tier before tiering.
* Used only if TieringMode is set to TierAfter
*
*/
public Optional duration() {
return Optional.ofNullable(this.duration);
}
/**
* @return Retention duration type: days/weeks/months/years
* Used only if TieringMode is set to TierAfter
*
*/
public Optional durationType() {
return Optional.ofNullable(this.durationType);
}
/**
* @return Tiering Mode to control automatic tiering of recovery points. Supported values are:
* 1. TierRecommended: Tier all recovery points recommended to be tiered
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
* 3. DoNotTier: Do not tier any recovery points
*
*/
public Optional tieringMode() {
return Optional.ofNullable(this.tieringMode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TieringPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer duration;
private @Nullable String durationType;
private @Nullable String tieringMode;
public Builder() {}
public Builder(TieringPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.duration = defaults.duration;
this.durationType = defaults.durationType;
this.tieringMode = defaults.tieringMode;
}
@CustomType.Setter
public Builder duration(@Nullable Integer duration) {
this.duration = duration;
return this;
}
@CustomType.Setter
public Builder durationType(@Nullable String durationType) {
this.durationType = durationType;
return this;
}
@CustomType.Setter
public Builder tieringMode(@Nullable String tieringMode) {
this.tieringMode = tieringMode;
return this;
}
public TieringPolicyResponse build() {
final var _resultValue = new TieringPolicyResponse();
_resultValue.duration = duration;
_resultValue.durationType = durationType;
_resultValue.tieringMode = tieringMode;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy