com.pulumi.azurenative.recoveryservices.outputs.InMageRcmPolicyDetailsResponse 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.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 InMageRcmPolicyDetailsResponse {
/**
* @return The app consistent snapshot frequency in minutes.
*
*/
private @Nullable Integer appConsistentFrequencyInMinutes;
/**
* @return The crash consistent snapshot frequency in minutes.
*
*/
private @Nullable Integer crashConsistentFrequencyInMinutes;
/**
* @return A value indicating whether multi-VM sync has to be enabled.
*
*/
private @Nullable String enableMultiVmSync;
/**
* @return Gets the class type. Overridden in derived classes.
* Expected value is 'InMageRcm'.
*
*/
private String instanceType;
/**
* @return The duration in minutes until which the recovery points need to be stored.
*
*/
private @Nullable Integer recoveryPointHistoryInMinutes;
private InMageRcmPolicyDetailsResponse() {}
/**
* @return The app consistent snapshot frequency in minutes.
*
*/
public Optional appConsistentFrequencyInMinutes() {
return Optional.ofNullable(this.appConsistentFrequencyInMinutes);
}
/**
* @return The crash consistent snapshot frequency in minutes.
*
*/
public Optional crashConsistentFrequencyInMinutes() {
return Optional.ofNullable(this.crashConsistentFrequencyInMinutes);
}
/**
* @return A value indicating whether multi-VM sync has to be enabled.
*
*/
public Optional enableMultiVmSync() {
return Optional.ofNullable(this.enableMultiVmSync);
}
/**
* @return Gets the class type. Overridden in derived classes.
* Expected value is 'InMageRcm'.
*
*/
public String instanceType() {
return this.instanceType;
}
/**
* @return The duration in minutes until which the recovery points need to be stored.
*
*/
public Optional recoveryPointHistoryInMinutes() {
return Optional.ofNullable(this.recoveryPointHistoryInMinutes);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InMageRcmPolicyDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer appConsistentFrequencyInMinutes;
private @Nullable Integer crashConsistentFrequencyInMinutes;
private @Nullable String enableMultiVmSync;
private String instanceType;
private @Nullable Integer recoveryPointHistoryInMinutes;
public Builder() {}
public Builder(InMageRcmPolicyDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.appConsistentFrequencyInMinutes = defaults.appConsistentFrequencyInMinutes;
this.crashConsistentFrequencyInMinutes = defaults.crashConsistentFrequencyInMinutes;
this.enableMultiVmSync = defaults.enableMultiVmSync;
this.instanceType = defaults.instanceType;
this.recoveryPointHistoryInMinutes = defaults.recoveryPointHistoryInMinutes;
}
@CustomType.Setter
public Builder appConsistentFrequencyInMinutes(@Nullable Integer appConsistentFrequencyInMinutes) {
this.appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
return this;
}
@CustomType.Setter
public Builder crashConsistentFrequencyInMinutes(@Nullable Integer crashConsistentFrequencyInMinutes) {
this.crashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes;
return this;
}
@CustomType.Setter
public Builder enableMultiVmSync(@Nullable String enableMultiVmSync) {
this.enableMultiVmSync = enableMultiVmSync;
return this;
}
@CustomType.Setter
public Builder instanceType(String instanceType) {
if (instanceType == null) {
throw new MissingRequiredPropertyException("InMageRcmPolicyDetailsResponse", "instanceType");
}
this.instanceType = instanceType;
return this;
}
@CustomType.Setter
public Builder recoveryPointHistoryInMinutes(@Nullable Integer recoveryPointHistoryInMinutes) {
this.recoveryPointHistoryInMinutes = recoveryPointHistoryInMinutes;
return this;
}
public InMageRcmPolicyDetailsResponse build() {
final var _resultValue = new InMageRcmPolicyDetailsResponse();
_resultValue.appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
_resultValue.crashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes;
_resultValue.enableMultiVmSync = enableMultiVmSync;
_resultValue.instanceType = instanceType;
_resultValue.recoveryPointHistoryInMinutes = recoveryPointHistoryInMinutes;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy