com.pulumi.aws.outposts.outputs.GetAssetsResult Maven / Gradle / Ivy
// *** 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.outposts.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 javax.annotation.Nullable;
@CustomType
public final class GetAssetsResult {
private String arn;
/**
* @return List of all the asset ids found. This data source will fail if none are found.
*
*/
private List assetIds;
private @Nullable List hostIdFilters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable List statusIdFilters;
private GetAssetsResult() {}
public String arn() {
return this.arn;
}
/**
* @return List of all the asset ids found. This data source will fail if none are found.
*
*/
public List assetIds() {
return this.assetIds;
}
public List hostIdFilters() {
return this.hostIdFilters == null ? List.of() : this.hostIdFilters;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List statusIdFilters() {
return this.statusIdFilters == null ? List.of() : this.statusIdFilters;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAssetsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private List assetIds;
private @Nullable List hostIdFilters;
private String id;
private @Nullable List statusIdFilters;
public Builder() {}
public Builder(GetAssetsResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.assetIds = defaults.assetIds;
this.hostIdFilters = defaults.hostIdFilters;
this.id = defaults.id;
this.statusIdFilters = defaults.statusIdFilters;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetAssetsResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder assetIds(List assetIds) {
if (assetIds == null) {
throw new MissingRequiredPropertyException("GetAssetsResult", "assetIds");
}
this.assetIds = assetIds;
return this;
}
public Builder assetIds(String... assetIds) {
return assetIds(List.of(assetIds));
}
@CustomType.Setter
public Builder hostIdFilters(@Nullable List hostIdFilters) {
this.hostIdFilters = hostIdFilters;
return this;
}
public Builder hostIdFilters(String... hostIdFilters) {
return hostIdFilters(List.of(hostIdFilters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAssetsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder statusIdFilters(@Nullable List statusIdFilters) {
this.statusIdFilters = statusIdFilters;
return this;
}
public Builder statusIdFilters(String... statusIdFilters) {
return statusIdFilters(List.of(statusIdFilters));
}
public GetAssetsResult build() {
final var _resultValue = new GetAssetsResult();
_resultValue.arn = arn;
_resultValue.assetIds = assetIds;
_resultValue.hostIdFilters = hostIdFilters;
_resultValue.id = id;
_resultValue.statusIdFilters = statusIdFilters;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy