Compartilhar via


AllowedPrincipals Class

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

Implements

public final class AllowedPrincipals
implements JsonSerializable<AllowedPrincipals>

The configuration settings of the Azure Active Directory allowed principals.

Constructor Summary

Constructor Description
AllowedPrincipals()

Creates an instance of AllowedPrincipals class.

Method Summary

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

Reads an instance of AllowedPrincipals from the JsonReader.

List<String> groups()

Get the groups property: The list of the allowed groups.

List<String> identities()

Get the identities property: The list of the allowed identities.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AllowedPrincipals withGroups(List<String> groups)

Set the groups property: The list of the allowed groups.

AllowedPrincipals withIdentities(List<String> identities)

Set the identities property: The list of the allowed identities.

Methods inherited from java.lang.Object

Constructor Details

AllowedPrincipals

public AllowedPrincipals()

Creates an instance of AllowedPrincipals class.

Method Details

fromJson

public static AllowedPrincipals fromJson(JsonReader jsonReader)

Reads an instance of AllowedPrincipals from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

groups

public List groups()

Get the groups property: The list of the allowed groups.

Returns:

the groups value.

identities

public List identities()

Get the identities property: The list of the allowed identities.

Returns:

the identities value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGroups

public AllowedPrincipals withGroups(List groups)

Set the groups property: The list of the allowed groups.

Parameters:

groups - the groups value to set.

Returns:

the AllowedPrincipals object itself.

withIdentities

public AllowedPrincipals withIdentities(List identities)

Set the identities property: The list of the allowed identities.

Parameters:

identities - the identities value to set.

Returns:

the AllowedPrincipals object itself.

Applies to