Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* NetApp Snapshot Policy can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:netapp/snapshotPolicy:SnapshotPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotpolicy1
* ```
*
*/
@ResourceType(type="azure:netapp/snapshotPolicy:SnapshotPolicy")
public class SnapshotPolicy extends com.pulumi.resources.CustomResource {
/**
* The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
*
*/
@Export(name="accountName", refs={String.class}, tree="[0]")
private Output accountName;
/**
* @return The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
*
*/
public Output accountName() {
return this.accountName;
}
/**
* Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
*
*/
@Export(name="dailySchedule", refs={SnapshotPolicyDailySchedule.class}, tree="[0]")
private Output* @Nullable */ SnapshotPolicyDailySchedule> dailySchedule;
/**
* @return Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
*
*/
public Output> dailySchedule() {
return Codegen.optional(this.dailySchedule);
}
/**
* Defines that the NetApp Snapshot Policy is enabled or not.
*
*/
@Export(name="enabled", refs={Boolean.class}, tree="[0]")
private Output enabled;
/**
* @return Defines that the NetApp Snapshot Policy is enabled or not.
*
*/
public Output enabled() {
return this.enabled;
}
/**
* Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
*
*/
@Export(name="hourlySchedule", refs={SnapshotPolicyHourlySchedule.class}, tree="[0]")
private Output* @Nullable */ SnapshotPolicyHourlySchedule> hourlySchedule;
/**
* @return Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
*
*/
public Output> hourlySchedule() {
return Codegen.optional(this.hourlySchedule);
}
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
*
*/
@Export(name="monthlySchedule", refs={SnapshotPolicyMonthlySchedule.class}, tree="[0]")
private Output* @Nullable */ SnapshotPolicyMonthlySchedule> monthlySchedule;
/**
* @return Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
*
*/
public Output> monthlySchedule() {
return Codegen.optional(this.monthlySchedule);
}
/**
* The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
*
*/
@Export(name="weeklySchedule", refs={SnapshotPolicyWeeklySchedule.class}, tree="[0]")
private Output* @Nullable */ SnapshotPolicyWeeklySchedule> weeklySchedule;
/**
* @return Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
*
*/
public Output> weeklySchedule() {
return Codegen.optional(this.weeklySchedule);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public SnapshotPolicy(java.lang.String name) {
this(name, SnapshotPolicyArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public SnapshotPolicy(java.lang.String name, SnapshotPolicyArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public SnapshotPolicy(java.lang.String name, SnapshotPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:netapp/snapshotPolicy:SnapshotPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private SnapshotPolicy(java.lang.String name, Output id, @Nullable SnapshotPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:netapp/snapshotPolicy:SnapshotPolicy", name, state, makeResourceOptions(options, id), false);
}
private static SnapshotPolicyArgs makeArgs(SnapshotPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? SnapshotPolicyArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static SnapshotPolicy get(java.lang.String name, Output id, @Nullable SnapshotPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new SnapshotPolicy(name, id, state, options);
}
}