Class MetadataItem
java.lang.Object
com.azure.resourcemanager.batch.models.MetadataItem
A name-value pair associated with a Batch service resource.
The Batch service does not assign any meaning to this metadata; it is solely for the use of user code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: The name of the metadata item.void
validate()
Validates the instance.value()
Get the value property: The value of the metadata item.Set the name property: The name of the metadata item.Set the value property: The value of the metadata item.
-
Constructor Details
-
MetadataItem
public MetadataItem()Creates an instance of MetadataItem class.
-
-
Method Details
-
name
Get the name property: The name of the metadata item.- Returns:
- the name value.
-
withName
Set the name property: The name of the metadata item.- Parameters:
name
- the name value to set.- Returns:
- the MetadataItem object itself.
-
value
Get the value property: The value of the metadata item.- Returns:
- the value value.
-
withValue
Set the value property: The value of the metadata item.- Parameters:
value
- the value value to set.- Returns:
- the MetadataItem object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-