com.pulumi.azure.recoveryservices.VaultResourceGuardAssociationArgs 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.azure.recoveryservices;
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 VaultResourceGuardAssociationArgs extends com.pulumi.resources.ResourceArgs {
public static final VaultResourceGuardAssociationArgs Empty = new VaultResourceGuardAssociationArgs();
/**
* ID of the Resource Guard which should be associated with. Changing this forces a new resource to be created.
*
*/
@Import(name="resourceGuardId", required=true)
private Output resourceGuardId;
/**
* @return ID of the Resource Guard which should be associated with. Changing this forces a new resource to be created.
*
*/
public Output resourceGuardId() {
return this.resourceGuardId;
}
/**
* ID of the Recovery Services Vault which should be associated with. Changing this forces a new resource to be created.
*
*/
@Import(name="vaultId", required=true)
private Output vaultId;
/**
* @return ID of the Recovery Services Vault which should be associated with. Changing this forces a new resource to be created.
*
*/
public Output vaultId() {
return this.vaultId;
}
private VaultResourceGuardAssociationArgs() {}
private VaultResourceGuardAssociationArgs(VaultResourceGuardAssociationArgs $) {
this.resourceGuardId = $.resourceGuardId;
this.vaultId = $.vaultId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VaultResourceGuardAssociationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VaultResourceGuardAssociationArgs $;
public Builder() {
$ = new VaultResourceGuardAssociationArgs();
}
public Builder(VaultResourceGuardAssociationArgs defaults) {
$ = new VaultResourceGuardAssociationArgs(Objects.requireNonNull(defaults));
}
/**
* @param resourceGuardId ID of the Resource Guard which should be associated with. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGuardId(Output resourceGuardId) {
$.resourceGuardId = resourceGuardId;
return this;
}
/**
* @param resourceGuardId ID of the Resource Guard which should be associated with. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGuardId(String resourceGuardId) {
return resourceGuardId(Output.of(resourceGuardId));
}
/**
* @param vaultId ID of the Recovery Services Vault which should be associated with. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder vaultId(Output vaultId) {
$.vaultId = vaultId;
return this;
}
/**
* @param vaultId ID of the Recovery Services Vault which should be associated with. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder vaultId(String vaultId) {
return vaultId(Output.of(vaultId));
}
public VaultResourceGuardAssociationArgs build() {
if ($.resourceGuardId == null) {
throw new MissingRequiredPropertyException("VaultResourceGuardAssociationArgs", "resourceGuardId");
}
if ($.vaultId == null) {
throw new MissingRequiredPropertyException("VaultResourceGuardAssociationArgs", "vaultId");
}
return $;
}
}
}