Udostępnij przez


LoginScopes Class

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

Implements

public final class LoginScopes
implements JsonSerializable<LoginScopes>

The configuration settings of the login flow, including the scopes that should be requested.

Constructor Summary

Constructor Description
LoginScopes()

Creates an instance of LoginScopes class.

Method Summary

Modifier and Type Method and Description
static LoginScopes fromJson(JsonReader jsonReader)

Reads an instance of LoginScopes from the JsonReader.

List<String> scopes()

Get the scopes property: A list of the scopes that should be requested while authenticating.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoginScopes withScopes(List<String> scopes)

Set the scopes property: A list of the scopes that should be requested while authenticating.

Methods inherited from java.lang.Object

Constructor Details

LoginScopes

public LoginScopes()

Creates an instance of LoginScopes class.

Method Details

fromJson

public static LoginScopes fromJson(JsonReader jsonReader)

Reads an instance of LoginScopes from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scopes

public List<String> scopes()

Get the scopes property: A list of the scopes that should be requested while authenticating.

Returns:

the scopes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withScopes

public LoginScopes withScopes(List<String> scopes)

Set the scopes property: A list of the scopes that should be requested while authenticating.

Parameters:

scopes - the scopes value to set.

Returns:

the LoginScopes object itself.

Applies to