public static class Criterion.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Criterion |
build()
Build an immutable Criterion.
|
Criterion.Builder |
withId(java.lang.String id)
Set the id of the resource (cluster, command, etc) to use.
|
Criterion.Builder |
withName(java.lang.String name)
Set the name of the resource (cluster, command, etc) to search for.
|
Criterion.Builder |
withStatus(java.lang.String status)
Set the status to search for.
|
Criterion.Builder |
withTags(java.util.Set<java.lang.String> tags)
Set the tags to use in the search.
|
Criterion.Builder |
withVersion(java.lang.String version)
Set the version of the resource (cluster, command, etc) to search for.
|
public Criterion.Builder withId(@Nullable java.lang.String id)
id - The idpublic Criterion.Builder withName(@Nullable java.lang.String name)
name - The name of the resourcepublic Criterion.Builder withVersion(@Nullable java.lang.String version)
version - The version of the resourcepublic Criterion.Builder withStatus(@Nullable java.lang.String status)
status - The status to override the default withpublic Criterion.Builder withTags(@Nullable java.util.Set<java.lang.String> tags)
tags - The tags. Any blanks will be removedpublic Criterion build() throws GeniePreconditionException
GeniePreconditionException - A valid Criterion must have at least one field populated