com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs 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.dataprotection.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs extends com.pulumi.resources.ResourceArgs {
public static final BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs Empty = new BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs();
/**
* The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*
*/
@Import(name="dataStoreType", required=true)
private Output dataStoreType;
/**
* @return The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*
*/
public Output dataStoreType() {
return this.dataStoreType;
}
/**
* The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*
*/
@Import(name="duration", required=true)
private Output duration;
/**
* @return The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*
*/
public Output duration() {
return this.duration;
}
private BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs() {}
private BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs(BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs $) {
this.dataStoreType = $.dataStoreType;
this.duration = $.duration;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs $;
public Builder() {
$ = new BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs();
}
public Builder(BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs defaults) {
$ = new BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs(Objects.requireNonNull(defaults));
}
/**
* @param dataStoreType The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder dataStoreType(Output dataStoreType) {
$.dataStoreType = dataStoreType;
return this;
}
/**
* @param dataStoreType The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder dataStoreType(String dataStoreType) {
return dataStoreType(Output.of(dataStoreType));
}
/**
* @param duration The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
/**
* @param duration The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder duration(String duration) {
return duration(Output.of(duration));
}
public BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs build() {
if ($.dataStoreType == null) {
throw new MissingRequiredPropertyException("BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs", "dataStoreType");
}
if ($.duration == null) {
throw new MissingRequiredPropertyException("BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs", "duration");
}
return $;
}
}
}