
com.pulumi.azurenative.workloads.outputs.RetentionDurationResponse 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.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 RetentionDurationResponse {
/**
* @return Count of duration types. Retention duration is obtained by the counting the duration type Count times.
* For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
*
*/
private @Nullable Integer count;
/**
* @return Retention duration type of retention policy.
*
*/
private @Nullable String durationType;
private RetentionDurationResponse() {}
/**
* @return Count of duration types. Retention duration is obtained by the counting the duration type Count times.
* For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
*
*/
public Optional count() {
return Optional.ofNullable(this.count);
}
/**
* @return Retention duration type of retention policy.
*
*/
public Optional durationType() {
return Optional.ofNullable(this.durationType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RetentionDurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer count;
private @Nullable String durationType;
public Builder() {}
public Builder(RetentionDurationResponse defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.durationType = defaults.durationType;
}
@CustomType.Setter
public Builder count(@Nullable Integer count) {
this.count = count;
return this;
}
@CustomType.Setter
public Builder durationType(@Nullable String durationType) {
this.durationType = durationType;
return this;
}
public RetentionDurationResponse build() {
final var _resultValue = new RetentionDurationResponse();
_resultValue.count = count;
_resultValue.durationType = durationType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy