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

com.pulumi.aws.s3.inputs.BucketLoggingV2TargetObjectKeyFormatArgs 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.s3.inputs;

import com.pulumi.aws.s3.inputs.BucketLoggingV2TargetObjectKeyFormatPartitionedPrefixArgs;
import com.pulumi.aws.s3.inputs.BucketLoggingV2TargetObjectKeyFormatSimplePrefixArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketLoggingV2TargetObjectKeyFormatArgs Empty = new BucketLoggingV2TargetObjectKeyFormatArgs();

    /**
     * Partitioned S3 key for log objects. See below.
     * 
     */
    @Import(name="partitionedPrefix")
    private @Nullable Output partitionedPrefix;

    /**
     * @return Partitioned S3 key for log objects. See below.
     * 
     */
    public Optional> partitionedPrefix() {
        return Optional.ofNullable(this.partitionedPrefix);
    }

    /**
     * Use the simple format for S3 keys for log objects. To use, set `simple_prefix {}`.
     * 
     */
    @Import(name="simplePrefix")
    private @Nullable Output simplePrefix;

    /**
     * @return Use the simple format for S3 keys for log objects. To use, set `simple_prefix {}`.
     * 
     */
    public Optional> simplePrefix() {
        return Optional.ofNullable(this.simplePrefix);
    }

    private BucketLoggingV2TargetObjectKeyFormatArgs() {}

    private BucketLoggingV2TargetObjectKeyFormatArgs(BucketLoggingV2TargetObjectKeyFormatArgs $) {
        this.partitionedPrefix = $.partitionedPrefix;
        this.simplePrefix = $.simplePrefix;
    }

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

    public static final class Builder {
        private BucketLoggingV2TargetObjectKeyFormatArgs $;

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

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

        /**
         * @param partitionedPrefix Partitioned S3 key for log objects. See below.
         * 
         * @return builder
         * 
         */
        public Builder partitionedPrefix(@Nullable Output partitionedPrefix) {
            $.partitionedPrefix = partitionedPrefix;
            return this;
        }

        /**
         * @param partitionedPrefix Partitioned S3 key for log objects. See below.
         * 
         * @return builder
         * 
         */
        public Builder partitionedPrefix(BucketLoggingV2TargetObjectKeyFormatPartitionedPrefixArgs partitionedPrefix) {
            return partitionedPrefix(Output.of(partitionedPrefix));
        }

        /**
         * @param simplePrefix Use the simple format for S3 keys for log objects. To use, set `simple_prefix {}`.
         * 
         * @return builder
         * 
         */
        public Builder simplePrefix(@Nullable Output simplePrefix) {
            $.simplePrefix = simplePrefix;
            return this;
        }

        /**
         * @param simplePrefix Use the simple format for S3 keys for log objects. To use, set `simple_prefix {}`.
         * 
         * @return builder
         * 
         */
        public Builder simplePrefix(BucketLoggingV2TargetObjectKeyFormatSimplePrefixArgs simplePrefix) {
            return simplePrefix(Output.of(simplePrefix));
        }

        public BucketLoggingV2TargetObjectKeyFormatArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy