com.pulumi.azurenative.workloads.outputs.SqlBackupDataResponse 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.DBBackupPolicyPropertiesResponse;
import com.pulumi.azurenative.workloads.outputs.ExistingRecoveryServicesVaultResponse;
import com.pulumi.azurenative.workloads.outputs.NewRecoveryServicesVaultResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class SqlBackupDataResponse {
/**
* @return Defines the policy properties for database backup.
*
*/
private DBBackupPolicyPropertiesResponse backupPolicy;
/**
* @return The type of backup, VM, SQL or HANA.
* Expected value is 'SQL'.
*
*/
private String backupType;
/**
* @return The properties of the recovery services vault used for backup.
*
*/
private Either recoveryServicesVault;
private SqlBackupDataResponse() {}
/**
* @return Defines the policy properties for database backup.
*
*/
public DBBackupPolicyPropertiesResponse backupPolicy() {
return this.backupPolicy;
}
/**
* @return The type of backup, VM, SQL or HANA.
* Expected value is 'SQL'.
*
*/
public String backupType() {
return this.backupType;
}
/**
* @return The properties of the recovery services vault used for backup.
*
*/
public Either recoveryServicesVault() {
return this.recoveryServicesVault;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SqlBackupDataResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private DBBackupPolicyPropertiesResponse backupPolicy;
private String backupType;
private Either recoveryServicesVault;
public Builder() {}
public Builder(SqlBackupDataResponse defaults) {
Objects.requireNonNull(defaults);
this.backupPolicy = defaults.backupPolicy;
this.backupType = defaults.backupType;
this.recoveryServicesVault = defaults.recoveryServicesVault;
}
@CustomType.Setter
public Builder backupPolicy(DBBackupPolicyPropertiesResponse backupPolicy) {
if (backupPolicy == null) {
throw new MissingRequiredPropertyException("SqlBackupDataResponse", "backupPolicy");
}
this.backupPolicy = backupPolicy;
return this;
}
@CustomType.Setter
public Builder backupType(String backupType) {
if (backupType == null) {
throw new MissingRequiredPropertyException("SqlBackupDataResponse", "backupType");
}
this.backupType = backupType;
return this;
}
@CustomType.Setter
public Builder recoveryServicesVault(Either recoveryServicesVault) {
if (recoveryServicesVault == null) {
throw new MissingRequiredPropertyException("SqlBackupDataResponse", "recoveryServicesVault");
}
this.recoveryServicesVault = recoveryServicesVault;
return this;
}
public SqlBackupDataResponse build() {
final var _resultValue = new SqlBackupDataResponse();
_resultValue.backupPolicy = backupPolicy;
_resultValue.backupType = backupType;
_resultValue.recoveryServicesVault = recoveryServicesVault;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy