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

com.pulumi.azurenative.chaos.outputs.ContinuousActionResponse 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.KeyValuePairResponse;
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 ContinuousActionResponse {
    /**
     * @return ISO8601 formatted string that represents a duration.
     * 
     */
    private String duration;
    /**
     * @return String that represents a Capability URN.
     * 
     */
    private String name;
    /**
     * @return List of key value pairs.
     * 
     */
    private List parameters;
    /**
     * @return String that represents a selector.
     * 
     */
    private String selectorId;
    /**
     * @return Enum that discriminates between action models.
     * Expected value is 'continuous'.
     * 
     */
    private String type;

    private ContinuousActionResponse() {}
    /**
     * @return ISO8601 formatted string that represents a duration.
     * 
     */
    public String duration() {
        return this.duration;
    }
    /**
     * @return String that represents a Capability URN.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return List of key value pairs.
     * 
     */
    public List parameters() {
        return this.parameters;
    }
    /**
     * @return String that represents a selector.
     * 
     */
    public String selectorId() {
        return this.selectorId;
    }
    /**
     * @return Enum that discriminates between action models.
     * Expected value is 'continuous'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ContinuousActionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String duration;
        private String name;
        private List parameters;
        private String selectorId;
        private String type;
        public Builder() {}
        public Builder(ContinuousActionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.duration = defaults.duration;
    	      this.name = defaults.name;
    	      this.parameters = defaults.parameters;
    	      this.selectorId = defaults.selectorId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder duration(String duration) {
            if (duration == null) {
              throw new MissingRequiredPropertyException("ContinuousActionResponse", "duration");
            }
            this.duration = duration;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ContinuousActionResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(List parameters) {
            if (parameters == null) {
              throw new MissingRequiredPropertyException("ContinuousActionResponse", "parameters");
            }
            this.parameters = parameters;
            return this;
        }
        public Builder parameters(KeyValuePairResponse... parameters) {
            return parameters(List.of(parameters));
        }
        @CustomType.Setter
        public Builder selectorId(String selectorId) {
            if (selectorId == null) {
              throw new MissingRequiredPropertyException("ContinuousActionResponse", "selectorId");
            }
            this.selectorId = selectorId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ContinuousActionResponse", "type");
            }
            this.type = type;
            return this;
        }
        public ContinuousActionResponse build() {
            final var _resultValue = new ContinuousActionResponse();
            _resultValue.duration = duration;
            _resultValue.name = name;
            _resultValue.parameters = parameters;
            _resultValue.selectorId = selectorId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy