Class ClientRegistration
java.lang.Object
com.azure.resourcemanager.appservice.models.ClientRegistration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClientRegistration>
public final class ClientRegistration
extends Object
implements com.azure.json.JsonSerializable<ClientRegistration>
The configuration settings of the app registration for providers that have client ids and client secrets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()
Get the clientId property: The Client ID of the app used for login.Get the clientSecretSettingName property: The app setting name that contains the client secret.static ClientRegistration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ClientRegistration from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withClientId
(String clientId) Set the clientId property: The Client ID of the app used for login.withClientSecretSettingName
(String clientSecretSettingName) Set the clientSecretSettingName property: The app setting name that contains the client 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
-
ClientRegistration
public ClientRegistration()Creates an instance of ClientRegistration class.
-
-
Method Details
-
clientId
Get the clientId property: The Client ID of the app used for login.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The Client ID of the app used for login.- Parameters:
clientId
- the clientId value to set.- Returns:
- the ClientRegistration object itself.
-
clientSecretSettingName
Get the clientSecretSettingName property: The app setting name that contains the client secret.- Returns:
- the clientSecretSettingName value.
-
withClientSecretSettingName
Set the clientSecretSettingName property: The app setting name that contains the client secret.- Parameters:
clientSecretSettingName
- the clientSecretSettingName value to set.- Returns:
- the ClientRegistration 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<ClientRegistration>
- Throws:
IOException
-
fromJson
Reads an instance of ClientRegistration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ClientRegistration 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 ClientRegistration.
-