com.pulumi.azurenative.aadiam.outputs.RetentionPolicyResponse 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.
// *** 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.aadiam.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class RetentionPolicyResponse {
/**
* @return The number of days for the retention in days. A value of 0 will retain the events indefinitely.
*
*/
private Integer days;
/**
* @return A value indicating whether the retention policy is enabled.
*
*/
private Boolean enabled;
private RetentionPolicyResponse() {}
/**
* @return The number of days for the retention in days. A value of 0 will retain the events indefinitely.
*
*/
public Integer days() {
return this.days;
}
/**
* @return A value indicating whether the retention policy is enabled.
*
*/
public Boolean enabled() {
return this.enabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RetentionPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer days;
private Boolean enabled;
public Builder() {}
public Builder(RetentionPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.enabled = defaults.enabled;
}
@CustomType.Setter
public Builder days(Integer days) {
if (days == null) {
throw new MissingRequiredPropertyException("RetentionPolicyResponse", "days");
}
this.days = days;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("RetentionPolicyResponse", "enabled");
}
this.enabled = enabled;
return this;
}
public RetentionPolicyResponse build() {
final var _resultValue = new RetentionPolicyResponse();
_resultValue.days = days;
_resultValue.enabled = enabled;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy