All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.chaos.outputs.StepStatusResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.BranchStatusResponse;
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 StepStatusResponse {
    /**
     * @return The array of branches.
     * 
     */
    private List branches;
    /**
     * @return The value of the status of the step.
     * 
     */
    private String status;
    /**
     * @return The id of the step.
     * 
     */
    private String stepId;
    /**
     * @return The name of the step.
     * 
     */
    private String stepName;

    private StepStatusResponse() {}
    /**
     * @return The array of branches.
     * 
     */
    public List branches() {
        return this.branches;
    }
    /**
     * @return The value of the status of the step.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return The id of the step.
     * 
     */
    public String stepId() {
        return this.stepId;
    }
    /**
     * @return The name of the step.
     * 
     */
    public String stepName() {
        return this.stepName;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(StepStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List branches;
        private String status;
        private String stepId;
        private String stepName;
        public Builder() {}
        public Builder(StepStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.branches = defaults.branches;
    	      this.status = defaults.status;
    	      this.stepId = defaults.stepId;
    	      this.stepName = defaults.stepName;
        }

        @CustomType.Setter
        public Builder branches(List branches) {
            if (branches == null) {
              throw new MissingRequiredPropertyException("StepStatusResponse", "branches");
            }
            this.branches = branches;
            return this;
        }
        public Builder branches(BranchStatusResponse... branches) {
            return branches(List.of(branches));
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("StepStatusResponse", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder stepId(String stepId) {
            if (stepId == null) {
              throw new MissingRequiredPropertyException("StepStatusResponse", "stepId");
            }
            this.stepId = stepId;
            return this;
        }
        @CustomType.Setter
        public Builder stepName(String stepName) {
            if (stepName == null) {
              throw new MissingRequiredPropertyException("StepStatusResponse", "stepName");
            }
            this.stepName = stepName;
            return this;
        }
        public StepStatusResponse build() {
            final var _resultValue = new StepStatusResponse();
            _resultValue.branches = branches;
            _resultValue.status = status;
            _resultValue.stepId = stepId;
            _resultValue.stepName = stepName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy