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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServerlessRuntimeUserContextPropertiesUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerlessRuntimeUserContextPropertiesUpdate from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userContextToken property: User context token for OBO flow.voidvalidate()Validates the instance.withUserContextToken(String userContextToken) Set the userContextToken property: User context token for OBO flow.
-
Constructor Details
-
ServerlessRuntimeUserContextPropertiesUpdate
public ServerlessRuntimeUserContextPropertiesUpdate()Creates an instance of ServerlessRuntimeUserContextPropertiesUpdate class.
-
-
Method Details
-
userContextToken
Get the userContextToken property: User context token for OBO flow.- Returns:
- the userContextToken value.
-
withUserContextToken
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
- Specified by:
toJsonin interfacecom.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.
-