Class ColumnDefinition
java.lang.Object
com.azure.resourcemanager.monitor.models.ColumnDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ColumnDefinition>
public final class ColumnDefinition
extends Object
implements com.azure.json.JsonSerializable<ColumnDefinition>
Definition of custom data column.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnDefinition
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ColumnDefinition from the JsonReader.name()
Get the name property: The name of the column.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the column data.void
validate()
Validates the instance.Set the name property: The name of the column.Set the type property: The type of the column data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ColumnDefinition
public ColumnDefinition()Creates an instance of ColumnDefinition class.
-
-
Method Details
-
name
Get the name property: The name of the column.- Returns:
- the name value.
-
withName
Set the name property: The name of the column.- Parameters:
name
- the name value to set.- Returns:
- the ColumnDefinition object itself.
-
type
Get the type property: The type of the column data.- Returns:
- the type value.
-
withType
Set the type property: The type of the column data.- Parameters:
type
- the type value to set.- Returns:
- the ColumnDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ColumnDefinition>
- Throws:
IOException
-
fromJson
Reads an instance of ColumnDefinition from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ColumnDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the ColumnDefinition.
-