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

com.pulumi.aws.rds.outputs.GetInstancesResult 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.rds.outputs;

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

@CustomType
public final class GetInstancesResult {
    private @Nullable List filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return ARNs of the matched RDS instances.
     * 
     */
    private List instanceArns;
    /**
     * @return Identifiers of the matched RDS instances.
     * 
     */
    private List instanceIdentifiers;
    private Map tags;

    private GetInstancesResult() {}
    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 ARNs of the matched RDS instances.
     * 
     */
    public List instanceArns() {
        return this.instanceArns;
    }
    /**
     * @return Identifiers of the matched RDS instances.
     * 
     */
    public List instanceIdentifiers() {
        return this.instanceIdentifiers;
    }
    public Map tags() {
        return this.tags;
    }

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

    public static Builder builder(GetInstancesResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List filters;
        private String id;
        private List instanceArns;
        private List instanceIdentifiers;
        private Map tags;
        public Builder() {}
        public Builder(GetInstancesResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.instanceArns = defaults.instanceArns;
    	      this.instanceIdentifiers = defaults.instanceIdentifiers;
    	      this.tags = defaults.tags;
        }

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

            this.filters = filters;
            return this;
        }
        public Builder filters(GetInstancesFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetInstancesResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder instanceArns(List instanceArns) {
            if (instanceArns == null) {
              throw new MissingRequiredPropertyException("GetInstancesResult", "instanceArns");
            }
            this.instanceArns = instanceArns;
            return this;
        }
        public Builder instanceArns(String... instanceArns) {
            return instanceArns(List.of(instanceArns));
        }
        @CustomType.Setter
        public Builder instanceIdentifiers(List instanceIdentifiers) {
            if (instanceIdentifiers == null) {
              throw new MissingRequiredPropertyException("GetInstancesResult", "instanceIdentifiers");
            }
            this.instanceIdentifiers = instanceIdentifiers;
            return this;
        }
        public Builder instanceIdentifiers(String... instanceIdentifiers) {
            return instanceIdentifiers(List.of(instanceIdentifiers));
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetInstancesResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        public GetInstancesResult build() {
            final var _resultValue = new GetInstancesResult();
            _resultValue.filters = filters;
            _resultValue.id = id;
            _resultValue.instanceArns = instanceArns;
            _resultValue.instanceIdentifiers = instanceIdentifiers;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy