com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs 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.inputs;
import com.pulumi.azurenative.dataprotection.inputs.AzureBackupRuleArgs;
import com.pulumi.azurenative.dataprotection.inputs.AzureRetentionRuleArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* Rule based backup policy
*
*/
public final class BackupPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final BackupPolicyArgs Empty = new BackupPolicyArgs();
/**
* Type of datasource for the backup management
*
*/
@Import(name="datasourceTypes", required=true)
private Output> datasourceTypes;
/**
* @return Type of datasource for the backup management
*
*/
public Output> datasourceTypes() {
return this.datasourceTypes;
}
/**
* Expected value is 'BackupPolicy'.
*
*/
@Import(name="objectType", required=true)
private Output objectType;
/**
* @return
* Expected value is 'BackupPolicy'.
*
*/
public Output objectType() {
return this.objectType;
}
/**
* Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
*/
@Import(name="policyRules", required=true)
private Output>> policyRules;
/**
* @return Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
*/
public Output>> policyRules() {
return this.policyRules;
}
private BackupPolicyArgs() {}
private BackupPolicyArgs(BackupPolicyArgs $) {
this.datasourceTypes = $.datasourceTypes;
this.objectType = $.objectType;
this.policyRules = $.policyRules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BackupPolicyArgs $;
public Builder() {
$ = new BackupPolicyArgs();
}
public Builder(BackupPolicyArgs defaults) {
$ = new BackupPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param datasourceTypes Type of datasource for the backup management
*
* @return builder
*
*/
public Builder datasourceTypes(Output> datasourceTypes) {
$.datasourceTypes = datasourceTypes;
return this;
}
/**
* @param datasourceTypes Type of datasource for the backup management
*
* @return builder
*
*/
public Builder datasourceTypes(List datasourceTypes) {
return datasourceTypes(Output.of(datasourceTypes));
}
/**
* @param datasourceTypes Type of datasource for the backup management
*
* @return builder
*
*/
public Builder datasourceTypes(String... datasourceTypes) {
return datasourceTypes(List.of(datasourceTypes));
}
/**
* @param objectType
* Expected value is 'BackupPolicy'.
*
* @return builder
*
*/
public Builder objectType(Output objectType) {
$.objectType = objectType;
return this;
}
/**
* @param objectType
* Expected value is 'BackupPolicy'.
*
* @return builder
*
*/
public Builder objectType(String objectType) {
return objectType(Output.of(objectType));
}
/**
* @param policyRules Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
* @return builder
*
*/
public Builder policyRules(Output>> policyRules) {
$.policyRules = policyRules;
return this;
}
/**
* @param policyRules Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
* @return builder
*
*/
public Builder policyRules(List> policyRules) {
return policyRules(Output.of(policyRules));
}
/**
* @param policyRules Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*
* @return builder
*
*/
public Builder policyRules(Either... policyRules) {
return policyRules(List.of(policyRules));
}
public BackupPolicyArgs build() {
if ($.datasourceTypes == null) {
throw new MissingRequiredPropertyException("BackupPolicyArgs", "datasourceTypes");
}
$.objectType = Codegen.stringProp("objectType").output().arg($.objectType).require();
if ($.policyRules == null) {
throw new MissingRequiredPropertyException("BackupPolicyArgs", "policyRules");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy