com.github.zw201913.entity.SetHookOpts Maven / Gradle / Ivy
package com.github.zw201913.entity;
import java.util.List;
/**
* @author zouwei
* @className SetHookOpts
* @date: 2022/8/18 上午10:47
* @description:
*/
abstract class SetHookOpts extends SetChanOpts {
private String endpoint;
protected SetHookOpts(Builder builder) {
super(builder);
this.endpoint = builder.endpoint;
}
protected void init() {
super.init();
addFunction("endpoint", list -> list.add(this.endpoint));
}
@Override
public List commandLine() {
return commandLine("name", "endpoint", "META", "EX", "COMMAND", "searchOpts");
}
public abstract static class Builder extends SetChanOpts.Builder {
private String endpoint;
public Builder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
}
}