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

com.pulumi.azurenative.customerinsights.outputs.DataSourcePrecedenceResponse 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.customerinsights.outputs;

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

@CustomType
public final class DataSourcePrecedenceResponse {
    /**
     * @return The data source reference id.
     * 
     */
    private String dataSourceReferenceId;
    /**
     * @return The data source type.
     * 
     */
    private String dataSourceType;
    /**
     * @return The data source ID.
     * 
     */
    private Integer id;
    /**
     * @return The data source name
     * 
     */
    private String name;
    /**
     * @return the precedence value.
     * 
     */
    private @Nullable Integer precedence;
    /**
     * @return The data source status.
     * 
     */
    private String status;

    private DataSourcePrecedenceResponse() {}
    /**
     * @return The data source reference id.
     * 
     */
    public String dataSourceReferenceId() {
        return this.dataSourceReferenceId;
    }
    /**
     * @return The data source type.
     * 
     */
    public String dataSourceType() {
        return this.dataSourceType;
    }
    /**
     * @return The data source ID.
     * 
     */
    public Integer id() {
        return this.id;
    }
    /**
     * @return The data source name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return the precedence value.
     * 
     */
    public Optional precedence() {
        return Optional.ofNullable(this.precedence);
    }
    /**
     * @return The data source status.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(DataSourcePrecedenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String dataSourceReferenceId;
        private String dataSourceType;
        private Integer id;
        private String name;
        private @Nullable Integer precedence;
        private String status;
        public Builder() {}
        public Builder(DataSourcePrecedenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataSourceReferenceId = defaults.dataSourceReferenceId;
    	      this.dataSourceType = defaults.dataSourceType;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.precedence = defaults.precedence;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder dataSourceReferenceId(String dataSourceReferenceId) {
            if (dataSourceReferenceId == null) {
              throw new MissingRequiredPropertyException("DataSourcePrecedenceResponse", "dataSourceReferenceId");
            }
            this.dataSourceReferenceId = dataSourceReferenceId;
            return this;
        }
        @CustomType.Setter
        public Builder dataSourceType(String dataSourceType) {
            if (dataSourceType == null) {
              throw new MissingRequiredPropertyException("DataSourcePrecedenceResponse", "dataSourceType");
            }
            this.dataSourceType = dataSourceType;
            return this;
        }
        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("DataSourcePrecedenceResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("DataSourcePrecedenceResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder precedence(@Nullable Integer precedence) {

            this.precedence = precedence;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("DataSourcePrecedenceResponse", "status");
            }
            this.status = status;
            return this;
        }
        public DataSourcePrecedenceResponse build() {
            final var _resultValue = new DataSourcePrecedenceResponse();
            _resultValue.dataSourceReferenceId = dataSourceReferenceId;
            _resultValue.dataSourceType = dataSourceType;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.precedence = precedence;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy