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

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

import com.pulumi.azurenative.datafactory.outputs.ActivityDependencyResponse;
import com.pulumi.azurenative.datafactory.outputs.ActivityPolicyResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3CompatibleReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3ReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobFSReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobStorageReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeStoreReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureFileStorageReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.BinaryReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.DelimitedTextReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.FileServerReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.FtpReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleCloudStorageReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.HdfsReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.HttpReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.JsonReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.LakeHouseReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleCloudStorageReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.ParquetReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.SftpReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.UserPropertyResponse;
import com.pulumi.azurenative.datafactory.outputs.XmlReadSettingsResponse;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetMetadataActivityResponse {
    /**
     * @return GetMetadata activity dataset reference.
     * 
     */
    private DatasetReferenceResponse dataset;
    /**
     * @return Activity depends on condition.
     * 
     */
    private @Nullable List dependsOn;
    /**
     * @return Activity description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fields of metadata to get from dataset.
     * 
     */
    private @Nullable List fieldList;
    /**
     * @return GetMetadata activity format settings.
     * 
     */
    private @Nullable Object formatSettings;
    /**
     * @return Linked service reference.
     * 
     */
    private @Nullable LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return Activity name.
     * 
     */
    private String name;
    /**
     * @return Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
     * 
     */
    private @Nullable String onInactiveMarkAs;
    /**
     * @return Activity policy.
     * 
     */
    private @Nullable ActivityPolicyResponse policy;
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    private @Nullable String state;
    /**
     * @return GetMetadata activity store settings.
     * 
     */
    private @Nullable Object storeSettings;
    /**
     * @return Type of activity.
     * Expected value is 'GetMetadata'.
     * 
     */
    private String type;
    /**
     * @return Activity user properties.
     * 
     */
    private @Nullable List userProperties;

    private GetMetadataActivityResponse() {}
    /**
     * @return GetMetadata activity dataset reference.
     * 
     */
    public DatasetReferenceResponse dataset() {
        return this.dataset;
    }
    /**
     * @return Activity depends on condition.
     * 
     */
    public List dependsOn() {
        return this.dependsOn == null ? List.of() : this.dependsOn;
    }
    /**
     * @return Activity description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fields of metadata to get from dataset.
     * 
     */
    public List fieldList() {
        return this.fieldList == null ? List.of() : this.fieldList;
    }
    /**
     * @return GetMetadata activity format settings.
     * 
     */
    public Optional formatSettings() {
        return Optional.ofNullable(this.formatSettings);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public Optional linkedServiceName() {
        return Optional.ofNullable(this.linkedServiceName);
    }
    /**
     * @return Activity name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
     * 
     */
    public Optional onInactiveMarkAs() {
        return Optional.ofNullable(this.onInactiveMarkAs);
    }
    /**
     * @return Activity policy.
     * 
     */
    public Optional policy() {
        return Optional.ofNullable(this.policy);
    }
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @return GetMetadata activity store settings.
     * 
     */
    public Optional storeSettings() {
        return Optional.ofNullable(this.storeSettings);
    }
    /**
     * @return Type of activity.
     * Expected value is 'GetMetadata'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Activity user properties.
     * 
     */
    public List userProperties() {
        return this.userProperties == null ? List.of() : this.userProperties;
    }

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

    public static Builder builder(GetMetadataActivityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private DatasetReferenceResponse dataset;
        private @Nullable List dependsOn;
        private @Nullable String description;
        private @Nullable List fieldList;
        private @Nullable Object formatSettings;
        private @Nullable LinkedServiceReferenceResponse linkedServiceName;
        private String name;
        private @Nullable String onInactiveMarkAs;
        private @Nullable ActivityPolicyResponse policy;
        private @Nullable String state;
        private @Nullable Object storeSettings;
        private String type;
        private @Nullable List userProperties;
        public Builder() {}
        public Builder(GetMetadataActivityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataset = defaults.dataset;
    	      this.dependsOn = defaults.dependsOn;
    	      this.description = defaults.description;
    	      this.fieldList = defaults.fieldList;
    	      this.formatSettings = defaults.formatSettings;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.name = defaults.name;
    	      this.onInactiveMarkAs = defaults.onInactiveMarkAs;
    	      this.policy = defaults.policy;
    	      this.state = defaults.state;
    	      this.storeSettings = defaults.storeSettings;
    	      this.type = defaults.type;
    	      this.userProperties = defaults.userProperties;
        }

        @CustomType.Setter
        public Builder dataset(DatasetReferenceResponse dataset) {
            if (dataset == null) {
              throw new MissingRequiredPropertyException("GetMetadataActivityResponse", "dataset");
            }
            this.dataset = dataset;
            return this;
        }
        @CustomType.Setter
        public Builder dependsOn(@Nullable List dependsOn) {

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

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

            this.fieldList = fieldList;
            return this;
        }
        public Builder fieldList(Object... fieldList) {
            return fieldList(List.of(fieldList));
        }
        @CustomType.Setter
        public Builder formatSettings(@Nullable Object formatSettings) {

            this.formatSettings = formatSettings;
            return this;
        }
        @CustomType.Setter
        public Builder linkedServiceName(@Nullable LinkedServiceReferenceResponse linkedServiceName) {

            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetMetadataActivityResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder onInactiveMarkAs(@Nullable String onInactiveMarkAs) {

            this.onInactiveMarkAs = onInactiveMarkAs;
            return this;
        }
        @CustomType.Setter
        public Builder policy(@Nullable ActivityPolicyResponse policy) {

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

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

            this.storeSettings = storeSettings;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetMetadataActivityResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder userProperties(@Nullable List userProperties) {

            this.userProperties = userProperties;
            return this;
        }
        public Builder userProperties(UserPropertyResponse... userProperties) {
            return userProperties(List.of(userProperties));
        }
        public GetMetadataActivityResponse build() {
            final var _resultValue = new GetMetadataActivityResponse();
            _resultValue.dataset = dataset;
            _resultValue.dependsOn = dependsOn;
            _resultValue.description = description;
            _resultValue.fieldList = fieldList;
            _resultValue.formatSettings = formatSettings;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.name = name;
            _resultValue.onInactiveMarkAs = onInactiveMarkAs;
            _resultValue.policy = policy;
            _resultValue.state = state;
            _resultValue.storeSettings = storeSettings;
            _resultValue.type = type;
            _resultValue.userProperties = userProperties;
            return _resultValue;
        }
    }
}