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

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

There is a newer version: 2.82.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.CopyActivityLogSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.LogLocationSettingsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LogSettingsResponse {
    /**
     * @return Specifies settings for copy activity log.
     * 
     */
    private @Nullable CopyActivityLogSettingsResponse copyActivityLogSettings;
    /**
     * @return Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object enableCopyActivityLog;
    /**
     * @return Log location settings customer needs to provide when enabling log.
     * 
     */
    private LogLocationSettingsResponse logLocationSettings;

    private LogSettingsResponse() {}
    /**
     * @return Specifies settings for copy activity log.
     * 
     */
    public Optional copyActivityLogSettings() {
        return Optional.ofNullable(this.copyActivityLogSettings);
    }
    /**
     * @return Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional enableCopyActivityLog() {
        return Optional.ofNullable(this.enableCopyActivityLog);
    }
    /**
     * @return Log location settings customer needs to provide when enabling log.
     * 
     */
    public LogLocationSettingsResponse logLocationSettings() {
        return this.logLocationSettings;
    }

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

    public static Builder builder(LogSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CopyActivityLogSettingsResponse copyActivityLogSettings;
        private @Nullable Object enableCopyActivityLog;
        private LogLocationSettingsResponse logLocationSettings;
        public Builder() {}
        public Builder(LogSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.copyActivityLogSettings = defaults.copyActivityLogSettings;
    	      this.enableCopyActivityLog = defaults.enableCopyActivityLog;
    	      this.logLocationSettings = defaults.logLocationSettings;
        }

        @CustomType.Setter
        public Builder copyActivityLogSettings(@Nullable CopyActivityLogSettingsResponse copyActivityLogSettings) {

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

            this.enableCopyActivityLog = enableCopyActivityLog;
            return this;
        }
        @CustomType.Setter
        public Builder logLocationSettings(LogLocationSettingsResponse logLocationSettings) {
            if (logLocationSettings == null) {
              throw new MissingRequiredPropertyException("LogSettingsResponse", "logLocationSettings");
            }
            this.logLocationSettings = logLocationSettings;
            return this;
        }
        public LogSettingsResponse build() {
            final var _resultValue = new LogSettingsResponse();
            _resultValue.copyActivityLogSettings = copyActivityLogSettings;
            _resultValue.enableCopyActivityLog = enableCopyActivityLog;
            _resultValue.logLocationSettings = logLocationSettings;
            return _resultValue;
        }
    }
}