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

com.pulumi.azurenative.awsconnector.inputs.LogsConfigArgs 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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.CloudWatchLogsConfigArgs;
import com.pulumi.azurenative.awsconnector.inputs.S3LogsConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of LogsConfig
 * 
 */
public final class LogsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogsConfigArgs Empty = new LogsConfigArgs();

    /**
     * <p> Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default. </p>
     * 
     */
    @Import(name="cloudWatchLogs")
    private @Nullable Output cloudWatchLogs;

    /**
     * @return <p> Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default. </p>
     * 
     */
    public Optional> cloudWatchLogs() {
        return Optional.ofNullable(this.cloudWatchLogs);
    }

    /**
     * <p> Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default. </p>
     * 
     */
    @Import(name="s3Logs")
    private @Nullable Output s3Logs;

    /**
     * @return <p> Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default. </p>
     * 
     */
    public Optional> s3Logs() {
        return Optional.ofNullable(this.s3Logs);
    }

    private LogsConfigArgs() {}

    private LogsConfigArgs(LogsConfigArgs $) {
        this.cloudWatchLogs = $.cloudWatchLogs;
        this.s3Logs = $.s3Logs;
    }

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

    public static final class Builder {
        private LogsConfigArgs $;

        public Builder() {
            $ = new LogsConfigArgs();
        }

        public Builder(LogsConfigArgs defaults) {
            $ = new LogsConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param cloudWatchLogs <p> Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default. </p>
         * 
         * @return builder
         * 
         */
        public Builder cloudWatchLogs(@Nullable Output cloudWatchLogs) {
            $.cloudWatchLogs = cloudWatchLogs;
            return this;
        }

        /**
         * @param cloudWatchLogs <p> Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default. </p>
         * 
         * @return builder
         * 
         */
        public Builder cloudWatchLogs(CloudWatchLogsConfigArgs cloudWatchLogs) {
            return cloudWatchLogs(Output.of(cloudWatchLogs));
        }

        /**
         * @param s3Logs <p> Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default. </p>
         * 
         * @return builder
         * 
         */
        public Builder s3Logs(@Nullable Output s3Logs) {
            $.s3Logs = s3Logs;
            return this;
        }

        /**
         * @param s3Logs <p> Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default. </p>
         * 
         * @return builder
         * 
         */
        public Builder s3Logs(S3LogsConfigArgs s3Logs) {
            return s3Logs(Output.of(s3Logs));
        }

        public LogsConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy