com.pulumi.aws.ssm.outputs.AssociationTarget 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.
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.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;
@CustomType
public final class AssociationTarget {
/**
* @return Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
*
*/
private String key;
/**
* @return A list of instance IDs or tag values. AWS currently limits this list size to one value.
*
*/
private List values;
private AssociationTarget() {}
/**
* @return Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
*
*/
public String key() {
return this.key;
}
/**
* @return A list of instance IDs or tag values. AWS currently limits this list size to one value.
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AssociationTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String key;
private List values;
public Builder() {}
public Builder(AssociationTarget defaults) {
Objects.requireNonNull(defaults);
this.key = defaults.key;
this.values = defaults.values;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("AssociationTarget", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("AssociationTarget", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public AssociationTarget build() {
final var _resultValue = new AssociationTarget();
_resultValue.key = key;
_resultValue.values = values;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy