com.pulumi.aws.ssm.outputs.GetInstancesResult 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.aws.ssm.outputs.GetInstancesFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetInstancesResult {
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Set of instance IDs of the matched SSM managed instances.
*
*/
private List ids;
private GetInstancesResult() {}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Set of instance IDs of the matched SSM managed instances.
*
*/
public List ids() {
return this.ids;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetInstancesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filters;
private String id;
private List ids;
public Builder() {}
public Builder(GetInstancesResult defaults) {
Objects.requireNonNull(defaults);
this.filters = defaults.filters;
this.id = defaults.id;
this.ids = defaults.ids;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetInstancesFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetInstancesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetInstancesResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
public GetInstancesResult build() {
final var _resultValue = new GetInstancesResult();
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.ids = ids;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy