Class ConnectionCreateOrUpdateProperties

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

public final class ConnectionCreateOrUpdateProperties extends Object implements com.azure.json.JsonSerializable<ConnectionCreateOrUpdateProperties>
The properties of the create connection properties.
  • Constructor Details

    • ConnectionCreateOrUpdateProperties

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

    • description

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

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

      public ConnectionTypeAssociationProperty connectionType()
      Get the connectionType property: Gets or sets the connectionType of the connection.
      Returns:
      the connectionType value.
    • withConnectionType

      public ConnectionCreateOrUpdateProperties withConnectionType(ConnectionTypeAssociationProperty connectionType)
      Set the connectionType property: Gets or sets the connectionType of the connection.
      Parameters:
      connectionType - the connectionType value to set.
      Returns:
      the ConnectionCreateOrUpdateProperties object itself.
    • fieldDefinitionValues

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

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

      public static ConnectionCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionCreateOrUpdateProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionCreateOrUpdateProperties 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 ConnectionCreateOrUpdateProperties.