com.pulumi.azure.netapp.inputs.SnapshotPolicyDailyScheduleArgs 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.netapp.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 SnapshotPolicyDailyScheduleArgs extends com.pulumi.resources.ResourceArgs {
public static final SnapshotPolicyDailyScheduleArgs Empty = new SnapshotPolicyDailyScheduleArgs();
/**
* Hour of the day that the snapshots will be created, valid range is from 0 to 23.
*
*/
@Import(name="hour", required=true)
private Output hour;
/**
* @return Hour of the day that the snapshots will be created, valid range is from 0 to 23.
*
*/
public Output hour() {
return this.hour;
}
/**
* Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
*
*/
@Import(name="minute", required=true)
private Output minute;
/**
* @return Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
*
*/
public Output minute() {
return this.minute;
}
/**
* How many hourly snapshots to keep, valid range is from 0 to 255.
*
*/
@Import(name="snapshotsToKeep", required=true)
private Output snapshotsToKeep;
/**
* @return How many hourly snapshots to keep, valid range is from 0 to 255.
*
*/
public Output snapshotsToKeep() {
return this.snapshotsToKeep;
}
private SnapshotPolicyDailyScheduleArgs() {}
private SnapshotPolicyDailyScheduleArgs(SnapshotPolicyDailyScheduleArgs $) {
this.hour = $.hour;
this.minute = $.minute;
this.snapshotsToKeep = $.snapshotsToKeep;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SnapshotPolicyDailyScheduleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SnapshotPolicyDailyScheduleArgs $;
public Builder() {
$ = new SnapshotPolicyDailyScheduleArgs();
}
public Builder(SnapshotPolicyDailyScheduleArgs defaults) {
$ = new SnapshotPolicyDailyScheduleArgs(Objects.requireNonNull(defaults));
}
/**
* @param hour Hour of the day that the snapshots will be created, valid range is from 0 to 23.
*
* @return builder
*
*/
public Builder hour(Output hour) {
$.hour = hour;
return this;
}
/**
* @param hour Hour of the day that the snapshots will be created, valid range is from 0 to 23.
*
* @return builder
*
*/
public Builder hour(Integer hour) {
return hour(Output.of(hour));
}
/**
* @param minute Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
*
* @return builder
*
*/
public Builder minute(Output minute) {
$.minute = minute;
return this;
}
/**
* @param minute Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
*
* @return builder
*
*/
public Builder minute(Integer minute) {
return minute(Output.of(minute));
}
/**
* @param snapshotsToKeep How many hourly snapshots to keep, valid range is from 0 to 255.
*
* @return builder
*
*/
public Builder snapshotsToKeep(Output snapshotsToKeep) {
$.snapshotsToKeep = snapshotsToKeep;
return this;
}
/**
* @param snapshotsToKeep How many hourly snapshots to keep, valid range is from 0 to 255.
*
* @return builder
*
*/
public Builder snapshotsToKeep(Integer snapshotsToKeep) {
return snapshotsToKeep(Output.of(snapshotsToKeep));
}
public SnapshotPolicyDailyScheduleArgs build() {
if ($.hour == null) {
throw new MissingRequiredPropertyException("SnapshotPolicyDailyScheduleArgs", "hour");
}
if ($.minute == null) {
throw new MissingRequiredPropertyException("SnapshotPolicyDailyScheduleArgs", "minute");
}
if ($.snapshotsToKeep == null) {
throw new MissingRequiredPropertyException("SnapshotPolicyDailyScheduleArgs", "snapshotsToKeep");
}
return $;
}
}
}