Class EnvironmentStateDetails
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EnvironmentStateDetails
An object that contains the details about an environment's state.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EnvironmentStateDetails class. -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Contains the code that represents the reason of an environment being in a particular state.message()
Get the message property: A message that describes the state in detail.void
validate()
Validates the instance.Set the code property: Contains the code that represents the reason of an environment being in a particular state.withMessage
(String message) Set the message property: A message that describes the state in detail.
-
Constructor Details
-
EnvironmentStateDetails
public EnvironmentStateDetails()Creates an instance of EnvironmentStateDetails class.
-
-
Method Details
-
code
Get the code property: Contains the code that represents the reason of an environment being in a particular state. Can be used to programmatically handle specific cases.- Returns:
- the code value.
-
withCode
Set the code property: Contains the code that represents the reason of an environment being in a particular state. Can be used to programmatically handle specific cases.- Parameters:
code
- the code value to set.- Returns:
- the EnvironmentStateDetails object itself.
-
message
Get the message property: A message that describes the state in detail.- Returns:
- the message value.
-
withMessage
Set the message property: A message that describes the state in detail.- Parameters:
message
- the message value to set.- Returns:
- the EnvironmentStateDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-