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

com.pulumi.aws.lightsail.inputs.BucketAccessKeyState 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.lightsail.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 BucketAccessKeyState extends com.pulumi.resources.ResourceArgs {

    public static final BucketAccessKeyState Empty = new BucketAccessKeyState();

    /**
     * The ID of the access key.
     * 
     */
    @Import(name="accessKeyId")
    private @Nullable Output accessKeyId;

    /**
     * @return The ID of the access key.
     * 
     */
    public Optional> accessKeyId() {
        return Optional.ofNullable(this.accessKeyId);
    }

    /**
     * The name of the bucket that the new access key will belong to, and grant access to.
     * 
     */
    @Import(name="bucketName")
    private @Nullable Output bucketName;

    /**
     * @return The name of the bucket that the new access key will belong to, and grant access to.
     * 
     */
    public Optional> bucketName() {
        return Optional.ofNullable(this.bucketName);
    }

    /**
     * The timestamp when the access key was created.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return The timestamp when the access key was created.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
     * 
     */
    @Import(name="secretAccessKey")
    private @Nullable Output secretAccessKey;

    /**
     * @return The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
     * 
     */
    public Optional> secretAccessKey() {
        return Optional.ofNullable(this.secretAccessKey);
    }

    /**
     * The status of the access key.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of the access key.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private BucketAccessKeyState() {}

    private BucketAccessKeyState(BucketAccessKeyState $) {
        this.accessKeyId = $.accessKeyId;
        this.bucketName = $.bucketName;
        this.createdAt = $.createdAt;
        this.secretAccessKey = $.secretAccessKey;
        this.status = $.status;
    }

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

    public static final class Builder {
        private BucketAccessKeyState $;

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

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

        /**
         * @param accessKeyId The ID of the access key.
         * 
         * @return builder
         * 
         */
        public Builder accessKeyId(@Nullable Output accessKeyId) {
            $.accessKeyId = accessKeyId;
            return this;
        }

        /**
         * @param accessKeyId The ID of the access key.
         * 
         * @return builder
         * 
         */
        public Builder accessKeyId(String accessKeyId) {
            return accessKeyId(Output.of(accessKeyId));
        }

        /**
         * @param bucketName The name of the bucket that the new access key will belong to, and grant access to.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(@Nullable Output bucketName) {
            $.bucketName = bucketName;
            return this;
        }

        /**
         * @param bucketName The name of the bucket that the new access key will belong to, and grant access to.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(String bucketName) {
            return bucketName(Output.of(bucketName));
        }

        /**
         * @param createdAt The timestamp when the access key was created.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt The timestamp when the access key was created.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param secretAccessKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
         * 
         * @return builder
         * 
         */
        public Builder secretAccessKey(@Nullable Output secretAccessKey) {
            $.secretAccessKey = secretAccessKey;
            return this;
        }

        /**
         * @param secretAccessKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
         * 
         * @return builder
         * 
         */
        public Builder secretAccessKey(String secretAccessKey) {
            return secretAccessKey(Output.of(secretAccessKey));
        }

        /**
         * @param status The status of the access key.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the access key.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public BucketAccessKeyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy