Class ServerlessRuntimeUserContextPropertiesUpdate

java.lang.Object
com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeUserContextPropertiesUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerlessRuntimeUserContextPropertiesUpdate>

public final class ServerlessRuntimeUserContextPropertiesUpdate extends Object implements com.azure.json.JsonSerializable<ServerlessRuntimeUserContextPropertiesUpdate>
The template for adding optional properties.
  • Constructor Details

    • ServerlessRuntimeUserContextPropertiesUpdate

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

    • userContextToken

      public String userContextToken()
      Get the userContextToken property: User context token for OBO flow.
      Returns:
      the userContextToken value.
    • withUserContextToken

      public ServerlessRuntimeUserContextPropertiesUpdate withUserContextToken(String userContextToken)
      Set the userContextToken property: User context token for OBO flow.
      Parameters:
      userContextToken - the userContextToken value to set.
      Returns:
      the ServerlessRuntimeUserContextPropertiesUpdate 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<ServerlessRuntimeUserContextPropertiesUpdate>
      Throws:
      IOException
    • fromJson

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