
com.pulumi.azurenative.recoveryservices.inputs.GetProtectionPolicyPlainArgs Maven / Gradle / Ivy
// *** 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.recoveryservices.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetProtectionPolicyPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetProtectionPolicyPlainArgs Empty = new GetProtectionPolicyPlainArgs();
/**
* Backup policy information to be fetched.
*
*/
@Import(name="policyName", required=true)
private String policyName;
/**
* @return Backup policy information to be fetched.
*
*/
public String policyName() {
return this.policyName;
}
/**
* The name of the resource group where the recovery services vault is present.
*
*/
@Import(name="resourceGroupName", required=true)
private String resourceGroupName;
/**
* @return The name of the resource group where the recovery services vault is present.
*
*/
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* The name of the recovery services vault.
*
*/
@Import(name="vaultName", required=true)
private String vaultName;
/**
* @return The name of the recovery services vault.
*
*/
public String vaultName() {
return this.vaultName;
}
private GetProtectionPolicyPlainArgs() {}
private GetProtectionPolicyPlainArgs(GetProtectionPolicyPlainArgs $) {
this.policyName = $.policyName;
this.resourceGroupName = $.resourceGroupName;
this.vaultName = $.vaultName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetProtectionPolicyPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetProtectionPolicyPlainArgs $;
public Builder() {
$ = new GetProtectionPolicyPlainArgs();
}
public Builder(GetProtectionPolicyPlainArgs defaults) {
$ = new GetProtectionPolicyPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param policyName Backup policy information to be fetched.
*
* @return builder
*
*/
public Builder policyName(String policyName) {
$.policyName = policyName;
return this;
}
/**
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param vaultName The name of the recovery services vault.
*
* @return builder
*
*/
public Builder vaultName(String vaultName) {
$.vaultName = vaultName;
return this;
}
public GetProtectionPolicyPlainArgs build() {
if ($.policyName == null) {
throw new MissingRequiredPropertyException("GetProtectionPolicyPlainArgs", "policyName");
}
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetProtectionPolicyPlainArgs", "resourceGroupName");
}
if ($.vaultName == null) {
throw new MissingRequiredPropertyException("GetProtectionPolicyPlainArgs", "vaultName");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy