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

com.pulumi.aws.ebs.outputs.GetSnapshotIdsResult 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.ebs.outputs;

import com.pulumi.aws.ebs.outputs.GetSnapshotIdsFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetSnapshotIdsResult {
    private @Nullable List filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Set of EBS snapshot IDs, sorted by creation time in descending order.
     * 
     */
    private List ids;
    private @Nullable List owners;
    private @Nullable List restorableByUserIds;

    private GetSnapshotIdsResult() {}
    public List filters() {
        return this.filters == null ? List.of() : this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Set of EBS snapshot IDs, sorted by creation time in descending order.
     * 
     */
    public List ids() {
        return this.ids;
    }
    public List owners() {
        return this.owners == null ? List.of() : this.owners;
    }
    public List restorableByUserIds() {
        return this.restorableByUserIds == null ? List.of() : this.restorableByUserIds;
    }

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

    public static Builder builder(GetSnapshotIdsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List filters;
        private String id;
        private List ids;
        private @Nullable List owners;
        private @Nullable List restorableByUserIds;
        public Builder() {}
        public Builder(GetSnapshotIdsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.owners = defaults.owners;
    	      this.restorableByUserIds = defaults.restorableByUserIds;
        }

        @CustomType.Setter
        public Builder filters(@Nullable List filters) {

            this.filters = filters;
            return this;
        }
        public Builder filters(GetSnapshotIdsFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSnapshotIdsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ids(List ids) {
            if (ids == null) {
              throw new MissingRequiredPropertyException("GetSnapshotIdsResult", "ids");
            }
            this.ids = ids;
            return this;
        }
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }
        @CustomType.Setter
        public Builder owners(@Nullable List owners) {

            this.owners = owners;
            return this;
        }
        public Builder owners(String... owners) {
            return owners(List.of(owners));
        }
        @CustomType.Setter
        public Builder restorableByUserIds(@Nullable List restorableByUserIds) {

            this.restorableByUserIds = restorableByUserIds;
            return this;
        }
        public Builder restorableByUserIds(String... restorableByUserIds) {
            return restorableByUserIds(List.of(restorableByUserIds));
        }
        public GetSnapshotIdsResult build() {
            final var _resultValue = new GetSnapshotIdsResult();
            _resultValue.filters = filters;
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.owners = owners;
            _resultValue.restorableByUserIds = restorableByUserIds;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy