Class DatabaseProperties
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.fluent.models.DatabaseProperties
-
public final class DatabaseProperties extends Object
The properties of a database.
-
-
Constructor Summary
Constructors Constructor Description DatabaseProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
charset()
Get the charset property: The charset of the database.String
collation()
Get the collation property: The collation of the database.void
validate()
Validates the instance.DatabaseProperties
withCharset(String charset)
Set the charset property: The charset of the database.DatabaseProperties
withCollation(String collation)
Set the collation property: The collation of the database.
-
-
-
Method Detail
-
charset
public String charset()
Get the charset property: The charset of the database.- Returns:
- the charset value.
-
withCharset
public DatabaseProperties withCharset(String charset)
Set the charset property: The charset of the database.- Parameters:
charset
- the charset value to set.- Returns:
- the DatabaseProperties object itself.
-
collation
public String collation()
Get the collation property: The collation of the database.- Returns:
- the collation value.
-
withCollation
public DatabaseProperties withCollation(String collation)
Set the collation property: The collation of the database.- Parameters:
collation
- the collation value to set.- Returns:
- the DatabaseProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-