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

com.pulumi.aws.ebs.inputs.GetSnapshotArgs 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.72.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.aws.ebs.inputs;

import com.pulumi.aws.ebs.inputs.GetSnapshotFilterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetSnapshotArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSnapshotArgs Empty = new GetSnapshotArgs();

    /**
     * One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-snapshots in the AWS CLI reference][1].
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

    /**
     * @return One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-snapshots in the AWS CLI reference][1].
     * 
     */
    public Optional>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * If more than one result is returned, use the most recent snapshot.
     * 
     */
    @Import(name="mostRecent")
    private @Nullable Output mostRecent;

    /**
     * @return If more than one result is returned, use the most recent snapshot.
     * 
     */
    public Optional> mostRecent() {
        return Optional.ofNullable(this.mostRecent);
    }

    /**
     * Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
     * 
     */
    @Import(name="owners")
    private @Nullable Output> owners;

    /**
     * @return Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
     * 
     */
    public Optional>> owners() {
        return Optional.ofNullable(this.owners);
    }

    /**
     * One or more AWS accounts IDs that can create volumes from the snapshot.
     * 
     */
    @Import(name="restorableByUserIds")
    private @Nullable Output> restorableByUserIds;

    /**
     * @return One or more AWS accounts IDs that can create volumes from the snapshot.
     * 
     */
    public Optional>> restorableByUserIds() {
        return Optional.ofNullable(this.restorableByUserIds);
    }

    /**
     * Returns information on a specific snapshot_id.
     * 
     */
    @Import(name="snapshotIds")
    private @Nullable Output> snapshotIds;

    /**
     * @return Returns information on a specific snapshot_id.
     * 
     */
    public Optional>> snapshotIds() {
        return Optional.ofNullable(this.snapshotIds);
    }

    /**
     * Map of tags for the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Map of tags for the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetSnapshotArgs() {}

    private GetSnapshotArgs(GetSnapshotArgs $) {
        this.filters = $.filters;
        this.mostRecent = $.mostRecent;
        this.owners = $.owners;
        this.restorableByUserIds = $.restorableByUserIds;
        this.snapshotIds = $.snapshotIds;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetSnapshotArgs $;

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

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

        /**
         * @param filters One or more name/value pairs to filter off of. There are
         * several valid keys, for a full reference, check out
         * [describe-snapshots in the AWS CLI reference][1].
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters One or more name/value pairs to filter off of. There are
         * several valid keys, for a full reference, check out
         * [describe-snapshots in the AWS CLI reference][1].
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters One or more name/value pairs to filter off of. There are
         * several valid keys, for a full reference, check out
         * [describe-snapshots in the AWS CLI reference][1].
         * 
         * @return builder
         * 
         */
        public Builder filters(GetSnapshotFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param mostRecent If more than one result is returned, use the most recent snapshot.
         * 
         * @return builder
         * 
         */
        public Builder mostRecent(@Nullable Output mostRecent) {
            $.mostRecent = mostRecent;
            return this;
        }

        /**
         * @param mostRecent If more than one result is returned, use the most recent snapshot.
         * 
         * @return builder
         * 
         */
        public Builder mostRecent(Boolean mostRecent) {
            return mostRecent(Output.of(mostRecent));
        }

        /**
         * @param owners Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
         * 
         * @return builder
         * 
         */
        public Builder owners(@Nullable Output> owners) {
            $.owners = owners;
            return this;
        }

        /**
         * @param owners Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
         * 
         * @return builder
         * 
         */
        public Builder owners(List owners) {
            return owners(Output.of(owners));
        }

        /**
         * @param owners Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
         * 
         * @return builder
         * 
         */
        public Builder owners(String... owners) {
            return owners(List.of(owners));
        }

        /**
         * @param restorableByUserIds One or more AWS accounts IDs that can create volumes from the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder restorableByUserIds(@Nullable Output> restorableByUserIds) {
            $.restorableByUserIds = restorableByUserIds;
            return this;
        }

        /**
         * @param restorableByUserIds One or more AWS accounts IDs that can create volumes from the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder restorableByUserIds(List restorableByUserIds) {
            return restorableByUserIds(Output.of(restorableByUserIds));
        }

        /**
         * @param restorableByUserIds One or more AWS accounts IDs that can create volumes from the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder restorableByUserIds(String... restorableByUserIds) {
            return restorableByUserIds(List.of(restorableByUserIds));
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(@Nullable Output> snapshotIds) {
            $.snapshotIds = snapshotIds;
            return this;
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(List snapshotIds) {
            return snapshotIds(Output.of(snapshotIds));
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(String... snapshotIds) {
            return snapshotIds(List.of(snapshotIds));
        }

        /**
         * @param tags Map of tags for the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of tags for the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public GetSnapshotArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy