public class PipelineOptionsValidator
extends java.lang.Object
PipelineOptions
conforms to all the Validation
criteria.Constructor and Description |
---|
PipelineOptionsValidator() |
Modifier and Type | Method and Description |
---|---|
static <T extends PipelineOptions> |
validate(java.lang.Class<T> klass,
PipelineOptions options)
Validates that the passed
PipelineOptions conforms to all the validation criteria from
the passed in interface. |
static <T extends PipelineOptions> |
validateCli(java.lang.Class<T> klass,
PipelineOptions options)
Validates that the passed
PipelineOptions from command line interface (CLI) conforms to
all the validation criteria from the passed in interface. |
public static <T extends PipelineOptions> T validate(java.lang.Class<T> klass, PipelineOptions options)
PipelineOptions
conforms to all the validation criteria from
the passed in interface.
Note that the interface requested must conform to the validation criteria specified on
PipelineOptions.as(Class)
.
klass
- The interface to fetch validation criteria from.options
- The PipelineOptions
to validate.public static <T extends PipelineOptions> T validateCli(java.lang.Class<T> klass, PipelineOptions options)
PipelineOptions
from command line interface (CLI) conforms to
all the validation criteria from the passed in interface.
Note that the interface requested must conform to the validation criteria specified on
PipelineOptions.as(Class)
.
klass
- The interface to fetch validation criteria from.options
- The PipelineOptions
to validate.