com.equinix.pulumi.metal.inputs.GetDevicesSort Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of equinix Show documentation
Show all versions of equinix Show documentation
A Pulumi package for creating and managing equinix 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.equinix.pulumi.metal.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 GetDevicesSort extends com.pulumi.resources.InvokeArgs {
public static final GetDevicesSort Empty = new GetDevicesSort();
/**
* The attribute used to sort the results. Sort attributes are case-sensitive
*
*/
@Import(name="attribute", required=true)
private String attribute;
/**
* @return The attribute used to sort the results. Sort attributes are case-sensitive
*
*/
public String attribute() {
return this.attribute;
}
/**
* Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
*
*/
@Import(name="direction")
private @Nullable String direction;
/**
* @return Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
*
*/
public Optional direction() {
return Optional.ofNullable(this.direction);
}
private GetDevicesSort() {}
private GetDevicesSort(GetDevicesSort $) {
this.attribute = $.attribute;
this.direction = $.direction;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDevicesSort defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetDevicesSort $;
public Builder() {
$ = new GetDevicesSort();
}
public Builder(GetDevicesSort defaults) {
$ = new GetDevicesSort(Objects.requireNonNull(defaults));
}
/**
* @param attribute The attribute used to sort the results. Sort attributes are case-sensitive
*
* @return builder
*
*/
public Builder attribute(String attribute) {
$.attribute = attribute;
return this;
}
/**
* @param direction Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
*
* @return builder
*
*/
public Builder direction(@Nullable String direction) {
$.direction = direction;
return this;
}
public GetDevicesSort build() {
if ($.attribute == null) {
throw new MissingRequiredPropertyException("GetDevicesSort", "attribute");
}
return $;
}
}
}