
com.pulumi.aws.ssm.outputs.DocumentAttachmentsSource 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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DocumentAttachmentsSource {
/**
* @return The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
*
*/
private String key;
/**
* @return The name of the document attachment file.
*
*/
private @Nullable String name;
/**
* @return The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
*
*/
private List values;
private DocumentAttachmentsSource() {}
/**
* @return The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
*
*/
public String key() {
return this.key;
}
/**
* @return The name of the document attachment file.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DocumentAttachmentsSource defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String key;
private @Nullable String name;
private List values;
public Builder() {}
public Builder(DocumentAttachmentsSource defaults) {
Objects.requireNonNull(defaults);
this.key = defaults.key;
this.name = defaults.name;
this.values = defaults.values;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("DocumentAttachmentsSource", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("DocumentAttachmentsSource", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public DocumentAttachmentsSource build() {
final var _resultValue = new DocumentAttachmentsSource();
_resultValue.key = key;
_resultValue.name = name;
_resultValue.values = values;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy