
com.pulumi.azurenative.chaos.outputs.ExperimentPropertiesResponse 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.chaos.outputs;
import com.pulumi.azurenative.chaos.outputs.ListSelectorResponse;
import com.pulumi.azurenative.chaos.outputs.QuerySelectorResponse;
import com.pulumi.azurenative.chaos.outputs.StepResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ExperimentPropertiesResponse {
/**
* @return List of selectors.
*
*/
private List> selectors;
/**
* @return A boolean value that indicates if experiment should be started on creation or not.
*
*/
private @Nullable Boolean startOnCreation;
/**
* @return List of steps.
*
*/
private List steps;
private ExperimentPropertiesResponse() {}
/**
* @return List of selectors.
*
*/
public List> selectors() {
return this.selectors;
}
/**
* @return A boolean value that indicates if experiment should be started on creation or not.
*
*/
public Optional startOnCreation() {
return Optional.ofNullable(this.startOnCreation);
}
/**
* @return List of steps.
*
*/
public List steps() {
return this.steps;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExperimentPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List> selectors;
private @Nullable Boolean startOnCreation;
private List steps;
public Builder() {}
public Builder(ExperimentPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.selectors = defaults.selectors;
this.startOnCreation = defaults.startOnCreation;
this.steps = defaults.steps;
}
@CustomType.Setter
public Builder selectors(List> selectors) {
if (selectors == null) {
throw new MissingRequiredPropertyException("ExperimentPropertiesResponse", "selectors");
}
this.selectors = selectors;
return this;
}
public Builder selectors(Either... selectors) {
return selectors(List.of(selectors));
}
@CustomType.Setter
public Builder startOnCreation(@Nullable Boolean startOnCreation) {
this.startOnCreation = startOnCreation;
return this;
}
@CustomType.Setter
public Builder steps(List steps) {
if (steps == null) {
throw new MissingRequiredPropertyException("ExperimentPropertiesResponse", "steps");
}
this.steps = steps;
return this;
}
public Builder steps(StepResponse... steps) {
return steps(List.of(steps));
}
public ExperimentPropertiesResponse build() {
final var _resultValue = new ExperimentPropertiesResponse();
_resultValue.selectors = selectors;
_resultValue.startOnCreation = startOnCreation;
_resultValue.steps = steps;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy