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

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

There is a newer version: 2.89.2
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.ActivityDependencyResponse;
import com.pulumi.azurenative.datafactory.outputs.ActivityPolicyResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HDInsightStreamingActivityResponse {
    /**
     * @return User specified arguments to HDInsightActivity.
     * 
     */
    private @Nullable List arguments;
    /**
     * @return Combiner executable name. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object combiner;
    /**
     * @return Command line environment values.
     * 
     */
    private @Nullable List commandEnvironment;
    /**
     * @return Allows user to specify defines for streaming job request.
     * 
     */
    private @Nullable Map defines;
    /**
     * @return Activity depends on condition.
     * 
     */
    private @Nullable List dependsOn;
    /**
     * @return Activity description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Linked service reference where the files are located.
     * 
     */
    private @Nullable LinkedServiceReferenceResponse fileLinkedService;
    /**
     * @return Paths to streaming job files. Can be directories.
     * 
     */
    private List filePaths;
    /**
     * @return Debug info option.
     * 
     */
    private @Nullable String getDebugInfo;
    /**
     * @return Input blob path. Type: string (or Expression with resultType string).
     * 
     */
    private Object input;
    /**
     * @return Linked service reference.
     * 
     */
    private @Nullable LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return Mapper executable name. Type: string (or Expression with resultType string).
     * 
     */
    private Object mapper;
    /**
     * @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 Output blob path. Type: string (or Expression with resultType string).
     * 
     */
    private Object output;
    /**
     * @return Activity policy.
     * 
     */
    private @Nullable ActivityPolicyResponse policy;
    /**
     * @return Reducer executable name. Type: string (or Expression with resultType string).
     * 
     */
    private Object reducer;
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    private @Nullable String state;
    /**
     * @return Storage linked service references.
     * 
     */
    private @Nullable List storageLinkedServices;
    /**
     * @return Type of activity.
     * Expected value is 'HDInsightStreaming'.
     * 
     */
    private String type;
    /**
     * @return Activity user properties.
     * 
     */
    private @Nullable List userProperties;

    private HDInsightStreamingActivityResponse() {}
    /**
     * @return User specified arguments to HDInsightActivity.
     * 
     */
    public List arguments() {
        return this.arguments == null ? List.of() : this.arguments;
    }
    /**
     * @return Combiner executable name. Type: string (or Expression with resultType string).
     * 
     */
    public Optional combiner() {
        return Optional.ofNullable(this.combiner);
    }
    /**
     * @return Command line environment values.
     * 
     */
    public List commandEnvironment() {
        return this.commandEnvironment == null ? List.of() : this.commandEnvironment;
    }
    /**
     * @return Allows user to specify defines for streaming job request.
     * 
     */
    public Map defines() {
        return this.defines == null ? Map.of() : this.defines;
    }
    /**
     * @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 Linked service reference where the files are located.
     * 
     */
    public Optional fileLinkedService() {
        return Optional.ofNullable(this.fileLinkedService);
    }
    /**
     * @return Paths to streaming job files. Can be directories.
     * 
     */
    public List filePaths() {
        return this.filePaths;
    }
    /**
     * @return Debug info option.
     * 
     */
    public Optional getDebugInfo() {
        return Optional.ofNullable(this.getDebugInfo);
    }
    /**
     * @return Input blob path. Type: string (or Expression with resultType string).
     * 
     */
    public Object input() {
        return this.input;
    }
    /**
     * @return Linked service reference.
     * 
     */
    public Optional linkedServiceName() {
        return Optional.ofNullable(this.linkedServiceName);
    }
    /**
     * @return Mapper executable name. Type: string (or Expression with resultType string).
     * 
     */
    public Object mapper() {
        return this.mapper;
    }
    /**
     * @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 Output blob path. Type: string (or Expression with resultType string).
     * 
     */
    public Object output() {
        return this.output;
    }
    /**
     * @return Activity policy.
     * 
     */
    public Optional policy() {
        return Optional.ofNullable(this.policy);
    }
    /**
     * @return Reducer executable name. Type: string (or Expression with resultType string).
     * 
     */
    public Object reducer() {
        return this.reducer;
    }
    /**
     * @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 Storage linked service references.
     * 
     */
    public List storageLinkedServices() {
        return this.storageLinkedServices == null ? List.of() : this.storageLinkedServices;
    }
    /**
     * @return Type of activity.
     * Expected value is 'HDInsightStreaming'.
     * 
     */
    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(HDInsightStreamingActivityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List arguments;
        private @Nullable Object combiner;
        private @Nullable List commandEnvironment;
        private @Nullable Map defines;
        private @Nullable List dependsOn;
        private @Nullable String description;
        private @Nullable LinkedServiceReferenceResponse fileLinkedService;
        private List filePaths;
        private @Nullable String getDebugInfo;
        private Object input;
        private @Nullable LinkedServiceReferenceResponse linkedServiceName;
        private Object mapper;
        private String name;
        private @Nullable String onInactiveMarkAs;
        private Object output;
        private @Nullable ActivityPolicyResponse policy;
        private Object reducer;
        private @Nullable String state;
        private @Nullable List storageLinkedServices;
        private String type;
        private @Nullable List userProperties;
        public Builder() {}
        public Builder(HDInsightStreamingActivityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arguments = defaults.arguments;
    	      this.combiner = defaults.combiner;
    	      this.commandEnvironment = defaults.commandEnvironment;
    	      this.defines = defaults.defines;
    	      this.dependsOn = defaults.dependsOn;
    	      this.description = defaults.description;
    	      this.fileLinkedService = defaults.fileLinkedService;
    	      this.filePaths = defaults.filePaths;
    	      this.getDebugInfo = defaults.getDebugInfo;
    	      this.input = defaults.input;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.mapper = defaults.mapper;
    	      this.name = defaults.name;
    	      this.onInactiveMarkAs = defaults.onInactiveMarkAs;
    	      this.output = defaults.output;
    	      this.policy = defaults.policy;
    	      this.reducer = defaults.reducer;
    	      this.state = defaults.state;
    	      this.storageLinkedServices = defaults.storageLinkedServices;
    	      this.type = defaults.type;
    	      this.userProperties = defaults.userProperties;
        }

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

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

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

            this.commandEnvironment = commandEnvironment;
            return this;
        }
        public Builder commandEnvironment(Object... commandEnvironment) {
            return commandEnvironment(List.of(commandEnvironment));
        }
        @CustomType.Setter
        public Builder defines(@Nullable Map defines) {

            this.defines = defines;
            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 fileLinkedService(@Nullable LinkedServiceReferenceResponse fileLinkedService) {

            this.fileLinkedService = fileLinkedService;
            return this;
        }
        @CustomType.Setter
        public Builder filePaths(List filePaths) {
            if (filePaths == null) {
              throw new MissingRequiredPropertyException("HDInsightStreamingActivityResponse", "filePaths");
            }
            this.filePaths = filePaths;
            return this;
        }
        public Builder filePaths(Object... filePaths) {
            return filePaths(List.of(filePaths));
        }
        @CustomType.Setter
        public Builder getDebugInfo(@Nullable String getDebugInfo) {

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

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

            this.onInactiveMarkAs = onInactiveMarkAs;
            return this;
        }
        @CustomType.Setter
        public Builder output(Object output) {
            if (output == null) {
              throw new MissingRequiredPropertyException("HDInsightStreamingActivityResponse", "output");
            }
            this.output = output;
            return this;
        }
        @CustomType.Setter
        public Builder policy(@Nullable ActivityPolicyResponse policy) {

            this.policy = policy;
            return this;
        }
        @CustomType.Setter
        public Builder reducer(Object reducer) {
            if (reducer == null) {
              throw new MissingRequiredPropertyException("HDInsightStreamingActivityResponse", "reducer");
            }
            this.reducer = reducer;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

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

            this.storageLinkedServices = storageLinkedServices;
            return this;
        }
        public Builder storageLinkedServices(LinkedServiceReferenceResponse... storageLinkedServices) {
            return storageLinkedServices(List.of(storageLinkedServices));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("HDInsightStreamingActivityResponse", "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 HDInsightStreamingActivityResponse build() {
            final var _resultValue = new HDInsightStreamingActivityResponse();
            _resultValue.arguments = arguments;
            _resultValue.combiner = combiner;
            _resultValue.commandEnvironment = commandEnvironment;
            _resultValue.defines = defines;
            _resultValue.dependsOn = dependsOn;
            _resultValue.description = description;
            _resultValue.fileLinkedService = fileLinkedService;
            _resultValue.filePaths = filePaths;
            _resultValue.getDebugInfo = getDebugInfo;
            _resultValue.input = input;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.mapper = mapper;
            _resultValue.name = name;
            _resultValue.onInactiveMarkAs = onInactiveMarkAs;
            _resultValue.output = output;
            _resultValue.policy = policy;
            _resultValue.reducer = reducer;
            _resultValue.state = state;
            _resultValue.storageLinkedServices = storageLinkedServices;
            _resultValue.type = type;
            _resultValue.userProperties = userProperties;
            return _resultValue;
        }
    }
}