
com.pulumi.azurenative.recoveryservices.outputs.RecoveryPlanScriptActionDetailsResponse 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RecoveryPlanScriptActionDetailsResponse {
/**
* @return The fabric location.
*
*/
private String fabricLocation;
/**
* @return Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
* Expected value is 'ScriptActionDetails'.
*
*/
private String instanceType;
/**
* @return The script path.
*
*/
private String path;
/**
* @return The script timeout.
*
*/
private @Nullable String timeout;
private RecoveryPlanScriptActionDetailsResponse() {}
/**
* @return The fabric location.
*
*/
public String fabricLocation() {
return this.fabricLocation;
}
/**
* @return Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
* Expected value is 'ScriptActionDetails'.
*
*/
public String instanceType() {
return this.instanceType;
}
/**
* @return The script path.
*
*/
public String path() {
return this.path;
}
/**
* @return The script timeout.
*
*/
public Optional timeout() {
return Optional.ofNullable(this.timeout);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RecoveryPlanScriptActionDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String fabricLocation;
private String instanceType;
private String path;
private @Nullable String timeout;
public Builder() {}
public Builder(RecoveryPlanScriptActionDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.fabricLocation = defaults.fabricLocation;
this.instanceType = defaults.instanceType;
this.path = defaults.path;
this.timeout = defaults.timeout;
}
@CustomType.Setter
public Builder fabricLocation(String fabricLocation) {
if (fabricLocation == null) {
throw new MissingRequiredPropertyException("RecoveryPlanScriptActionDetailsResponse", "fabricLocation");
}
this.fabricLocation = fabricLocation;
return this;
}
@CustomType.Setter
public Builder instanceType(String instanceType) {
if (instanceType == null) {
throw new MissingRequiredPropertyException("RecoveryPlanScriptActionDetailsResponse", "instanceType");
}
this.instanceType = instanceType;
return this;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("RecoveryPlanScriptActionDetailsResponse", "path");
}
this.path = path;
return this;
}
@CustomType.Setter
public Builder timeout(@Nullable String timeout) {
this.timeout = timeout;
return this;
}
public RecoveryPlanScriptActionDetailsResponse build() {
final var _resultValue = new RecoveryPlanScriptActionDetailsResponse();
_resultValue.fabricLocation = fabricLocation;
_resultValue.instanceType = instanceType;
_resultValue.path = path;
_resultValue.timeout = timeout;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy