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

com.pulumi.aws.opensearchingest.outputs.PipelineLogPublishingOptions Maven / Gradle / Ivy

// *** 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.aws.opensearchingest.outputs;

import com.pulumi.aws.opensearchingest.outputs.PipelineLogPublishingOptionsCloudwatchLogDestination;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PipelineLogPublishingOptions {
    /**
     * @return The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true. See `cloudwatch_log_destination` below.
     * 
     */
    private @Nullable PipelineLogPublishingOptionsCloudwatchLogDestination cloudwatchLogDestination;
    /**
     * @return Whether logs should be published.
     * 
     */
    private @Nullable Boolean isLoggingEnabled;

    private PipelineLogPublishingOptions() {}
    /**
     * @return The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true. See `cloudwatch_log_destination` below.
     * 
     */
    public Optional cloudwatchLogDestination() {
        return Optional.ofNullable(this.cloudwatchLogDestination);
    }
    /**
     * @return Whether logs should be published.
     * 
     */
    public Optional isLoggingEnabled() {
        return Optional.ofNullable(this.isLoggingEnabled);
    }

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

    public static Builder builder(PipelineLogPublishingOptions defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PipelineLogPublishingOptionsCloudwatchLogDestination cloudwatchLogDestination;
        private @Nullable Boolean isLoggingEnabled;
        public Builder() {}
        public Builder(PipelineLogPublishingOptions defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cloudwatchLogDestination = defaults.cloudwatchLogDestination;
    	      this.isLoggingEnabled = defaults.isLoggingEnabled;
        }

        @CustomType.Setter
        public Builder cloudwatchLogDestination(@Nullable PipelineLogPublishingOptionsCloudwatchLogDestination cloudwatchLogDestination) {

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

            this.isLoggingEnabled = isLoggingEnabled;
            return this;
        }
        public PipelineLogPublishingOptions build() {
            final var _resultValue = new PipelineLogPublishingOptions();
            _resultValue.cloudwatchLogDestination = cloudwatchLogDestination;
            _resultValue.isLoggingEnabled = isLoggingEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy