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

com.pulumi.azurenative.programmableconnectivity.outputs.StatusResponse 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.programmableconnectivity.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StatusResponse {
    /**
     * @return Explanation of the current state of the OperatorApiConnection resource.
     * 
     */
    private @Nullable String reason;
    /**
     * @return Current state of the OperatorApiConnection resource.
     * 
     */
    private @Nullable String state;

    private StatusResponse() {}
    /**
     * @return Explanation of the current state of the OperatorApiConnection resource.
     * 
     */
    public Optional reason() {
        return Optional.ofNullable(this.reason);
    }
    /**
     * @return Current state of the OperatorApiConnection resource.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(StatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String reason;
        private @Nullable String state;
        public Builder() {}
        public Builder(StatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.reason = defaults.reason;
    	      this.state = defaults.state;
        }

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

            this.reason = reason;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        public StatusResponse build() {
            final var _resultValue = new StatusResponse();
            _resultValue.reason = reason;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy