Class ConnectionUpdateParameters

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

public final class ConnectionUpdateParameters extends Object implements com.azure.json.JsonSerializable<ConnectionUpdateParameters>
The parameters supplied to the update connection operation.
  • Constructor Details

    • ConnectionUpdateParameters

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

    • name

      public String name()
      Get the name property: Gets or sets the name of the connection.
      Returns:
      the name value.
    • withName

      public ConnectionUpdateParameters withName(String name)
      Set the name property: Gets or sets the name of the connection.
      Parameters:
      name - the name value to set.
      Returns:
      the ConnectionUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Gets or sets the description of the connection.
      Returns:
      the description value.
    • withDescription

      public ConnectionUpdateParameters withDescription(String description)
      Set the description property: Gets or sets the description of the connection.
      Parameters:
      description - the description value to set.
      Returns:
      the ConnectionUpdateParameters object itself.
    • fieldDefinitionValues

      public Map<String,String> fieldDefinitionValues()
      Get the fieldDefinitionValues property: Gets or sets the field definition values of the connection.
      Returns:
      the fieldDefinitionValues value.
    • withFieldDefinitionValues

      public ConnectionUpdateParameters withFieldDefinitionValues(Map<String,String> fieldDefinitionValues)
      Set the fieldDefinitionValues property: Gets or sets the field definition values of the connection.
      Parameters:
      fieldDefinitionValues - the fieldDefinitionValues value to set.
      Returns:
      the ConnectionUpdateParameters 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<ConnectionUpdateParameters>
      Throws:
      IOException
    • fromJson

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