Class ApmProperties

java.lang.Object
com.azure.resourcemanager.appplatform.models.ApmProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApmProperties>

public final class ApmProperties extends Object implements com.azure.json.JsonSerializable<ApmProperties>
Properties of an APM.
  • Constructor Details

    • ApmProperties

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

    • type

      public String type()
      Get the type property: APM Type.
      Returns:
      the type value.
    • withType

      public ApmProperties withType(String type)
      Set the type property: APM Type.
      Parameters:
      type - the type value to set.
      Returns:
      the ApmProperties object itself.
    • provisioningState

      public ApmProvisioningState provisioningState()
      Get the provisioningState property: State of the APM.
      Returns:
      the provisioningState value.
    • properties

      public Map<String,String> properties()
      Get the properties property: Non-sensitive properties for the APM.
      Returns:
      the properties value.
    • withProperties

      public ApmProperties withProperties(Map<String,String> properties)
      Set the properties property: Non-sensitive properties for the APM.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ApmProperties object itself.
    • secrets

      public Map<String,String> secrets()
      Get the secrets property: Sensitive properties for the APM.
      Returns:
      the secrets value.
    • withSecrets

      public ApmProperties withSecrets(Map<String,String> secrets)
      Set the secrets property: Sensitive properties for the APM.
      Parameters:
      secrets - the secrets value to set.
      Returns:
      the ApmProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ApmProperties>
      Throws:
      IOException
    • fromJson

      public static ApmProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApmProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApmProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ApmProperties.