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
    Constructor
    Description
    Creates an instance of FieldDefinition class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Get the type property: Gets or sets the type of the connection field definition.
    void
    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

      public Boolean isEncrypted()
      Get the isEncrypted property: Gets or sets the isEncrypted flag of the connection field definition.
      Returns:
      the isEncrypted value.
    • withIsEncrypted

      public FieldDefinition withIsEncrypted(Boolean isEncrypted)
      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

      public Boolean isOptional()
      Get the isOptional property: Gets or sets the isOptional flag of the connection field definition.
      Returns:
      the isOptional value.
    • withIsOptional

      public FieldDefinition withIsOptional(Boolean isOptional)
      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

      public String type()
      Get the type property: Gets or sets the type of the connection field definition.
      Returns:
      the type value.
    • withType

      public FieldDefinition withType(String type)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FieldDefinition>
      Throws:
      IOException
    • fromJson

      public static FieldDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.