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

com.pulumi.alicloud.oss.inputs.BucketAclState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.oss.inputs;

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


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

    public static final BucketAclState Empty = new BucketAclState();

    /**
     * Bucket-level Access Control List (ACL),Valid values: `private`, `public-read`, `public-read-write`.
     * 
     */
    @Import(name="acl")
    private @Nullable Output acl;

    /**
     * @return Bucket-level Access Control List (ACL),Valid values: `private`, `public-read`, `public-read-write`.
     * 
     */
    public Optional> acl() {
        return Optional.ofNullable(this.acl);
    }

    /**
     * The name of the bucket to which the current ACL configuration belongs.
     * 
     */
    @Import(name="bucket")
    private @Nullable Output bucket;

    /**
     * @return The name of the bucket to which the current ACL configuration belongs.
     * 
     */
    public Optional> bucket() {
        return Optional.ofNullable(this.bucket);
    }

    private BucketAclState() {}

    private BucketAclState(BucketAclState $) {
        this.acl = $.acl;
        this.bucket = $.bucket;
    }

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

    public static final class Builder {
        private BucketAclState $;

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

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

        /**
         * @param acl Bucket-level Access Control List (ACL),Valid values: `private`, `public-read`, `public-read-write`.
         * 
         * @return builder
         * 
         */
        public Builder acl(@Nullable Output acl) {
            $.acl = acl;
            return this;
        }

        /**
         * @param acl Bucket-level Access Control List (ACL),Valid values: `private`, `public-read`, `public-read-write`.
         * 
         * @return builder
         * 
         */
        public Builder acl(String acl) {
            return acl(Output.of(acl));
        }

        /**
         * @param bucket The name of the bucket to which the current ACL configuration belongs.
         * 
         * @return builder
         * 
         */
        public Builder bucket(@Nullable Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket The name of the bucket to which the current ACL configuration belongs.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        public BucketAclState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy