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

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

There is a newer version: 2.72.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.ExperimentExecutionActionTargetDetailsPropertiesResponse;
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 ActionStatusResponse {
    /**
     * @return The id of the action status.
     * 
     */
    private String actionId;
    /**
     * @return The name of the action status.
     * 
     */
    private String actionName;
    /**
     * @return String that represents the end time of the action.
     * 
     */
    private String endTime;
    /**
     * @return String that represents the start time of the action.
     * 
     */
    private String startTime;
    /**
     * @return The status of the action.
     * 
     */
    private String status;
    /**
     * @return The array of targets.
     * 
     */
    private List targets;

    private ActionStatusResponse() {}
    /**
     * @return The id of the action status.
     * 
     */
    public String actionId() {
        return this.actionId;
    }
    /**
     * @return The name of the action status.
     * 
     */
    public String actionName() {
        return this.actionName;
    }
    /**
     * @return String that represents the end time of the action.
     * 
     */
    public String endTime() {
        return this.endTime;
    }
    /**
     * @return String that represents the start time of the action.
     * 
     */
    public String startTime() {
        return this.startTime;
    }
    /**
     * @return The status of the action.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return The array of targets.
     * 
     */
    public List targets() {
        return this.targets;
    }

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

    public static Builder builder(ActionStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String actionId;
        private String actionName;
        private String endTime;
        private String startTime;
        private String status;
        private List targets;
        public Builder() {}
        public Builder(ActionStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionId = defaults.actionId;
    	      this.actionName = defaults.actionName;
    	      this.endTime = defaults.endTime;
    	      this.startTime = defaults.startTime;
    	      this.status = defaults.status;
    	      this.targets = defaults.targets;
        }

        @CustomType.Setter
        public Builder actionId(String actionId) {
            if (actionId == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "actionId");
            }
            this.actionId = actionId;
            return this;
        }
        @CustomType.Setter
        public Builder actionName(String actionName) {
            if (actionName == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "actionName");
            }
            this.actionName = actionName;
            return this;
        }
        @CustomType.Setter
        public Builder endTime(String endTime) {
            if (endTime == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "endTime");
            }
            this.endTime = endTime;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(String startTime) {
            if (startTime == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "startTime");
            }
            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder targets(List targets) {
            if (targets == null) {
              throw new MissingRequiredPropertyException("ActionStatusResponse", "targets");
            }
            this.targets = targets;
            return this;
        }
        public Builder targets(ExperimentExecutionActionTargetDetailsPropertiesResponse... targets) {
            return targets(List.of(targets));
        }
        public ActionStatusResponse build() {
            final var _resultValue = new ActionStatusResponse();
            _resultValue.actionId = actionId;
            _resultValue.actionName = actionName;
            _resultValue.endTime = endTime;
            _resultValue.startTime = startTime;
            _resultValue.status = status;
            _resultValue.targets = targets;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy