// *** 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.gcp.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetResourcePolicySnapshotSchedulePolicyRetentionPolicy {
    private Integer maxRetentionDays;
    private String onSourceDiskDelete;

    private GetResourcePolicySnapshotSchedulePolicyRetentionPolicy() {}
    public Integer maxRetentionDays() {
        return this.maxRetentionDays;
    }
    public String onSourceDiskDelete() {
        return this.onSourceDiskDelete;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetResourcePolicySnapshotSchedulePolicyRetentionPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer maxRetentionDays;
        private String onSourceDiskDelete;
        public Builder() {}
        public Builder(GetResourcePolicySnapshotSchedulePolicyRetentionPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxRetentionDays = defaults.maxRetentionDays;
    	      this.onSourceDiskDelete = defaults.onSourceDiskDelete;
        }

        @CustomType.Setter
        public Builder maxRetentionDays(Integer maxRetentionDays) {
            this.maxRetentionDays = Objects.requireNonNull(maxRetentionDays);
            return this;
        }
        @CustomType.Setter
        public Builder onSourceDiskDelete(String onSourceDiskDelete) {
            this.onSourceDiskDelete = Objects.requireNonNull(onSourceDiskDelete);
            return this;
        }
        public GetResourcePolicySnapshotSchedulePolicyRetentionPolicy build() {
            final var o = new GetResourcePolicySnapshotSchedulePolicyRetentionPolicy();
            o.maxRetentionDays = maxRetentionDays;
            o.onSourceDiskDelete = onSourceDiskDelete;
            return o;
        }
    }
}
