
com.pulumi.aws.autoscaling.outputs.GetAmiIdsResult 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.autoscaling.outputs;
import com.pulumi.aws.autoscaling.outputs.GetAmiIdsFilter;
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 GetAmiIdsResult {
/**
* @return List of the Autoscaling Groups Arns in the current region.
*
*/
private List arns;
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of the Autoscaling Groups in the current region.
*
*/
private List names;
private GetAmiIdsResult() {}
/**
* @return List of the Autoscaling Groups Arns in the current region.
*
*/
public List arns() {
return this.arns;
}
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 List of the Autoscaling Groups in the current region.
*
*/
public List names() {
return this.names;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAmiIdsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List arns;
private @Nullable List filters;
private String id;
private List names;
public Builder() {}
public Builder(GetAmiIdsResult defaults) {
Objects.requireNonNull(defaults);
this.arns = defaults.arns;
this.filters = defaults.filters;
this.id = defaults.id;
this.names = defaults.names;
}
@CustomType.Setter
public Builder arns(List arns) {
if (arns == null) {
throw new MissingRequiredPropertyException("GetAmiIdsResult", "arns");
}
this.arns = arns;
return this;
}
public Builder arns(String... arns) {
return arns(List.of(arns));
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetAmiIdsFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAmiIdsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetAmiIdsResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
public GetAmiIdsResult build() {
final var _resultValue = new GetAmiIdsResult();
_resultValue.arns = arns;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.names = names;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy