
com.pulumi.aws.ec2.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.ec2.outputs;
import com.pulumi.aws.ec2.outputs.GetAmiIdsFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAmiIdsResult {
private @Nullable List executableUsers;
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable Boolean includeDeprecated;
private @Nullable String nameRegex;
private List owners;
private @Nullable Boolean sortAscending;
private GetAmiIdsResult() {}
public List executableUsers() {
return this.executableUsers == null ? List.of() : this.executableUsers;
}
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;
}
public List ids() {
return this.ids;
}
public Optional includeDeprecated() {
return Optional.ofNullable(this.includeDeprecated);
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
public List owners() {
return this.owners;
}
public Optional sortAscending() {
return Optional.ofNullable(this.sortAscending);
}
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 @Nullable List executableUsers;
private @Nullable List filters;
private String id;
private List ids;
private @Nullable Boolean includeDeprecated;
private @Nullable String nameRegex;
private List owners;
private @Nullable Boolean sortAscending;
public Builder() {}
public Builder(GetAmiIdsResult defaults) {
Objects.requireNonNull(defaults);
this.executableUsers = defaults.executableUsers;
this.filters = defaults.filters;
this.id = defaults.id;
this.ids = defaults.ids;
this.includeDeprecated = defaults.includeDeprecated;
this.nameRegex = defaults.nameRegex;
this.owners = defaults.owners;
this.sortAscending = defaults.sortAscending;
}
@CustomType.Setter
public Builder executableUsers(@Nullable List executableUsers) {
this.executableUsers = executableUsers;
return this;
}
public Builder executableUsers(String... executableUsers) {
return executableUsers(List.of(executableUsers));
}
@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 ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetAmiIdsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder includeDeprecated(@Nullable Boolean includeDeprecated) {
this.includeDeprecated = includeDeprecated;
return this;
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder owners(List owners) {
if (owners == null) {
throw new MissingRequiredPropertyException("GetAmiIdsResult", "owners");
}
this.owners = owners;
return this;
}
public Builder owners(String... owners) {
return owners(List.of(owners));
}
@CustomType.Setter
public Builder sortAscending(@Nullable Boolean sortAscending) {
this.sortAscending = sortAscending;
return this;
}
public GetAmiIdsResult build() {
final var _resultValue = new GetAmiIdsResult();
_resultValue.executableUsers = executableUsers;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.includeDeprecated = includeDeprecated;
_resultValue.nameRegex = nameRegex;
_resultValue.owners = owners;
_resultValue.sortAscending = sortAscending;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy