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

com.pulumi.azurenative.awsconnector.inputs.TargetObjectKeyFormatArgs 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.PartitionedPrefixArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of TargetObjectKeyFormat
 * 
 */
public final class TargetObjectKeyFormatArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetObjectKeyFormatArgs Empty = new TargetObjectKeyFormatArgs();

    /**
     * Amazon S3 keys for log objects are partitioned in the following format:  ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]``  PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.
     * 
     */
    @Import(name="partitionedPrefix")
    private @Nullable Output partitionedPrefix;

    /**
     * @return Amazon S3 keys for log objects are partitioned in the following format:  ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]``  PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.
     * 
     */
    public Optional> partitionedPrefix() {
        return Optional.ofNullable(this.partitionedPrefix);
    }

    /**
     * This format defaults the prefix to the given log file prefix for delivering server access log file.
     * 
     */
    @Import(name="simplePrefix")
    private @Nullable Output simplePrefix;

    /**
     * @return This format defaults the prefix to the given log file prefix for delivering server access log file.
     * 
     */
    public Optional> simplePrefix() {
        return Optional.ofNullable(this.simplePrefix);
    }

    private TargetObjectKeyFormatArgs() {}

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

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

    public static final class Builder {
        private TargetObjectKeyFormatArgs $;

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

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

        /**
         * @param partitionedPrefix Amazon S3 keys for log objects are partitioned in the following format:  ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]``  PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.
         * 
         * @return builder
         * 
         */
        public Builder partitionedPrefix(@Nullable Output partitionedPrefix) {
            $.partitionedPrefix = partitionedPrefix;
            return this;
        }

        /**
         * @param partitionedPrefix Amazon S3 keys for log objects are partitioned in the following format:  ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]``  PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.
         * 
         * @return builder
         * 
         */
        public Builder partitionedPrefix(PartitionedPrefixArgs partitionedPrefix) {
            return partitionedPrefix(Output.of(partitionedPrefix));
        }

        /**
         * @param simplePrefix This format defaults the prefix to the given log file prefix for delivering server access log file.
         * 
         * @return builder
         * 
         */
        public Builder simplePrefix(@Nullable Output simplePrefix) {
            $.simplePrefix = simplePrefix;
            return this;
        }

        /**
         * @param simplePrefix This format defaults the prefix to the given log file prefix for delivering server access log file.
         * 
         * @return builder
         * 
         */
        public Builder simplePrefix(Object simplePrefix) {
            return simplePrefix(Output.of(simplePrefix));
        }

        public TargetObjectKeyFormatArgs build() {
            return $;
        }
    }

}