com.pulumi.azure.siterecovery.outputs.GetReplicationRecoveryPlanResult 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.siterecovery.outputs;
import com.pulumi.azure.siterecovery.outputs.GetReplicationRecoveryPlanAzureToAzureSetting;
import com.pulumi.azure.siterecovery.outputs.GetReplicationRecoveryPlanRecoveryGroup;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetReplicationRecoveryPlanResult {
private List azureToAzureSettings;
private String failoverDeploymentModel;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Name of the Action.
*
*/
private String name;
/**
* @return `recovery_group` block defined as below.
*
*/
private List recoveryGroups;
private String recoveryVaultId;
/**
* @return The ID of source fabric to be recovered from.
*
*/
private String sourceRecoveryFabricId;
/**
* @return The ID of target fabric to recover.
*
*/
private String targetRecoveryFabricId;
private GetReplicationRecoveryPlanResult() {}
public List azureToAzureSettings() {
return this.azureToAzureSettings;
}
public String failoverDeploymentModel() {
return this.failoverDeploymentModel;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Name of the Action.
*
*/
public String name() {
return this.name;
}
/**
* @return `recovery_group` block defined as below.
*
*/
public List recoveryGroups() {
return this.recoveryGroups;
}
public String recoveryVaultId() {
return this.recoveryVaultId;
}
/**
* @return The ID of source fabric to be recovered from.
*
*/
public String sourceRecoveryFabricId() {
return this.sourceRecoveryFabricId;
}
/**
* @return The ID of target fabric to recover.
*
*/
public String targetRecoveryFabricId() {
return this.targetRecoveryFabricId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetReplicationRecoveryPlanResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List azureToAzureSettings;
private String failoverDeploymentModel;
private String id;
private String name;
private List recoveryGroups;
private String recoveryVaultId;
private String sourceRecoveryFabricId;
private String targetRecoveryFabricId;
public Builder() {}
public Builder(GetReplicationRecoveryPlanResult defaults) {
Objects.requireNonNull(defaults);
this.azureToAzureSettings = defaults.azureToAzureSettings;
this.failoverDeploymentModel = defaults.failoverDeploymentModel;
this.id = defaults.id;
this.name = defaults.name;
this.recoveryGroups = defaults.recoveryGroups;
this.recoveryVaultId = defaults.recoveryVaultId;
this.sourceRecoveryFabricId = defaults.sourceRecoveryFabricId;
this.targetRecoveryFabricId = defaults.targetRecoveryFabricId;
}
@CustomType.Setter
public Builder azureToAzureSettings(List azureToAzureSettings) {
if (azureToAzureSettings == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "azureToAzureSettings");
}
this.azureToAzureSettings = azureToAzureSettings;
return this;
}
public Builder azureToAzureSettings(GetReplicationRecoveryPlanAzureToAzureSetting... azureToAzureSettings) {
return azureToAzureSettings(List.of(azureToAzureSettings));
}
@CustomType.Setter
public Builder failoverDeploymentModel(String failoverDeploymentModel) {
if (failoverDeploymentModel == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "failoverDeploymentModel");
}
this.failoverDeploymentModel = failoverDeploymentModel;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder recoveryGroups(List recoveryGroups) {
if (recoveryGroups == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "recoveryGroups");
}
this.recoveryGroups = recoveryGroups;
return this;
}
public Builder recoveryGroups(GetReplicationRecoveryPlanRecoveryGroup... recoveryGroups) {
return recoveryGroups(List.of(recoveryGroups));
}
@CustomType.Setter
public Builder recoveryVaultId(String recoveryVaultId) {
if (recoveryVaultId == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "recoveryVaultId");
}
this.recoveryVaultId = recoveryVaultId;
return this;
}
@CustomType.Setter
public Builder sourceRecoveryFabricId(String sourceRecoveryFabricId) {
if (sourceRecoveryFabricId == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "sourceRecoveryFabricId");
}
this.sourceRecoveryFabricId = sourceRecoveryFabricId;
return this;
}
@CustomType.Setter
public Builder targetRecoveryFabricId(String targetRecoveryFabricId) {
if (targetRecoveryFabricId == null) {
throw new MissingRequiredPropertyException("GetReplicationRecoveryPlanResult", "targetRecoveryFabricId");
}
this.targetRecoveryFabricId = targetRecoveryFabricId;
return this;
}
public GetReplicationRecoveryPlanResult build() {
final var _resultValue = new GetReplicationRecoveryPlanResult();
_resultValue.azureToAzureSettings = azureToAzureSettings;
_resultValue.failoverDeploymentModel = failoverDeploymentModel;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.recoveryGroups = recoveryGroups;
_resultValue.recoveryVaultId = recoveryVaultId;
_resultValue.sourceRecoveryFabricId = sourceRecoveryFabricId;
_resultValue.targetRecoveryFabricId = targetRecoveryFabricId;
return _resultValue;
}
}
}