Class EnvironmentStateDetails

java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EnvironmentStateDetails

public final class EnvironmentStateDetails extends Object
An object that contains the details about an environment's state.
  • Constructor Details

    • EnvironmentStateDetails

      public EnvironmentStateDetails()
      Creates an instance of EnvironmentStateDetails class.
  • Method Details

    • code

      public String 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

      public EnvironmentStateDetails withCode(String code)
      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

      public String message()
      Get the message property: A message that describes the state in detail.
      Returns:
      the message value.
    • withMessage

      public EnvironmentStateDetails withMessage(String message)
      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.