Facebook Class

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

Implements

public final class Facebook
implements JsonSerializable<Facebook>

The configuration settings of the Facebook provider.

Constructor Summary

Constructor Description
Facebook()

Creates an instance of Facebook class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: false if the Facebook provider should not be enabled despite the set registration; otherwise, true.

static Facebook fromJson(JsonReader jsonReader)

Reads an instance of Facebook from the JsonReader.

String graphApiVersion()

Get the graphApiVersion property: The version of the Facebook api to be used while logging in.

LoginScopes login()

Get the login property: The configuration settings of the login flow.

AppRegistration registration()

Get the registration property: The configuration settings of the app registration for the Facebook provider.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Facebook withEnabled(Boolean enabled)

Set the enabled property: false if the Facebook provider should not be enabled despite the set registration; otherwise, true.

Facebook withGraphApiVersion(String graphApiVersion)

Set the graphApiVersion property: The version of the Facebook api to be used while logging in.

Facebook withLogin(LoginScopes login)

Set the login property: The configuration settings of the login flow.

Facebook withRegistration(AppRegistration registration)

Set the registration property: The configuration settings of the app registration for the Facebook provider.

Methods inherited from java.lang.Object

Constructor Details

Facebook

public Facebook()

Creates an instance of Facebook class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: false if the Facebook provider should not be enabled despite the set registration; otherwise, true.

Returns:

the enabled value.

fromJson

public static Facebook fromJson(JsonReader jsonReader)

Reads an instance of Facebook from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

graphApiVersion

public String graphApiVersion()

Get the graphApiVersion property: The version of the Facebook api to be used while logging in.

Returns:

the graphApiVersion value.

login

public LoginScopes login()

Get the login property: The configuration settings of the login flow.

Returns:

the login value.

registration

public AppRegistration registration()

Get the registration property: The configuration settings of the app registration for the Facebook provider.

Returns:

the registration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public Facebook withEnabled(Boolean enabled)

Set the enabled property: false if the Facebook provider should not be enabled despite the set registration; otherwise, true.

Parameters:

enabled - the enabled value to set.

Returns:

the Facebook object itself.

withGraphApiVersion

public Facebook withGraphApiVersion(String graphApiVersion)

Set the graphApiVersion property: The version of the Facebook api to be used while logging in.

Parameters:

graphApiVersion - the graphApiVersion value to set.

Returns:

the Facebook object itself.

withLogin

public Facebook withLogin(LoginScopes login)

Set the login property: The configuration settings of the login flow.

Parameters:

login - the login value to set.

Returns:

the Facebook object itself.

withRegistration

public Facebook withRegistration(AppRegistration registration)

Set the registration property: The configuration settings of the app registration for the Facebook provider.

Parameters:

registration - the registration value to set.

Returns:

the Facebook object itself.

Applies to