
com.pulumi.aws.ssm.inputs.GetDocumentPlainArgs 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.ssm.inputs;
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 GetDocumentPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetDocumentPlainArgs Empty = new GetDocumentPlainArgs();
/**
* The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
*
*/
@Import(name="documentFormat")
private @Nullable String 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 String documentVersion;
/**
* @return The document version.
*
*/
public Optional documentVersion() {
return Optional.ofNullable(this.documentVersion);
}
/**
* The name of the document.
*
*/
@Import(name="name", required=true)
private String name;
/**
* @return The name of the document.
*
*/
public String name() {
return this.name;
}
private GetDocumentPlainArgs() {}
private GetDocumentPlainArgs(GetDocumentPlainArgs $) {
this.documentFormat = $.documentFormat;
this.documentVersion = $.documentVersion;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDocumentPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetDocumentPlainArgs $;
public Builder() {
$ = new GetDocumentPlainArgs();
}
public Builder(GetDocumentPlainArgs defaults) {
$ = new GetDocumentPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param documentFormat The format of the document. Valid values: `JSON`, `TEXT`, `YAML`.
*
* @return builder
*
*/
public Builder documentFormat(@Nullable String documentFormat) {
$.documentFormat = documentFormat;
return this;
}
/**
* @param documentVersion The document version.
*
* @return builder
*
*/
public Builder documentVersion(@Nullable String documentVersion) {
$.documentVersion = documentVersion;
return this;
}
/**
* @param name The name of the document.
*
* @return builder
*
*/
public Builder name(String name) {
$.name = name;
return this;
}
public GetDocumentPlainArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetDocumentPlainArgs", "name");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy