Share via


ManagedIdentitySettings Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.ManagedIdentitySettings

Implements

public final class ManagedIdentitySettings
implements JsonSerializable<ManagedIdentitySettings>

Managed identity settings for upstream.

Constructor Summary

Constructor Description
ManagedIdentitySettings()

Creates an instance of ManagedIdentitySettings class.

Method Summary

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

Reads an instance of ManagedIdentitySettings from the JsonReader.

String resource()

Get the resource property: The Resource indicating the App ID URI of the target resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedIdentitySettings withResource(String resource)

Set the resource property: The Resource indicating the App ID URI of the target resource.

Methods inherited from java.lang.Object

Constructor Details

ManagedIdentitySettings

public ManagedIdentitySettings()

Creates an instance of ManagedIdentitySettings class.

Method Details

fromJson

public static ManagedIdentitySettings fromJson(JsonReader jsonReader)

Reads an instance of ManagedIdentitySettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedIdentitySettings 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 ManagedIdentitySettings.

resource

public String resource()

Get the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the aud (audience) claim of the issued token.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public ManagedIdentitySettings withResource(String resource)

Set the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the aud (audience) claim of the issued token.

Parameters:

resource - the resource value to set.

Returns:

the ManagedIdentitySettings object itself.

Applies to