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

com.pulumi.azurenative.datafactory.outputs.SalesforceV2ObjectDatasetResponse 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.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.DatasetResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SalesforceV2ObjectDatasetResponse {
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return Dataset description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    private @Nullable DatasetResponseFolder folder;
    /**
     * @return Linked service reference.
     * 
     */
    private LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return The Salesforce V2 object API name. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object objectApiName;
    /**
     * @return Parameters for dataset.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return The Salesforce V2 report Id. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object reportId;
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    private @Nullable Object schema;
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    private @Nullable Object structure;
    /**
     * @return Type of dataset.
     * Expected value is 'SalesforceV2Object'.
     * 
     */
    private String type;

    private SalesforceV2ObjectDatasetResponse() {}
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return Dataset description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    public Optional folder() {
        return Optional.ofNullable(this.folder);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public LinkedServiceReferenceResponse linkedServiceName() {
        return this.linkedServiceName;
    }
    /**
     * @return The Salesforce V2 object API name. Type: string (or Expression with resultType string).
     * 
     */
    public Optional objectApiName() {
        return Optional.ofNullable(this.objectApiName);
    }
    /**
     * @return Parameters for dataset.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return The Salesforce V2 report Id. Type: string (or Expression with resultType string).
     * 
     */
    public Optional reportId() {
        return Optional.ofNullable(this.reportId);
    }
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    public Optional schema() {
        return Optional.ofNullable(this.schema);
    }
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    public Optional structure() {
        return Optional.ofNullable(this.structure);
    }
    /**
     * @return Type of dataset.
     * Expected value is 'SalesforceV2Object'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(SalesforceV2ObjectDatasetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String description;
        private @Nullable DatasetResponseFolder folder;
        private LinkedServiceReferenceResponse linkedServiceName;
        private @Nullable Object objectApiName;
        private @Nullable Map parameters;
        private @Nullable Object reportId;
        private @Nullable Object schema;
        private @Nullable Object structure;
        private String type;
        public Builder() {}
        public Builder(SalesforceV2ObjectDatasetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.description = defaults.description;
    	      this.folder = defaults.folder;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.objectApiName = defaults.objectApiName;
    	      this.parameters = defaults.parameters;
    	      this.reportId = defaults.reportId;
    	      this.schema = defaults.schema;
    	      this.structure = defaults.structure;
    	      this.type = defaults.type;
        }

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

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder folder(@Nullable DatasetResponseFolder folder) {

            this.folder = folder;
            return this;
        }
        @CustomType.Setter
        public Builder linkedServiceName(LinkedServiceReferenceResponse linkedServiceName) {
            if (linkedServiceName == null) {
              throw new MissingRequiredPropertyException("SalesforceV2ObjectDatasetResponse", "linkedServiceName");
            }
            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder objectApiName(@Nullable Object objectApiName) {

            this.objectApiName = objectApiName;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder reportId(@Nullable Object reportId) {

            this.reportId = reportId;
            return this;
        }
        @CustomType.Setter
        public Builder schema(@Nullable Object schema) {

            this.schema = schema;
            return this;
        }
        @CustomType.Setter
        public Builder structure(@Nullable Object structure) {

            this.structure = structure;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("SalesforceV2ObjectDatasetResponse", "type");
            }
            this.type = type;
            return this;
        }
        public SalesforceV2ObjectDatasetResponse build() {
            final var _resultValue = new SalesforceV2ObjectDatasetResponse();
            _resultValue.annotations = annotations;
            _resultValue.description = description;
            _resultValue.folder = folder;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.objectApiName = objectApiName;
            _resultValue.parameters = parameters;
            _resultValue.reportId = reportId;
            _resultValue.schema = schema;
            _resultValue.structure = structure;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}