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

com.pulumi.azurenative.datafactory.outputs.ValidationActivityResponse Maven / Gradle / Ivy

The 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.ActivityDependencyResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.UserPropertyResponse;
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 ValidationActivityResponse {
    /**
     * @return Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object childItems;
    /**
     * @return Validation activity dataset reference.
     * 
     */
    private DatasetReferenceResponse dataset;
    /**
     * @return Activity depends on condition.
     * 
     */
    private @Nullable List dependsOn;
    /**
     * @return Activity description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object minimumSize;
    /**
     * @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 A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object sleep;
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    private @Nullable String state;
    /**
     * @return Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object timeout;
    /**
     * @return Type of activity.
     * Expected value is 'Validation'.
     * 
     */
    private String type;
    /**
     * @return Activity user properties.
     * 
     */
    private @Nullable List userProperties;

    private ValidationActivityResponse() {}
    /**
     * @return Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional childItems() {
        return Optional.ofNullable(this.childItems);
    }
    /**
     * @return Validation 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 Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional minimumSize() {
        return Optional.ofNullable(this.minimumSize);
    }
    /**
     * @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 A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional sleep() {
        return Optional.ofNullable(this.sleep);
    }
    /**
     * @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 Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional timeout() {
        return Optional.ofNullable(this.timeout);
    }
    /**
     * @return Type of activity.
     * Expected value is 'Validation'.
     * 
     */
    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(ValidationActivityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object childItems;
        private DatasetReferenceResponse dataset;
        private @Nullable List dependsOn;
        private @Nullable String description;
        private @Nullable Object minimumSize;
        private String name;
        private @Nullable String onInactiveMarkAs;
        private @Nullable Object sleep;
        private @Nullable String state;
        private @Nullable Object timeout;
        private String type;
        private @Nullable List userProperties;
        public Builder() {}
        public Builder(ValidationActivityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.childItems = defaults.childItems;
    	      this.dataset = defaults.dataset;
    	      this.dependsOn = defaults.dependsOn;
    	      this.description = defaults.description;
    	      this.minimumSize = defaults.minimumSize;
    	      this.name = defaults.name;
    	      this.onInactiveMarkAs = defaults.onInactiveMarkAs;
    	      this.sleep = defaults.sleep;
    	      this.state = defaults.state;
    	      this.timeout = defaults.timeout;
    	      this.type = defaults.type;
    	      this.userProperties = defaults.userProperties;
        }

        @CustomType.Setter
        public Builder childItems(@Nullable Object childItems) {

            this.childItems = childItems;
            return this;
        }
        @CustomType.Setter
        public Builder dataset(DatasetReferenceResponse dataset) {
            if (dataset == null) {
              throw new MissingRequiredPropertyException("ValidationActivityResponse", "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 minimumSize(@Nullable Object minimumSize) {

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

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

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

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

            this.timeout = timeout;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ValidationActivityResponse", "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 ValidationActivityResponse build() {
            final var _resultValue = new ValidationActivityResponse();
            _resultValue.childItems = childItems;
            _resultValue.dataset = dataset;
            _resultValue.dependsOn = dependsOn;
            _resultValue.description = description;
            _resultValue.minimumSize = minimumSize;
            _resultValue.name = name;
            _resultValue.onInactiveMarkAs = onInactiveMarkAs;
            _resultValue.sleep = sleep;
            _resultValue.state = state;
            _resultValue.timeout = timeout;
            _resultValue.type = type;
            _resultValue.userProperties = userProperties;
            return _resultValue;
        }
    }
}