com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionDailyArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.backup.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
public final class PolicyVMWorkloadProtectionPolicyRetentionDailyArgs extends com.pulumi.resources.ResourceArgs {
public static final PolicyVMWorkloadProtectionPolicyRetentionDailyArgs Empty = new PolicyVMWorkloadProtectionPolicyRetentionDailyArgs();
/**
* The number of daily backups to keep. Possible values are between `7` and `9999`.
*
*/
@Import(name="count", required=true)
private Output count;
/**
* @return The number of daily backups to keep. Possible values are between `7` and `9999`.
*
*/
public Output count() {
return this.count;
}
private PolicyVMWorkloadProtectionPolicyRetentionDailyArgs() {}
private PolicyVMWorkloadProtectionPolicyRetentionDailyArgs(PolicyVMWorkloadProtectionPolicyRetentionDailyArgs $) {
this.count = $.count;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyVMWorkloadProtectionPolicyRetentionDailyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private PolicyVMWorkloadProtectionPolicyRetentionDailyArgs $;
public Builder() {
$ = new PolicyVMWorkloadProtectionPolicyRetentionDailyArgs();
}
public Builder(PolicyVMWorkloadProtectionPolicyRetentionDailyArgs defaults) {
$ = new PolicyVMWorkloadProtectionPolicyRetentionDailyArgs(Objects.requireNonNull(defaults));
}
/**
* @param count The number of daily backups to keep. Possible values are between `7` and `9999`.
*
* @return builder
*
*/
public Builder count(Output count) {
$.count = count;
return this;
}
/**
* @param count The number of daily backups to keep. Possible values are between `7` and `9999`.
*
* @return builder
*
*/
public Builder count(Integer count) {
return count(Output.of(count));
}
public PolicyVMWorkloadProtectionPolicyRetentionDailyArgs build() {
if ($.count == null) {
throw new MissingRequiredPropertyException("PolicyVMWorkloadProtectionPolicyRetentionDailyArgs", "count");
}
return $;
}
}
}