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

com.pulumi.aws.ec2.SnapshotCreateVolumePermissionArgs 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.ec2;

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


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

    public static final SnapshotCreateVolumePermissionArgs Empty = new SnapshotCreateVolumePermissionArgs();

    /**
     * An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner
     * 
     */
    @Import(name="accountId", required=true)
    private Output accountId;

    /**
     * @return An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner
     * 
     */
    public Output accountId() {
        return this.accountId;
    }

    /**
     * A snapshot ID
     * 
     */
    @Import(name="snapshotId", required=true)
    private Output snapshotId;

    /**
     * @return A snapshot ID
     * 
     */
    public Output snapshotId() {
        return this.snapshotId;
    }

    private SnapshotCreateVolumePermissionArgs() {}

    private SnapshotCreateVolumePermissionArgs(SnapshotCreateVolumePermissionArgs $) {
        this.accountId = $.accountId;
        this.snapshotId = $.snapshotId;
    }

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

    public static final class Builder {
        private SnapshotCreateVolumePermissionArgs $;

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

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

        /**
         * @param accountId An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner
         * 
         * @return builder
         * 
         */
        public Builder accountId(Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param snapshotId A snapshot ID
         * 
         * @return builder
         * 
         */
        public Builder snapshotId(Output snapshotId) {
            $.snapshotId = snapshotId;
            return this;
        }

        /**
         * @param snapshotId A snapshot ID
         * 
         * @return builder
         * 
         */
        public Builder snapshotId(String snapshotId) {
            return snapshotId(Output.of(snapshotId));
        }

        public SnapshotCreateVolumePermissionArgs build() {
            if ($.accountId == null) {
                throw new MissingRequiredPropertyException("SnapshotCreateVolumePermissionArgs", "accountId");
            }
            if ($.snapshotId == null) {
                throw new MissingRequiredPropertyException("SnapshotCreateVolumePermissionArgs", "snapshotId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy