Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.options
Class PipelineOptionsValidator
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.options.PipelineOptionsValidator
-
public class PipelineOptionsValidator extends Object
Validates that thePipelineOptions
conforms to all theValidation
criteria.
-
-
Constructor Summary
Constructors Constructor and Description PipelineOptionsValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <T extends PipelineOptions>
Tvalidate(Class<T> klass, PipelineOptions options)
Validates that the passedPipelineOptions
conforms to all the validation criteria from the passed in interface.
-
-
-
Method Detail
-
validate
public static <T extends PipelineOptions> T validate(Class<T> klass, PipelineOptions options)
Validates that the passedPipelineOptions
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)
.- Parameters:
klass
- The interface to fetch validation criteria from.options
- ThePipelineOptions
to validate.- Returns:
- The type
-
-