UpstreamAuthSettings Class

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

Implements

public final class UpstreamAuthSettings
implements JsonSerializable<UpstreamAuthSettings>

Upstream auth settings. If not set, no auth is used for upstream messages.

Constructor Summary

Constructor Description
UpstreamAuthSettings()

Creates an instance of UpstreamAuthSettings class.

Method Summary

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

Reads an instance of UpstreamAuthSettings from the JsonReader.

ManagedIdentitySettings managedIdentity()

Get the managedIdentity property: Managed identity settings for upstream.

JsonWriter toJson(JsonWriter jsonWriter)
UpstreamAuthType type()

Get the type property: Upstream auth type enum.

void validate()

Validates the instance.

UpstreamAuthSettings withManagedIdentity(ManagedIdentitySettings managedIdentity)

Set the managedIdentity property: Managed identity settings for upstream.

UpstreamAuthSettings withType(UpstreamAuthType type)

Set the type property: Upstream auth type enum.

Methods inherited from java.lang.Object

Constructor Details

UpstreamAuthSettings

public UpstreamAuthSettings()

Creates an instance of UpstreamAuthSettings class.

Method Details

fromJson

public static UpstreamAuthSettings fromJson(JsonReader jsonReader)

Reads an instance of UpstreamAuthSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

managedIdentity

public ManagedIdentitySettings managedIdentity()

Get the managedIdentity property: Managed identity settings for upstream.

Returns:

the managedIdentity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public UpstreamAuthType type()

Get the type property: Upstream auth type enum.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withManagedIdentity

public UpstreamAuthSettings withManagedIdentity(ManagedIdentitySettings managedIdentity)

Set the managedIdentity property: Managed identity settings for upstream.

Parameters:

managedIdentity - the managedIdentity value to set.

Returns:

the UpstreamAuthSettings object itself.

withType

public UpstreamAuthSettings withType(UpstreamAuthType type)

Set the type property: Upstream auth type enum.

Parameters:

type - the type value to set.

Returns:

the UpstreamAuthSettings object itself.

Applies to