com.pulumi.azurenative.batch.outputs.AutoScaleRunResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.batch.outputs;
import com.pulumi.azurenative.batch.outputs.AutoScaleRunErrorResponse;
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 AutoScaleRunResponse {
private @Nullable AutoScaleRunErrorResponse error;
private String evaluationTime;
/**
* @return Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
*
*/
private @Nullable String results;
private AutoScaleRunResponse() {}
public Optional error() {
return Optional.ofNullable(this.error);
}
public String evaluationTime() {
return this.evaluationTime;
}
/**
* @return Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
*
*/
public Optional results() {
return Optional.ofNullable(this.results);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoScaleRunResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AutoScaleRunErrorResponse error;
private String evaluationTime;
private @Nullable String results;
public Builder() {}
public Builder(AutoScaleRunResponse defaults) {
Objects.requireNonNull(defaults);
this.error = defaults.error;
this.evaluationTime = defaults.evaluationTime;
this.results = defaults.results;
}
@CustomType.Setter
public Builder error(@Nullable AutoScaleRunErrorResponse error) {
this.error = error;
return this;
}
@CustomType.Setter
public Builder evaluationTime(String evaluationTime) {
if (evaluationTime == null) {
throw new MissingRequiredPropertyException("AutoScaleRunResponse", "evaluationTime");
}
this.evaluationTime = evaluationTime;
return this;
}
@CustomType.Setter
public Builder results(@Nullable String results) {
this.results = results;
return this;
}
public AutoScaleRunResponse build() {
final var _resultValue = new AutoScaleRunResponse();
_resultValue.error = error;
_resultValue.evaluationTime = evaluationTime;
_resultValue.results = results;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy