public class OptionSetting
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
allowedValues
The allowed values of the option setting.
|
private java.lang.String |
applyType
The DB engine specific parameter type.
|
private java.lang.String |
dataType
The data type of the option setting.
|
private java.lang.String |
defaultValue
The default value of the option setting.
|
private java.lang.String |
description
The description of the option setting.
|
private java.lang.Boolean |
isCollection
Indicates if the option setting is part of a collection.
|
private java.lang.Boolean |
isModifiable
A Boolean value that, when true, indicates the option setting can be
modified from the default.
|
private java.lang.String |
name
The name of the option that has settings that you can set.
|
private java.lang.String |
value
The current value of the option setting.
|
Constructor and Description |
---|
OptionSetting() |
Modifier and Type | Method and Description |
---|---|
OptionSetting |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllowedValues()
The allowed values of the option setting.
|
java.lang.String |
getApplyType()
The DB engine specific parameter type.
|
java.lang.String |
getDataType()
The data type of the option setting.
|
java.lang.String |
getDefaultValue()
The default value of the option setting.
|
java.lang.String |
getDescription()
The description of the option setting.
|
java.lang.Boolean |
getIsCollection()
Indicates if the option setting is part of a collection.
|
java.lang.Boolean |
getIsModifiable()
A Boolean value that, when true, indicates the option setting can be
modified from the default.
|
java.lang.String |
getName()
The name of the option that has settings that you can set.
|
java.lang.String |
getValue()
The current value of the option setting.
|
int |
hashCode() |
java.lang.Boolean |
isCollection()
Indicates if the option setting is part of a collection.
|
java.lang.Boolean |
isModifiable()
A Boolean value that, when true, indicates the option setting can be
modified from the default.
|
void |
setAllowedValues(java.lang.String allowedValues)
The allowed values of the option setting.
|
void |
setApplyType(java.lang.String applyType)
The DB engine specific parameter type.
|
void |
setDataType(java.lang.String dataType)
The data type of the option setting.
|
void |
setDefaultValue(java.lang.String defaultValue)
The default value of the option setting.
|
void |
setDescription(java.lang.String description)
The description of the option setting.
|
void |
setIsCollection(java.lang.Boolean isCollection)
Indicates if the option setting is part of a collection.
|
void |
setIsModifiable(java.lang.Boolean isModifiable)
A Boolean value that, when true, indicates the option setting can be
modified from the default.
|
void |
setName(java.lang.String name)
The name of the option that has settings that you can set.
|
void |
setValue(java.lang.String value)
The current value of the option setting.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OptionSetting |
withAllowedValues(java.lang.String allowedValues)
The allowed values of the option setting.
|
OptionSetting |
withApplyType(java.lang.String applyType)
The DB engine specific parameter type.
|
OptionSetting |
withDataType(java.lang.String dataType)
The data type of the option setting.
|
OptionSetting |
withDefaultValue(java.lang.String defaultValue)
The default value of the option setting.
|
OptionSetting |
withDescription(java.lang.String description)
The description of the option setting.
|
OptionSetting |
withIsCollection(java.lang.Boolean isCollection)
Indicates if the option setting is part of a collection.
|
OptionSetting |
withIsModifiable(java.lang.Boolean isModifiable)
A Boolean value that, when true, indicates the option setting can be
modified from the default.
|
OptionSetting |
withName(java.lang.String name)
The name of the option that has settings that you can set.
|
OptionSetting |
withValue(java.lang.String value)
The current value of the option setting.
|
private java.lang.String name
The name of the option that has settings that you can set.
private java.lang.String value
The current value of the option setting.
private java.lang.String defaultValue
The default value of the option setting.
private java.lang.String description
The description of the option setting.
private java.lang.String applyType
The DB engine specific parameter type.
private java.lang.String dataType
The data type of the option setting.
private java.lang.String allowedValues
The allowed values of the option setting.
private java.lang.Boolean isModifiable
A Boolean value that, when true, indicates the option setting can be modified from the default.
private java.lang.Boolean isCollection
Indicates if the option setting is part of a collection.
public void setName(java.lang.String name)
The name of the option that has settings that you can set.
name
- The name of the option that has settings that you can set.public java.lang.String getName()
The name of the option that has settings that you can set.
public OptionSetting withName(java.lang.String name)
The name of the option that has settings that you can set.
name
- The name of the option that has settings that you can set.public void setValue(java.lang.String value)
The current value of the option setting.
value
- The current value of the option setting.public java.lang.String getValue()
The current value of the option setting.
public OptionSetting withValue(java.lang.String value)
The current value of the option setting.
value
- The current value of the option setting.public void setDefaultValue(java.lang.String defaultValue)
The default value of the option setting.
defaultValue
- The default value of the option setting.public java.lang.String getDefaultValue()
The default value of the option setting.
public OptionSetting withDefaultValue(java.lang.String defaultValue)
The default value of the option setting.
defaultValue
- The default value of the option setting.public void setDescription(java.lang.String description)
The description of the option setting.
description
- The description of the option setting.public java.lang.String getDescription()
The description of the option setting.
public OptionSetting withDescription(java.lang.String description)
The description of the option setting.
description
- The description of the option setting.public void setApplyType(java.lang.String applyType)
The DB engine specific parameter type.
applyType
- The DB engine specific parameter type.public java.lang.String getApplyType()
The DB engine specific parameter type.
public OptionSetting withApplyType(java.lang.String applyType)
The DB engine specific parameter type.
applyType
- The DB engine specific parameter type.public void setDataType(java.lang.String dataType)
The data type of the option setting.
dataType
- The data type of the option setting.public java.lang.String getDataType()
The data type of the option setting.
public OptionSetting withDataType(java.lang.String dataType)
The data type of the option setting.
dataType
- The data type of the option setting.public void setAllowedValues(java.lang.String allowedValues)
The allowed values of the option setting.
allowedValues
- The allowed values of the option setting.public java.lang.String getAllowedValues()
The allowed values of the option setting.
public OptionSetting withAllowedValues(java.lang.String allowedValues)
The allowed values of the option setting.
allowedValues
- The allowed values of the option setting.public void setIsModifiable(java.lang.Boolean isModifiable)
A Boolean value that, when true, indicates the option setting can be modified from the default.
isModifiable
- A Boolean value that, when true, indicates the option setting can
be modified from the default.public java.lang.Boolean getIsModifiable()
A Boolean value that, when true, indicates the option setting can be modified from the default.
public OptionSetting withIsModifiable(java.lang.Boolean isModifiable)
A Boolean value that, when true, indicates the option setting can be modified from the default.
isModifiable
- A Boolean value that, when true, indicates the option setting can
be modified from the default.public java.lang.Boolean isModifiable()
A Boolean value that, when true, indicates the option setting can be modified from the default.
public void setIsCollection(java.lang.Boolean isCollection)
Indicates if the option setting is part of a collection.
isCollection
- Indicates if the option setting is part of a collection.public java.lang.Boolean getIsCollection()
Indicates if the option setting is part of a collection.
public OptionSetting withIsCollection(java.lang.Boolean isCollection)
Indicates if the option setting is part of a collection.
isCollection
- Indicates if the option setting is part of a collection.public java.lang.Boolean isCollection()
Indicates if the option setting is part of a collection.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public OptionSetting clone()
clone
in class java.lang.Object