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

com.pulumi.azurenative.network.outputs.ActionResponse 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.network.outputs;

import com.pulumi.azurenative.network.outputs.ParameterResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ActionResponse {
    /**
     * @return List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be added
     * 
     */
    private @Nullable List parameters;
    /**
     * @return Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.'
     * 
     */
    private @Nullable String type;

    private ActionResponse() {}
    /**
     * @return List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be added
     * 
     */
    public List parameters() {
        return this.parameters == null ? List.of() : this.parameters;
    }
    /**
     * @return Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.'
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

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

        @CustomType.Setter
        public Builder parameters(@Nullable List parameters) {

            this.parameters = parameters;
            return this;
        }
        public Builder parameters(ParameterResponse... parameters) {
            return parameters(List.of(parameters));
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public ActionResponse build() {
            final var _resultValue = new ActionResponse();
            _resultValue.parameters = parameters;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy