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

com.pulumi.azurenative.mobilenetwork.outputs.InstallationResponse Maven / Gradle / Ivy

// *** 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.mobilenetwork.outputs;

import com.pulumi.azurenative.mobilenetwork.outputs.AsyncOperationIdResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InstallationResponse {
    /**
     * @return The desired installation state
     * 
     */
    private @Nullable String desiredState;
    /**
     * @return A reference to an in-progress installation operation
     * 
     */
    private AsyncOperationIdResponse operation;
    /**
     * @return Reason(s) for the current installation state of the packet core.
     * 
     */
    private List reasons;
    /**
     * @return Whether a reinstall of the packet core is required to pick up the latest configuration changes.
     * 
     */
    private String reinstallRequired;
    /**
     * @return Installation state
     * 
     */
    private String state;

    private InstallationResponse() {}
    /**
     * @return The desired installation state
     * 
     */
    public Optional desiredState() {
        return Optional.ofNullable(this.desiredState);
    }
    /**
     * @return A reference to an in-progress installation operation
     * 
     */
    public AsyncOperationIdResponse operation() {
        return this.operation;
    }
    /**
     * @return Reason(s) for the current installation state of the packet core.
     * 
     */
    public List reasons() {
        return this.reasons;
    }
    /**
     * @return Whether a reinstall of the packet core is required to pick up the latest configuration changes.
     * 
     */
    public String reinstallRequired() {
        return this.reinstallRequired;
    }
    /**
     * @return Installation state
     * 
     */
    public String state() {
        return this.state;
    }

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

    public static Builder builder(InstallationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String desiredState;
        private AsyncOperationIdResponse operation;
        private List reasons;
        private String reinstallRequired;
        private String state;
        public Builder() {}
        public Builder(InstallationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.desiredState = defaults.desiredState;
    	      this.operation = defaults.operation;
    	      this.reasons = defaults.reasons;
    	      this.reinstallRequired = defaults.reinstallRequired;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder desiredState(@Nullable String desiredState) {

            this.desiredState = desiredState;
            return this;
        }
        @CustomType.Setter
        public Builder operation(AsyncOperationIdResponse operation) {
            if (operation == null) {
              throw new MissingRequiredPropertyException("InstallationResponse", "operation");
            }
            this.operation = operation;
            return this;
        }
        @CustomType.Setter
        public Builder reasons(List reasons) {
            if (reasons == null) {
              throw new MissingRequiredPropertyException("InstallationResponse", "reasons");
            }
            this.reasons = reasons;
            return this;
        }
        public Builder reasons(String... reasons) {
            return reasons(List.of(reasons));
        }
        @CustomType.Setter
        public Builder reinstallRequired(String reinstallRequired) {
            if (reinstallRequired == null) {
              throw new MissingRequiredPropertyException("InstallationResponse", "reinstallRequired");
            }
            this.reinstallRequired = reinstallRequired;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("InstallationResponse", "state");
            }
            this.state = state;
            return this;
        }
        public InstallationResponse build() {
            final var _resultValue = new InstallationResponse();
            _resultValue.desiredState = desiredState;
            _resultValue.operation = operation;
            _resultValue.reasons = reasons;
            _resultValue.reinstallRequired = reinstallRequired;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy