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

com.pulumi.aws.s3.inputs.BucketV2LoggingArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.s3.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BucketV2LoggingArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketV2LoggingArgs Empty = new BucketV2LoggingArgs();

    /**
     * Name of the bucket that will receive the log objects.
     * 
     */
    @Import(name="targetBucket", required=true)
    private Output targetBucket;

    /**
     * @return Name of the bucket that will receive the log objects.
     * 
     */
    public Output targetBucket() {
        return this.targetBucket;
    }

    /**
     * To specify a key prefix for log objects.
     * 
     */
    @Import(name="targetPrefix")
    private @Nullable Output targetPrefix;

    /**
     * @return To specify a key prefix for log objects.
     * 
     */
    public Optional> targetPrefix() {
        return Optional.ofNullable(this.targetPrefix);
    }

    private BucketV2LoggingArgs() {}

    private BucketV2LoggingArgs(BucketV2LoggingArgs $) {
        this.targetBucket = $.targetBucket;
        this.targetPrefix = $.targetPrefix;
    }

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

    public static final class Builder {
        private BucketV2LoggingArgs $;

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

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

        /**
         * @param targetBucket Name of the bucket that will receive the log objects.
         * 
         * @return builder
         * 
         */
        public Builder targetBucket(Output targetBucket) {
            $.targetBucket = targetBucket;
            return this;
        }

        /**
         * @param targetBucket Name of the bucket that will receive the log objects.
         * 
         * @return builder
         * 
         */
        public Builder targetBucket(String targetBucket) {
            return targetBucket(Output.of(targetBucket));
        }

        /**
         * @param targetPrefix To specify a key prefix for log objects.
         * 
         * @return builder
         * 
         */
        public Builder targetPrefix(@Nullable Output targetPrefix) {
            $.targetPrefix = targetPrefix;
            return this;
        }

        /**
         * @param targetPrefix To specify a key prefix for log objects.
         * 
         * @return builder
         * 
         */
        public Builder targetPrefix(String targetPrefix) {
            return targetPrefix(Output.of(targetPrefix));
        }

        public BucketV2LoggingArgs build() {
            if ($.targetBucket == null) {
                throw new MissingRequiredPropertyException("BucketV2LoggingArgs", "targetBucket");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy