UserFacingWarningDetail Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.UserFacingWarningDetail

Implements

public final class UserFacingWarningDetail
implements JsonSerializable<UserFacingWarningDetail>

Warning object used by layers that have access to localized content, and propagate that to user.

Method Summary

Modifier and Type Method and Description
static UserFacingWarningDetail fromJson(JsonReader jsonReader)

Reads an instance of UserFacingWarningDetail from the JsonReader.

String resourceName()

Get the resourceName property: Name of resource for which warning is raised.

JsonWriter toJson(JsonWriter jsonWriter)
UserFacingError warning()

Get the warning property: Error details for the warning.

Methods inherited from java.lang.Object

Method Details

fromJson

public static UserFacingWarningDetail fromJson(JsonReader jsonReader)

Reads an instance of UserFacingWarningDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UserFacingWarningDetail if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

resourceName

public String resourceName()

Get the resourceName property: Name of resource for which warning is raised.

Returns:

the resourceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

warning

public UserFacingError warning()

Get the warning property: Error details for the warning.

Returns:

the warning value.

Applies to