Class PutTransformRequest
java.lang.Object
org.elasticsearch.client.transform.PutTransformRequest
- All Implemented Interfaces:
Validatable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class PutTransformRequest extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContentObject, Validatable
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFER_VALIDATION -
Constructor Summary
Constructors Constructor Description PutTransformRequest(TransformConfig config) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)TransformConfiggetConfig()java.lang.BooleangetDeferValidation()inthashCode()voidsetDeferValidation(boolean deferValidation)Indicates if deferrable validations should be skipped until the transform startsorg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)java.util.Optional<ValidationException>validate()Perform validation.
-
Field Details
-
DEFER_VALIDATION
public static final java.lang.String DEFER_VALIDATION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getConfig
-
getDeferValidation
public java.lang.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
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 org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-