AppRegistration Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AppRegistration

Implements

public final class AppRegistration
implements JsonSerializable<AppRegistration>

The configuration settings of the app registration for providers that have app ids and app secrets.

Constructor Summary

Constructor Description
AppRegistration()

Creates an instance of AppRegistration class.

Method Summary

Modifier and Type Method and Description
String appId()

Get the appId property: The App ID of the app used for login.

String appSecretSettingName()

Get the appSecretSettingName property: The app setting name that contains the app secret.

static AppRegistration fromJson(JsonReader jsonReader)

Reads an instance of AppRegistration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AppRegistration withAppId(String appId)

Set the appId property: The App ID of the app used for login.

AppRegistration withAppSecretSettingName(String appSecretSettingName)

Set the appSecretSettingName property: The app setting name that contains the app secret.

Methods inherited from java.lang.Object

Constructor Details

AppRegistration

public AppRegistration()

Creates an instance of AppRegistration class.

Method Details

appId

public String appId()

Get the appId property: The App ID of the app used for login.

Returns:

the appId value.

appSecretSettingName

public String appSecretSettingName()

Get the appSecretSettingName property: The app setting name that contains the app secret.

Returns:

the appSecretSettingName value.

fromJson

public static AppRegistration fromJson(JsonReader jsonReader)

Reads an instance of AppRegistration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppId

public AppRegistration withAppId(String appId)

Set the appId property: The App ID of the app used for login.

Parameters:

appId - the appId value to set.

Returns:

the AppRegistration object itself.

withAppSecretSettingName

public AppRegistration withAppSecretSettingName(String appSecretSettingName)

Set the appSecretSettingName property: The app setting name that contains the app secret.

Parameters:

appSecretSettingName - the appSecretSettingName value to set.

Returns:

the AppRegistration object itself.

Applies to