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

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

There is a newer version: 2.72.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.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ActivityPolicyResponse {
    /**
     * @return Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    private @Nullable Object retry;
    /**
     * @return Interval between each retry attempt (in seconds). The default is 30 sec.
     * 
     */
    private @Nullable Integer retryIntervalInSeconds;
    /**
     * @return When set to true, Input from activity is considered as secure and will not be logged to monitoring.
     * 
     */
    private @Nullable Boolean secureInput;
    /**
     * @return When set to true, Output from activity is considered as secure and will not be logged to monitoring.
     * 
     */
    private @Nullable Boolean secureOutput;
    /**
     * @return Specifies the timeout for the activity to run. The default timeout is 7 days. 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;

    private ActivityPolicyResponse() {}
    /**
     * @return Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    public Optional retry() {
        return Optional.ofNullable(this.retry);
    }
    /**
     * @return Interval between each retry attempt (in seconds). The default is 30 sec.
     * 
     */
    public Optional retryIntervalInSeconds() {
        return Optional.ofNullable(this.retryIntervalInSeconds);
    }
    /**
     * @return When set to true, Input from activity is considered as secure and will not be logged to monitoring.
     * 
     */
    public Optional secureInput() {
        return Optional.ofNullable(this.secureInput);
    }
    /**
     * @return When set to true, Output from activity is considered as secure and will not be logged to monitoring.
     * 
     */
    public Optional secureOutput() {
        return Optional.ofNullable(this.secureOutput);
    }
    /**
     * @return Specifies the timeout for the activity to run. The default timeout is 7 days. 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);
    }

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

    public static Builder builder(ActivityPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object retry;
        private @Nullable Integer retryIntervalInSeconds;
        private @Nullable Boolean secureInput;
        private @Nullable Boolean secureOutput;
        private @Nullable Object timeout;
        public Builder() {}
        public Builder(ActivityPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.retry = defaults.retry;
    	      this.retryIntervalInSeconds = defaults.retryIntervalInSeconds;
    	      this.secureInput = defaults.secureInput;
    	      this.secureOutput = defaults.secureOutput;
    	      this.timeout = defaults.timeout;
        }

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

            this.retry = retry;
            return this;
        }
        @CustomType.Setter
        public Builder retryIntervalInSeconds(@Nullable Integer retryIntervalInSeconds) {

            this.retryIntervalInSeconds = retryIntervalInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder secureInput(@Nullable Boolean secureInput) {

            this.secureInput = secureInput;
            return this;
        }
        @CustomType.Setter
        public Builder secureOutput(@Nullable Boolean secureOutput) {

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

            this.timeout = timeout;
            return this;
        }
        public ActivityPolicyResponse build() {
            final var _resultValue = new ActivityPolicyResponse();
            _resultValue.retry = retry;
            _resultValue.retryIntervalInSeconds = retryIntervalInSeconds;
            _resultValue.secureInput = secureInput;
            _resultValue.secureOutput = secureOutput;
            _resultValue.timeout = timeout;
            return _resultValue;
        }
    }
}