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

com.pulumi.aws.opensearch.inputs.GetServerlessCollectionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.opensearch.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 GetServerlessCollectionArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetServerlessCollectionArgs Empty = new GetServerlessCollectionArgs();

    /**
     * ID of the collection. Either `id` or `name` must be provided.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return ID of the collection. Either `id` or `name` must be provided.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the collection. Either `name` or `id` must be provided.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the collection. Either `name` or `id` must be provided.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private GetServerlessCollectionArgs() {}

    private GetServerlessCollectionArgs(GetServerlessCollectionArgs $) {
        this.id = $.id;
        this.name = $.name;
    }

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

    public static final class Builder {
        private GetServerlessCollectionArgs $;

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

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

        /**
         * @param id ID of the collection. Either `id` or `name` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id ID of the collection. Either `id` or `name` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the collection. Either `name` or `id` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the collection. Either `name` or `id` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public GetServerlessCollectionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy