public abstract static class ServerModel.PreConfig
extends java.lang.Object
ServerModel.PreConfig abstract class wraps various properties about server configurations,
including whether or not new servers can be configured or switched to, among others.| Modifier and Type | Class and Description |
|---|---|
static class |
ServerModel.PreConfig.Builder
The
ServerModel.PreConfig.Builder abstract class allows the user to create and return a
ServerModel.PreConfig object. |
| Modifier and Type | Method and Description |
|---|---|
static ServerModel.PreConfig.Builder |
builder()
Returns the default
ServerModel.PreConfig.Builder object for the ServerModel.PreConfig abstract class. |
abstract boolean |
forbidConfigNewServer()
Returns a boolean that represents whether or not a new server can be configured.
|
abstract boolean |
forbidSwitchNewServer()
Returns a boolean that represents whether or not a user can switch to a new server.
|
abstract java.lang.String |
preConfiguredServerUrl()
Returns a String of the pre-configured server URL.
|
public static ServerModel.PreConfig.Builder builder()
ServerModel.PreConfig.Builder object for the ServerModel.PreConfig abstract class.
By default, forbidConfigNewServer() is set to false and
forbidSwitchNewServer() is set to false.ServerModel.PreConfig.Builder object for the ServerModel.PreConfig abstract class.@Nullable public abstract java.lang.String preConfiguredServerUrl()
null.public abstract boolean forbidConfigNewServer()
true if a new server cannot be configured;
false otherwise.public abstract boolean forbidSwitchNewServer()
true if a user cannot switch to a new server;
false otherwise.