Class AppRegistration
java.lang.Object
com.azure.resourcemanager.appcontainers.models.AppRegistration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AppRegistration>
public final class AppRegistration
extends Object
implements com.azure.json.JsonSerializable<AppRegistration>
The configuration settings of the app registration for providers that have app ids and app secrets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappId()
Get the appId property: The App ID of the app used for login.Get the appSecretSettingName property: The app setting name that contains the app secret.static AppRegistration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AppRegistration from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the appId property: The App ID of the app used for login.withAppSecretSettingName
(String appSecretSettingName) Set the appSecretSettingName property: The app setting name that contains the app secret.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AppRegistration
public AppRegistration()Creates an instance of AppRegistration class.
-
-
Method Details
-
appId
Get the appId property: The App ID of the app used for login.- Returns:
- the appId value.
-
withAppId
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.
-
appSecretSettingName
Get the appSecretSettingName property: The app setting name that contains the app secret.- Returns:
- the appSecretSettingName value.
-
withAppSecretSettingName
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AppRegistration>
- Throws:
IOException
-
fromJson
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.
-