tech.ytsaurus.client.request.RemoteCopyOperation Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import tech.ytsaurus.client.operations.RemoteCopySpec;
/**
* Immutable remote_copy operation request.
*
* @see tech.ytsaurus.client.ApiServiceClient#startRemoteCopy(RemoteCopyOperation)
* @see
* remote_copy documentation
*
*/
public class RemoteCopyOperation extends BaseOperation {
RemoteCopyOperation(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 RemoteCopyOperation}.
*/
public static class Builder extends BuilderBase {
/**
* Create instance of {@link RemoteCopyOperation}.
*/
public RemoteCopyOperation build() {
return new RemoteCopyOperation(this);
}
protected Builder self() {
return this;
}
}
}