Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// *** 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.digitalocean.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetImagesSort extends com.pulumi.resources.InvokeArgs {
public static final GetImagesSort Empty = new GetImagesSort();
/**
* The sort direction. This may be either `asc` or `desc`.
*
*/
@Import(name="direction")
private @Nullable String direction;
/**
* @return The sort direction. This may be either `asc` or `desc`.
*
*/
public Optional direction() {
return Optional.ofNullable(this.direction);
}
/**
* Sort the images by this key. This may be one of `distribution`, `error_message`, `id`,
* `image`, `min_disk_size`, `name`, `private`, `size_gigabytes`, `slug`, `status`, or `type`.
*
*/
@Import(name="key", required=true)
private String key;
/**
* @return Sort the images by this key. This may be one of `distribution`, `error_message`, `id`,
* `image`, `min_disk_size`, `name`, `private`, `size_gigabytes`, `slug`, `status`, or `type`.
*
*/
public String key() {
return this.key;
}
private GetImagesSort() {}
private GetImagesSort(GetImagesSort $) {
this.direction = $.direction;
this.key = $.key;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetImagesSort defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetImagesSort $;
public Builder() {
$ = new GetImagesSort();
}
public Builder(GetImagesSort defaults) {
$ = new GetImagesSort(Objects.requireNonNull(defaults));
}
/**
* @param direction The sort direction. This may be either `asc` or `desc`.
*
* @return builder
*
*/
public Builder direction(@Nullable String direction) {
$.direction = direction;
return this;
}
/**
* @param key Sort the images by this key. This may be one of `distribution`, `error_message`, `id`,
* `image`, `min_disk_size`, `name`, `private`, `size_gigabytes`, `slug`, `status`, or `type`.
*
* @return builder
*
*/
public Builder key(String key) {
$.key = key;
return this;
}
public GetImagesSort build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("GetImagesSort", "key");
}
return $;
}
}
}