Class ConnectionCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.ConnectionCreateOrUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionCreateOrUpdateParameters>
public final class ConnectionCreateOrUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<ConnectionCreateOrUpdateParameters>
The parameters supplied to the create or update connection operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionCreateOrUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionType property: Gets or sets the connectionType of the connection.Get the description property: Gets or sets the description of the connection.Get the fieldDefinitionValues property: Gets or sets the field definition properties of the connection.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionCreateOrUpdateParameters from the JsonReader.name()
Get the name property: Gets or sets the name of the connection.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConnectionType
(ConnectionTypeAssociationProperty connectionType) Set the connectionType property: Gets or sets the connectionType of the connection.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 properties of the connection.Set the name property: Gets or sets the name 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
-
ConnectionCreateOrUpdateParameters
public ConnectionCreateOrUpdateParameters()Creates an instance of ConnectionCreateOrUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the connection.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the connection.- Parameters:
name
- the name value to set.- Returns:
- the ConnectionCreateOrUpdateParameters object itself.
-
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 ConnectionCreateOrUpdateParameters object itself.
-
connectionType
Get the connectionType property: Gets or sets the connectionType of the connection.- Returns:
- the connectionType value.
-
withConnectionType
public ConnectionCreateOrUpdateParameters withConnectionType(ConnectionTypeAssociationProperty connectionType) Set the connectionType property: Gets or sets the connectionType of the connection.- Parameters:
connectionType
- the connectionType value to set.- Returns:
- the ConnectionCreateOrUpdateParameters object itself.
-
fieldDefinitionValues
Get the fieldDefinitionValues property: Gets or sets the field definition properties of the connection.- Returns:
- the fieldDefinitionValues value.
-
withFieldDefinitionValues
public ConnectionCreateOrUpdateParameters 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 ConnectionCreateOrUpdateParameters 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<ConnectionCreateOrUpdateParameters>
- Throws:
IOException
-
fromJson
public static ConnectionCreateOrUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionCreateOrUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ConnectionCreateOrUpdateParameters 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 ConnectionCreateOrUpdateParameters.
-