com.pulumi.googlenative.compute.alpha.outputs.ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse 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.googlenative.compute.alpha.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse {
/**
* @return Maximum age of the snapshot that is allowed to be kept.
*
*/
private Integer maxRetentionDays;
private String onPolicySwitch;
/**
* @return Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
*
*/
private String onSourceDiskDelete;
private ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse() {}
/**
* @return Maximum age of the snapshot that is allowed to be kept.
*
*/
public Integer maxRetentionDays() {
return this.maxRetentionDays;
}
public String onPolicySwitch() {
return this.onPolicySwitch;
}
/**
* @return Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
*
*/
public String onSourceDiskDelete() {
return this.onSourceDiskDelete;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer maxRetentionDays;
private String onPolicySwitch;
private String onSourceDiskDelete;
public Builder() {}
public Builder(ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.maxRetentionDays = defaults.maxRetentionDays;
this.onPolicySwitch = defaults.onPolicySwitch;
this.onSourceDiskDelete = defaults.onSourceDiskDelete;
}
@CustomType.Setter
public Builder maxRetentionDays(Integer maxRetentionDays) {
this.maxRetentionDays = Objects.requireNonNull(maxRetentionDays);
return this;
}
@CustomType.Setter
public Builder onPolicySwitch(String onPolicySwitch) {
this.onPolicySwitch = Objects.requireNonNull(onPolicySwitch);
return this;
}
@CustomType.Setter
public Builder onSourceDiskDelete(String onSourceDiskDelete) {
this.onSourceDiskDelete = Objects.requireNonNull(onSourceDiskDelete);
return this;
}
public ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse build() {
final var o = new ResourcePolicySnapshotSchedulePolicyRetentionPolicyResponse();
o.maxRetentionDays = maxRetentionDays;
o.onPolicySwitch = onPolicySwitch;
o.onSourceDiskDelete = onSourceDiskDelete;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy