public class AwsWrapperProperty
extends java.sql.DriverPropertyInfo
| Modifier and Type | Field and Description |
|---|---|
@Nullable java.lang.String |
defaultValue |
| Constructor and Description |
|---|
AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description) |
AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description,
boolean required) |
AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description,
boolean required,
java.lang.String[] choices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(java.util.Properties properties) |
@Nullable java.lang.String[] |
getChoices() |
int |
getInteger(java.util.Properties properties) |
long |
getLong(java.util.Properties properties) |
@Nullable java.lang.String |
getString(java.util.Properties properties) |
AwsWrapperProperty |
nonNegative()
Marks this property as not allowing negative values.
|
void |
set(java.util.Properties properties,
@Nullable java.lang.String value) |
java.sql.DriverPropertyInfo |
toDriverPropertyInfo(java.util.Properties properties) |
AwsWrapperProperty |
withBounds(@Nullable java.lang.Long min,
@Nullable java.lang.Long max)
Declares inclusive bounds for this property's numeric value.
|
public AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description)
public AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description,
boolean required)
public AwsWrapperProperty(@NonNull java.lang.String name,
@Nullable java.lang.String defaultValue,
java.lang.String description,
boolean required,
java.lang.String[] choices)
public AwsWrapperProperty withBounds(@Nullable java.lang.Long min, @Nullable java.lang.Long max)
getInteger(Properties) or getLong(Properties); a value
outside the range causes an IllegalArgumentException to be thrown (fail-fast).min - the inclusive minimum allowed value, or null for no lower bound.max - the inclusive maximum allowed value, or null for no upper bound.public AwsWrapperProperty nonNegative()
public @Nullable java.lang.String getString(java.util.Properties properties)
public boolean getBoolean(java.util.Properties properties)
public int getInteger(java.util.Properties properties)
public long getLong(java.util.Properties properties)
public void set(java.util.Properties properties,
@Nullable java.lang.String value)
public @Nullable java.lang.String[] getChoices()
public java.sql.DriverPropertyInfo toDriverPropertyInfo(java.util.Properties properties)