com.pulumi.aws.ssm.outputs.GetDocumentResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDocumentResult {
/**
* @return ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead.
*
*/
private String arn;
/**
* @return The content for the SSM document in JSON or YAML format.
*
*/
private String content;
private @Nullable String documentFormat;
/**
* @return The type of the document.
*
*/
private String documentType;
private @Nullable String documentVersion;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String name;
private GetDocumentResult() {}
/**
* @return ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead.
*
*/
public String arn() {
return this.arn;
}
/**
* @return The content for the SSM document in JSON or YAML format.
*
*/
public String content() {
return this.content;
}
public Optional documentFormat() {
return Optional.ofNullable(this.documentFormat);
}
/**
* @return The type of the document.
*
*/
public String documentType() {
return this.documentType;
}
public Optional documentVersion() {
return Optional.ofNullable(this.documentVersion);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDocumentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String content;
private @Nullable String documentFormat;
private String documentType;
private @Nullable String documentVersion;
private String id;
private String name;
public Builder() {}
public Builder(GetDocumentResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.content = defaults.content;
this.documentFormat = defaults.documentFormat;
this.documentType = defaults.documentType;
this.documentVersion = defaults.documentVersion;
this.id = defaults.id;
this.name = defaults.name;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetDocumentResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder content(String content) {
if (content == null) {
throw new MissingRequiredPropertyException("GetDocumentResult", "content");
}
this.content = content;
return this;
}
@CustomType.Setter
public Builder documentFormat(@Nullable String documentFormat) {
this.documentFormat = documentFormat;
return this;
}
@CustomType.Setter
public Builder documentType(String documentType) {
if (documentType == null) {
throw new MissingRequiredPropertyException("GetDocumentResult", "documentType");
}
this.documentType = documentType;
return this;
}
@CustomType.Setter
public Builder documentVersion(@Nullable String documentVersion) {
this.documentVersion = documentVersion;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDocumentResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDocumentResult", "name");
}
this.name = name;
return this;
}
public GetDocumentResult build() {
final var _resultValue = new GetDocumentResult();
_resultValue.arn = arn;
_resultValue.content = content;
_resultValue.documentFormat = documentFormat;
_resultValue.documentType = documentType;
_resultValue.documentVersion = documentVersion;
_resultValue.id = id;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy