Class ConnectionUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.ConnectionUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionUpdateProperties>
public final class ConnectionUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<ConnectionUpdateProperties>
The properties of the update connection operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the connection.Get the fieldDefinitionValues property: Gets or sets the field definition values of the connection.static ConnectionUpdateProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionUpdateProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDescription
(String description) Set the description property: Gets or sets the description of the connection.withFieldDefinitionValues
(Map<String, String> fieldDefinitionValues) Set the fieldDefinitionValues property: Gets or sets the field definition values of the connection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectionUpdateProperties
public ConnectionUpdateProperties()Creates an instance of ConnectionUpdateProperties class.
-
-
Method Details
-
description
Get the description property: Gets or sets the description of the connection.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the connection.- Parameters:
description
- the description value to set.- Returns:
- the ConnectionUpdateProperties object itself.
-
fieldDefinitionValues
Get the fieldDefinitionValues property: Gets or sets the field definition values of the connection.- Returns:
- the fieldDefinitionValues value.
-
withFieldDefinitionValues
public ConnectionUpdateProperties 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 ConnectionUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ConnectionUpdateProperties>
- Throws:
IOException
-
fromJson
public static ConnectionUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ConnectionUpdateProperties 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 ConnectionUpdateProperties.
-