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

com.pulumi.azurenative.monitor.outputs.ServiceResponse 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.monitor.outputs;

import com.pulumi.azurenative.monitor.outputs.PersistenceConfigurationsResponse;
import com.pulumi.azurenative.monitor.outputs.PipelineResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServiceResponse {
    /**
     * @return Persistence options to all pipelines in the instance.
     * 
     */
    private @Nullable PersistenceConfigurationsResponse persistence;
    /**
     * @return Pipelines belonging to a given pipeline group.
     * 
     */
    private List pipelines;

    private ServiceResponse() {}
    /**
     * @return Persistence options to all pipelines in the instance.
     * 
     */
    public Optional persistence() {
        return Optional.ofNullable(this.persistence);
    }
    /**
     * @return Pipelines belonging to a given pipeline group.
     * 
     */
    public List pipelines() {
        return this.pipelines;
    }

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

    public static Builder builder(ServiceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PersistenceConfigurationsResponse persistence;
        private List pipelines;
        public Builder() {}
        public Builder(ServiceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.persistence = defaults.persistence;
    	      this.pipelines = defaults.pipelines;
        }

        @CustomType.Setter
        public Builder persistence(@Nullable PersistenceConfigurationsResponse persistence) {

            this.persistence = persistence;
            return this;
        }
        @CustomType.Setter
        public Builder pipelines(List pipelines) {
            if (pipelines == null) {
              throw new MissingRequiredPropertyException("ServiceResponse", "pipelines");
            }
            this.pipelines = pipelines;
            return this;
        }
        public Builder pipelines(PipelineResponse... pipelines) {
            return pipelines(List.of(pipelines));
        }
        public ServiceResponse build() {
            final var _resultValue = new ServiceResponse();
            _resultValue.persistence = persistence;
            _resultValue.pipelines = pipelines;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy