Class PutTransformRequest
- java.lang.Object
-
- org.elasticsearch.client.transform.PutTransformRequest
-
- All Implemented Interfaces:
Validatable,ToXContent,ToXContentObject
public class PutTransformRequest extends Object implements ToXContentObject, Validatable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFER_VALIDATION-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description PutTransformRequest(TransformConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TransformConfiggetConfig()BooleangetDeferValidation()inthashCode()voidsetDeferValidation(boolean deferValidation)Indicates if deferrable validations should be skipped until the transform startsXContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)Optional<ValidationException>validate()Perform validation.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
DEFER_VALIDATION
public static final String DEFER_VALIDATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PutTransformRequest
public PutTransformRequest(TransformConfig config)
-
-
Method Detail
-
getConfig
public TransformConfig getConfig()
-
getDeferValidation
public Boolean getDeferValidation()
-
setDeferValidation
public void setDeferValidation(boolean deferValidation)
Indicates if deferrable validations should be skipped until the transform starts- Parameters:
deferValidation-truewill cause validations to be deferred
-
validate
public Optional<ValidationException> validate()
Description copied from interface:ValidatablePerform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationExceptionthat is not null is assumed to contain validation errors and will be thrown.- Specified by:
validatein interfaceValidatable- Returns:
- An
OptionalValidationExceptionthat contains a list of validation errors.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-