Class FieldDefinition
java.lang.Object
com.azure.resourcemanager.automation.models.FieldDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FieldDefinition>
public final class FieldDefinition
extends Object
implements com.azure.json.JsonSerializable<FieldDefinition>
Definition of the connection fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldDefinition
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FieldDefinition from the JsonReader.Get the isEncrypted property: Gets or sets the isEncrypted flag of the connection field definition.Get the isOptional property: Gets or sets the isOptional flag of the connection field definition.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Gets or sets the type of the connection field definition.void
validate()
Validates the instance.withIsEncrypted
(Boolean isEncrypted) Set the isEncrypted property: Gets or sets the isEncrypted flag of the connection field definition.withIsOptional
(Boolean isOptional) Set the isOptional property: Gets or sets the isOptional flag of the connection field definition.Set the type property: Gets or sets the type of the connection field definition.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
-
FieldDefinition
public FieldDefinition()Creates an instance of FieldDefinition class.
-
-
Method Details
-
isEncrypted
Get the isEncrypted property: Gets or sets the isEncrypted flag of the connection field definition.- Returns:
- the isEncrypted value.
-
withIsEncrypted
Set the isEncrypted property: Gets or sets the isEncrypted flag of the connection field definition.- Parameters:
isEncrypted
- the isEncrypted value to set.- Returns:
- the FieldDefinition object itself.
-
isOptional
Get the isOptional property: Gets or sets the isOptional flag of the connection field definition.- Returns:
- the isOptional value.
-
withIsOptional
Set the isOptional property: Gets or sets the isOptional flag of the connection field definition.- Parameters:
isOptional
- the isOptional value to set.- Returns:
- the FieldDefinition object itself.
-
type
Get the type property: Gets or sets the type of the connection field definition.- Returns:
- the type value.
-
withType
Set the type property: Gets or sets the type of the connection field definition.- Parameters:
type
- the type value to set.- Returns:
- the FieldDefinition 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<FieldDefinition>
- Throws:
IOException
-
fromJson
Reads an instance of FieldDefinition from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FieldDefinition 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 FieldDefinition.
-