com.pulumi.linode.outputs.GetImagesResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetImagesFilter;
import com.pulumi.linode.outputs.GetImagesImage;
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 GetImagesResult {
private @Nullable List filters;
/**
* @return The unique ID of this Image. The ID of private images begin with `private/` followed by the numeric identifier of the private image, for example `private/12345`.
*
*/
private String id;
private @Nullable List images;
private @Nullable Boolean latest;
private @Nullable String order;
private @Nullable String orderBy;
private GetImagesResult() {}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
/**
* @return The unique ID of this Image. The ID of private images begin with `private/` followed by the numeric identifier of the private image, for example `private/12345`.
*
*/
public String id() {
return this.id;
}
public List images() {
return this.images == null ? List.of() : this.images;
}
public Optional latest() {
return Optional.ofNullable(this.latest);
}
public Optional order() {
return Optional.ofNullable(this.order);
}
public Optional orderBy() {
return Optional.ofNullable(this.orderBy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetImagesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filters;
private String id;
private @Nullable List images;
private @Nullable Boolean latest;
private @Nullable String order;
private @Nullable String orderBy;
public Builder() {}
public Builder(GetImagesResult defaults) {
Objects.requireNonNull(defaults);
this.filters = defaults.filters;
this.id = defaults.id;
this.images = defaults.images;
this.latest = defaults.latest;
this.order = defaults.order;
this.orderBy = defaults.orderBy;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetImagesFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetImagesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder images(@Nullable List images) {
this.images = images;
return this;
}
public Builder images(GetImagesImage... images) {
return images(List.of(images));
}
@CustomType.Setter
public Builder latest(@Nullable Boolean latest) {
this.latest = latest;
return this;
}
@CustomType.Setter
public Builder order(@Nullable String order) {
this.order = order;
return this;
}
@CustomType.Setter
public Builder orderBy(@Nullable String orderBy) {
this.orderBy = orderBy;
return this;
}
public GetImagesResult build() {
final var _resultValue = new GetImagesResult();
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.images = images;
_resultValue.latest = latest;
_resultValue.order = order;
_resultValue.orderBy = orderBy;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy