tech.ytsaurus.client.request.VanillaOperation Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import tech.ytsaurus.client.operations.VanillaSpec;
/**
* Immutable vanilla operation request.
*
* @see tech.ytsaurus.client.ApiServiceClient#startVanilla(VanillaOperation)
* @see
* vanilla documentation
*
*/
public class VanillaOperation extends BaseOperation {
VanillaOperation(Builder builder) {
super(builder);
}
/**
* Construct a builder with options set from this request.
*/
public Builder toBuilder() {
return builder()
.setSpec(getSpec())
.setMutatingOptions(getMutatingOptions())
.setTransactionalOptions(getTransactionalOptions().orElse(null));
}
/**
* Create empty builder.
*/
public static Builder builder() {
return new Builder();
}
/**
* Builder of {@link VanillaOperation}.
*/
public static class Builder extends BuilderBase {
/**
* Create instance of {@link VanillaOperation}.
*/
public VanillaOperation build() {
return new VanillaOperation(this);
}
protected Builder self() {
return this;
}
}
}