LegacyMicrosoftAccount Class

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

Implements

public final class LegacyMicrosoftAccount
implements JsonSerializable<LegacyMicrosoftAccount>

The configuration settings of the legacy Microsoft Account provider.

Constructor Summary

Constructor Description
LegacyMicrosoftAccount()

Creates an instance of LegacyMicrosoftAccount class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

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

static LegacyMicrosoftAccount fromJson(JsonReader jsonReader)

Reads an instance of LegacyMicrosoftAccount from the JsonReader.

LoginScopes login()

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

ClientRegistration registration()

Get the registration property: The configuration settings of the app registration for the legacy Microsoft Account provider.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AllowedAudiencesValidation validation()

Get the validation property: The configuration settings of the legacy Microsoft Account provider token validation flow.

LegacyMicrosoftAccount withEnabled(Boolean enabled)

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

LegacyMicrosoftAccount withLogin(LoginScopes login)

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

LegacyMicrosoftAccount withRegistration(ClientRegistration registration)

Set the registration property: The configuration settings of the app registration for the legacy Microsoft Account provider.

LegacyMicrosoftAccount withValidation(AllowedAudiencesValidation validation)

Set the validation property: The configuration settings of the legacy Microsoft Account provider token validation flow.

Methods inherited from java.lang.Object

Constructor Details

LegacyMicrosoftAccount

public LegacyMicrosoftAccount()

Creates an instance of LegacyMicrosoftAccount class.

Method Details

enabled

public Boolean enabled()

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

Returns:

the enabled value.

fromJson

public static LegacyMicrosoftAccount fromJson(JsonReader jsonReader)

Reads an instance of LegacyMicrosoftAccount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

login

public LoginScopes login()

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

Returns:

the login value.

registration

public ClientRegistration registration()

Get the registration property: The configuration settings of the app registration for the legacy Microsoft Account provider.

Returns:

the registration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validation

public AllowedAudiencesValidation validation()

Get the validation property: The configuration settings of the legacy Microsoft Account provider token validation flow.

Returns:

the validation value.

withEnabled

public LegacyMicrosoftAccount withEnabled(Boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the LegacyMicrosoftAccount object itself.

withLogin

public LegacyMicrosoftAccount withLogin(LoginScopes login)

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

Parameters:

login - the login value to set.

Returns:

the LegacyMicrosoftAccount object itself.

withRegistration

public LegacyMicrosoftAccount withRegistration(ClientRegistration registration)

Set the registration property: The configuration settings of the app registration for the legacy Microsoft Account provider.

Parameters:

registration - the registration value to set.

Returns:

the LegacyMicrosoftAccount object itself.

withValidation

public LegacyMicrosoftAccount withValidation(AllowedAudiencesValidation validation)

Set the validation property: The configuration settings of the legacy Microsoft Account provider token validation flow.

Parameters:

validation - the validation value to set.

Returns:

the LegacyMicrosoftAccount object itself.

Applies to