All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.netapp.outputs.GetBackupPolicyResult Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.netapp.outputs;

import com.pulumi.azurenative.netapp.outputs.SystemDataResponse;
import com.pulumi.azurenative.netapp.outputs.VolumeBackupsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetBackupPolicyResult {
    /**
     * @return Backup Policy Resource ID
     * 
     */
    private String backupPolicyId;
    /**
     * @return Daily backups count to keep
     * 
     */
    private @Nullable Integer dailyBackupsToKeep;
    /**
     * @return The property to decide policy is enabled or not
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return Monthly backups count to keep
     * 
     */
    private @Nullable Integer monthlyBackupsToKeep;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Azure lifecycle management
     * 
     */
    private String provisioningState;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return A list of volumes assigned to this policy
     * 
     */
    private List volumeBackups;
    /**
     * @return Volumes using current backup policy
     * 
     */
    private Integer volumesAssigned;
    /**
     * @return Weekly backups count to keep
     * 
     */
    private @Nullable Integer weeklyBackupsToKeep;

    private GetBackupPolicyResult() {}
    /**
     * @return Backup Policy Resource ID
     * 
     */
    public String backupPolicyId() {
        return this.backupPolicyId;
    }
    /**
     * @return Daily backups count to keep
     * 
     */
    public Optional dailyBackupsToKeep() {
        return Optional.ofNullable(this.dailyBackupsToKeep);
    }
    /**
     * @return The property to decide policy is enabled or not
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Monthly backups count to keep
     * 
     */
    public Optional monthlyBackupsToKeep() {
        return Optional.ofNullable(this.monthlyBackupsToKeep);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Azure lifecycle management
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return A list of volumes assigned to this policy
     * 
     */
    public List volumeBackups() {
        return this.volumeBackups;
    }
    /**
     * @return Volumes using current backup policy
     * 
     */
    public Integer volumesAssigned() {
        return this.volumesAssigned;
    }
    /**
     * @return Weekly backups count to keep
     * 
     */
    public Optional weeklyBackupsToKeep() {
        return Optional.ofNullable(this.weeklyBackupsToKeep);
    }

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

    public static Builder builder(GetBackupPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String backupPolicyId;
        private @Nullable Integer dailyBackupsToKeep;
        private @Nullable Boolean enabled;
        private String etag;
        private String id;
        private String location;
        private @Nullable Integer monthlyBackupsToKeep;
        private String name;
        private String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        private List volumeBackups;
        private Integer volumesAssigned;
        private @Nullable Integer weeklyBackupsToKeep;
        public Builder() {}
        public Builder(GetBackupPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backupPolicyId = defaults.backupPolicyId;
    	      this.dailyBackupsToKeep = defaults.dailyBackupsToKeep;
    	      this.enabled = defaults.enabled;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.monthlyBackupsToKeep = defaults.monthlyBackupsToKeep;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.volumeBackups = defaults.volumeBackups;
    	      this.volumesAssigned = defaults.volumesAssigned;
    	      this.weeklyBackupsToKeep = defaults.weeklyBackupsToKeep;
        }

        @CustomType.Setter
        public Builder backupPolicyId(String backupPolicyId) {
            if (backupPolicyId == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "backupPolicyId");
            }
            this.backupPolicyId = backupPolicyId;
            return this;
        }
        @CustomType.Setter
        public Builder dailyBackupsToKeep(@Nullable Integer dailyBackupsToKeep) {

            this.dailyBackupsToKeep = dailyBackupsToKeep;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder monthlyBackupsToKeep(@Nullable Integer monthlyBackupsToKeep) {

            this.monthlyBackupsToKeep = monthlyBackupsToKeep;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder volumeBackups(List volumeBackups) {
            if (volumeBackups == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "volumeBackups");
            }
            this.volumeBackups = volumeBackups;
            return this;
        }
        public Builder volumeBackups(VolumeBackupsResponse... volumeBackups) {
            return volumeBackups(List.of(volumeBackups));
        }
        @CustomType.Setter
        public Builder volumesAssigned(Integer volumesAssigned) {
            if (volumesAssigned == null) {
              throw new MissingRequiredPropertyException("GetBackupPolicyResult", "volumesAssigned");
            }
            this.volumesAssigned = volumesAssigned;
            return this;
        }
        @CustomType.Setter
        public Builder weeklyBackupsToKeep(@Nullable Integer weeklyBackupsToKeep) {

            this.weeklyBackupsToKeep = weeklyBackupsToKeep;
            return this;
        }
        public GetBackupPolicyResult build() {
            final var _resultValue = new GetBackupPolicyResult();
            _resultValue.backupPolicyId = backupPolicyId;
            _resultValue.dailyBackupsToKeep = dailyBackupsToKeep;
            _resultValue.enabled = enabled;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.monthlyBackupsToKeep = monthlyBackupsToKeep;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.volumeBackups = volumeBackups;
            _resultValue.volumesAssigned = volumesAssigned;
            _resultValue.weeklyBackupsToKeep = weeklyBackupsToKeep;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy