com.pulumi.azurenative.dataprotection.outputs.BackupPolicyResponse 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.dataprotection.outputs;
import com.pulumi.azurenative.dataprotection.outputs.AzureBackupRuleResponse;
import com.pulumi.azurenative.dataprotection.outputs.AzureRetentionRuleResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class BackupPolicyResponse {
/**
* @return Type of datasource for the backup management
*
*/
private List datasourceTypes;
/**
* @return
* Expected value is 'BackupPolicy'.
*
*/
private String objectType;
/**
* @return Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
*/
private List> policyRules;
private BackupPolicyResponse() {}
/**
* @return Type of datasource for the backup management
*
*/
public List datasourceTypes() {
return this.datasourceTypes;
}
/**
* @return
* Expected value is 'BackupPolicy'.
*
*/
public String objectType() {
return this.objectType;
}
/**
* @return Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
*/
public List> policyRules() {
return this.policyRules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List datasourceTypes;
private String objectType;
private List> policyRules;
public Builder() {}
public Builder(BackupPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.datasourceTypes = defaults.datasourceTypes;
this.objectType = defaults.objectType;
this.policyRules = defaults.policyRules;
}
@CustomType.Setter
public Builder datasourceTypes(List datasourceTypes) {
if (datasourceTypes == null) {
throw new MissingRequiredPropertyException("BackupPolicyResponse", "datasourceTypes");
}
this.datasourceTypes = datasourceTypes;
return this;
}
public Builder datasourceTypes(String... datasourceTypes) {
return datasourceTypes(List.of(datasourceTypes));
}
@CustomType.Setter
public Builder objectType(String objectType) {
if (objectType == null) {
throw new MissingRequiredPropertyException("BackupPolicyResponse", "objectType");
}
this.objectType = objectType;
return this;
}
@CustomType.Setter
public Builder policyRules(List> policyRules) {
if (policyRules == null) {
throw new MissingRequiredPropertyException("BackupPolicyResponse", "policyRules");
}
this.policyRules = policyRules;
return this;
}
public Builder policyRules(Either... policyRules) {
return policyRules(List.of(policyRules));
}
public BackupPolicyResponse build() {
final var _resultValue = new BackupPolicyResponse();
_resultValue.datasourceTypes = datasourceTypes;
_resultValue.objectType = objectType;
_resultValue.policyRules = policyRules;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy