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

com.pulumi.azurenative.recoveryservices.outputs.InMageBasePolicyDetailsResponse 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.recoveryservices.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InMageBasePolicyDetailsResponse {
    /**
     * @return The app consistent snapshot frequency in minutes.
     * 
     */
    private @Nullable Integer appConsistentFrequencyInMinutes;
    /**
     * @return Gets the class type. Overridden in derived classes.
     * Expected value is 'InMageBasePolicyDetails'.
     * 
     */
    private String instanceType;
    /**
     * @return A value indicating whether multi-VM sync has to be enabled.
     * 
     */
    private @Nullable String multiVmSyncStatus;
    /**
     * @return The duration in minutes until which the recovery points need to be stored.
     * 
     */
    private @Nullable Integer recoveryPointHistory;
    /**
     * @return The recovery point threshold in minutes.
     * 
     */
    private @Nullable Integer recoveryPointThresholdInMinutes;

    private InMageBasePolicyDetailsResponse() {}
    /**
     * @return The app consistent snapshot frequency in minutes.
     * 
     */
    public Optional appConsistentFrequencyInMinutes() {
        return Optional.ofNullable(this.appConsistentFrequencyInMinutes);
    }
    /**
     * @return Gets the class type. Overridden in derived classes.
     * Expected value is 'InMageBasePolicyDetails'.
     * 
     */
    public String instanceType() {
        return this.instanceType;
    }
    /**
     * @return A value indicating whether multi-VM sync has to be enabled.
     * 
     */
    public Optional multiVmSyncStatus() {
        return Optional.ofNullable(this.multiVmSyncStatus);
    }
    /**
     * @return The duration in minutes until which the recovery points need to be stored.
     * 
     */
    public Optional recoveryPointHistory() {
        return Optional.ofNullable(this.recoveryPointHistory);
    }
    /**
     * @return The recovery point threshold in minutes.
     * 
     */
    public Optional recoveryPointThresholdInMinutes() {
        return Optional.ofNullable(this.recoveryPointThresholdInMinutes);
    }

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

    public static Builder builder(InMageBasePolicyDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer appConsistentFrequencyInMinutes;
        private String instanceType;
        private @Nullable String multiVmSyncStatus;
        private @Nullable Integer recoveryPointHistory;
        private @Nullable Integer recoveryPointThresholdInMinutes;
        public Builder() {}
        public Builder(InMageBasePolicyDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appConsistentFrequencyInMinutes = defaults.appConsistentFrequencyInMinutes;
    	      this.instanceType = defaults.instanceType;
    	      this.multiVmSyncStatus = defaults.multiVmSyncStatus;
    	      this.recoveryPointHistory = defaults.recoveryPointHistory;
    	      this.recoveryPointThresholdInMinutes = defaults.recoveryPointThresholdInMinutes;
        }

        @CustomType.Setter
        public Builder appConsistentFrequencyInMinutes(@Nullable Integer appConsistentFrequencyInMinutes) {

            this.appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder instanceType(String instanceType) {
            if (instanceType == null) {
              throw new MissingRequiredPropertyException("InMageBasePolicyDetailsResponse", "instanceType");
            }
            this.instanceType = instanceType;
            return this;
        }
        @CustomType.Setter
        public Builder multiVmSyncStatus(@Nullable String multiVmSyncStatus) {

            this.multiVmSyncStatus = multiVmSyncStatus;
            return this;
        }
        @CustomType.Setter
        public Builder recoveryPointHistory(@Nullable Integer recoveryPointHistory) {

            this.recoveryPointHistory = recoveryPointHistory;
            return this;
        }
        @CustomType.Setter
        public Builder recoveryPointThresholdInMinutes(@Nullable Integer recoveryPointThresholdInMinutes) {

            this.recoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes;
            return this;
        }
        public InMageBasePolicyDetailsResponse build() {
            final var _resultValue = new InMageBasePolicyDetailsResponse();
            _resultValue.appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
            _resultValue.instanceType = instanceType;
            _resultValue.multiVmSyncStatus = multiVmSyncStatus;
            _resultValue.recoveryPointHistory = recoveryPointHistory;
            _resultValue.recoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy