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

com.pulumi.aws.ssm.inputs.GetDocumentArgs 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.60.0-alpha.1731982519
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.ssm.inputs;

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


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

    public static final GetDocumentArgs Empty = new GetDocumentArgs();

    /**
     * The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
     * 
     */
    @Import(name="documentFormat")
    private @Nullable Output documentFormat;

    /**
     * @return The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
     * 
     */
    public Optional> documentFormat() {
        return Optional.ofNullable(this.documentFormat);
    }

    /**
     * The document version.
     * 
     */
    @Import(name="documentVersion")
    private @Nullable Output documentVersion;

    /**
     * @return The document version.
     * 
     */
    public Optional> documentVersion() {
        return Optional.ofNullable(this.documentVersion);
    }

    /**
     * The name of the document.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the document.
     * 
     */
    public Output name() {
        return this.name;
    }

    private GetDocumentArgs() {}

    private GetDocumentArgs(GetDocumentArgs $) {
        this.documentFormat = $.documentFormat;
        this.documentVersion = $.documentVersion;
        this.name = $.name;
    }

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

    public static final class Builder {
        private GetDocumentArgs $;

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

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

        /**
         * @param documentFormat The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
         * 
         * @return builder
         * 
         */
        public Builder documentFormat(@Nullable Output documentFormat) {
            $.documentFormat = documentFormat;
            return this;
        }

        /**
         * @param documentFormat The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
         * 
         * @return builder
         * 
         */
        public Builder documentFormat(String documentFormat) {
            return documentFormat(Output.of(documentFormat));
        }

        /**
         * @param documentVersion The document version.
         * 
         * @return builder
         * 
         */
        public Builder documentVersion(@Nullable Output documentVersion) {
            $.documentVersion = documentVersion;
            return this;
        }

        /**
         * @param documentVersion The document version.
         * 
         * @return builder
         * 
         */
        public Builder documentVersion(String documentVersion) {
            return documentVersion(Output.of(documentVersion));
        }

        /**
         * @param name The name of the document.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the document.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public GetDocumentArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetDocumentArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy