ClientRegistration Class

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

Implements

public final class ClientRegistration
implements JsonSerializable<ClientRegistration>

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

Constructor Summary

Constructor Description
ClientRegistration()

Creates an instance of ClientRegistration class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The Client ID of the app used for login.

String clientSecretSettingName()

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

static ClientRegistration fromJson(JsonReader jsonReader)

Reads an instance of ClientRegistration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClientRegistration withClientId(String clientId)

Set the clientId property: The Client ID of the app used for login.

ClientRegistration withClientSecretSettingName(String clientSecretSettingName)

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

Methods inherited from java.lang.Object

Constructor Details

ClientRegistration

public ClientRegistration()

Creates an instance of ClientRegistration class.

Method Details

clientId

public String clientId()

Get the clientId property: The Client ID of the app used for login.

Returns:

the clientId value.

clientSecretSettingName

public String clientSecretSettingName()

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

Returns:

the clientSecretSettingName value.

fromJson

public static ClientRegistration fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientId

public ClientRegistration withClientId(String clientId)

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.

withClientSecretSettingName

public ClientRegistration withClientSecretSettingName(String clientSecretSettingName)

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.

Applies to