All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zw201913.entity.SetHookOpts Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy