com.pulumi.azure.chaosstudio.inputs.ExperimentStepArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.chaosstudio.inputs;
import com.pulumi.azure.chaosstudio.inputs.ExperimentStepBranchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class ExperimentStepArgs extends com.pulumi.resources.ResourceArgs {
public static final ExperimentStepArgs Empty = new ExperimentStepArgs();
/**
* One or more `branch` blocks as defined above.
*
*/
@Import(name="branches", required=true)
private Output> branches;
/**
* @return One or more `branch` blocks as defined above.
*
*/
public Output> branches() {
return this.branches;
}
/**
* The name of the Step.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the Step.
*
*/
public Output name() {
return this.name;
}
private ExperimentStepArgs() {}
private ExperimentStepArgs(ExperimentStepArgs $) {
this.branches = $.branches;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExperimentStepArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ExperimentStepArgs $;
public Builder() {
$ = new ExperimentStepArgs();
}
public Builder(ExperimentStepArgs defaults) {
$ = new ExperimentStepArgs(Objects.requireNonNull(defaults));
}
/**
* @param branches One or more `branch` blocks as defined above.
*
* @return builder
*
*/
public Builder branches(Output> branches) {
$.branches = branches;
return this;
}
/**
* @param branches One or more `branch` blocks as defined above.
*
* @return builder
*
*/
public Builder branches(List branches) {
return branches(Output.of(branches));
}
/**
* @param branches One or more `branch` blocks as defined above.
*
* @return builder
*
*/
public Builder branches(ExperimentStepBranchArgs... branches) {
return branches(List.of(branches));
}
/**
* @param name The name of the Step.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the Step.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public ExperimentStepArgs build() {
if ($.branches == null) {
throw new MissingRequiredPropertyException("ExperimentStepArgs", "branches");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("ExperimentStepArgs", "name");
}
return $;
}
}
}