blob: 06a063a15512e3c48a9cb906f170927e92e7b738 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.table.client.cli;
import java.net.URL;
import java.util.List;
/**
* Command line options to configure the SQL client. Arguments that have not been specified
* by the user are null.
*/
public class CliOptions {
private final boolean isPrintHelp;
private final String sessionId;
private final URL environment;
private final URL defaults;
private final List<URL> jars;
private final List<URL> libraryDirs;
private final String updateStatement;
public CliOptions(
boolean isPrintHelp,
String sessionId,
URL environment,
URL defaults,
List<URL> jars,
List<URL> libraryDirs,
String updateStatement) {
this.isPrintHelp = isPrintHelp;
this.sessionId = sessionId;
this.environment = environment;
this.defaults = defaults;
this.jars = jars;
this.libraryDirs = libraryDirs;
this.updateStatement = updateStatement;
}
public boolean isPrintHelp() {
return isPrintHelp;
}
public String getSessionId() {
return sessionId;
}
public URL getEnvironment() {
return environment;
}
public URL getDefaults() {
return defaults;
}
public List<URL> getJars() {
return jars;
}
public List<URL> getLibraryDirs() {
return libraryDirs;
}
public String getUpdateStatement() {
return updateStatement;
}
}