ColumnDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. ColumnDefinition
- com.
Implements
public final class ColumnDefinition
implements JsonSerializable<ColumnDefinition>
Definition of custom data column.
Constructor Summary
Constructor | Description |
---|---|
ColumnDefinition() |
Creates an instance of Column |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Column |
fromJson(JsonReader jsonReader)
Reads an instance of Column |
String |
name()
Get the name property: The name of the column. |
Json |
toJson(JsonWriter jsonWriter) |
Known |
type()
Get the type property: The type of the column data. |
void |
validate()
Validates the instance. |
Column |
withName(String name)
Set the name property: The name of the column. |
Column |
withType(KnownColumnDefinitionType type)
Set the type property: The type of the column data. |
Methods inherited from java.lang.Object
Constructor Details
ColumnDefinition
public ColumnDefinition()
Creates an instance of ColumnDefinition class.
Method Details
fromJson
public static ColumnDefinition fromJson(JsonReader jsonReader)
Reads an instance of ColumnDefinition from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the column.
Returns:
toJson
type
public KnownColumnDefinitionType type()
Get the type property: The type of the column data.
Returns:
validate
public void validate()
Validates the instance.
withName
public ColumnDefinition withName(String name)
Set the name property: The name of the column.
Parameters:
Returns:
withType
public ColumnDefinition withType(KnownColumnDefinitionType type)
Set the type property: The type of the column data.
Parameters:
Returns:
Applies to
Azure SDK for Java