你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphParentalControlSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphParentalControlSettings

Implements

public final class MicrosoftGraphParentalControlSettings
implements JsonSerializable<MicrosoftGraphParentalControlSettings>

parentalControlSettings.

Constructor Summary

Constructor Description
MicrosoftGraphParentalControlSettings()

Creates an instance of MicrosoftGraphParentalControlSettings class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: parentalControlSettings.

List<String> countriesBlockedForMinors()

Get the countriesBlockedForMinors property: Specifies the two-letter ISO country codes.

static MicrosoftGraphParentalControlSettings fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphParentalControlSettings from the JsonReader.

String legalAgeGroupRule()

Get the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphParentalControlSettings withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: parentalControlSettings.

MicrosoftGraphParentalControlSettings withCountriesBlockedForMinors(List<String> countriesBlockedForMinors)

Set the countriesBlockedForMinors property: Specifies the two-letter ISO country codes.

MicrosoftGraphParentalControlSettings withLegalAgeGroupRule(String legalAgeGroupRule)

Set the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphParentalControlSettings

public MicrosoftGraphParentalControlSettings()

Creates an instance of MicrosoftGraphParentalControlSettings class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: parentalControlSettings.

Returns:

the additionalProperties value.

countriesBlockedForMinors

public List countriesBlockedForMinors()

Get the countriesBlockedForMinors property: Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.

Returns:

the countriesBlockedForMinors value.

fromJson

public static MicrosoftGraphParentalControlSettings fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphParentalControlSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

legalAgeGroupRule

public String legalAgeGroupRule()

Get the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country minor rules.BlockMinorsBlocks minors from using the app.

Returns:

the legalAgeGroupRule value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphParentalControlSettings withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: parentalControlSettings.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphParentalControlSettings object itself.

withCountriesBlockedForMinors

public MicrosoftGraphParentalControlSettings withCountriesBlockedForMinors(List countriesBlockedForMinors)

Set the countriesBlockedForMinors property: Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.

Parameters:

countriesBlockedForMinors - the countriesBlockedForMinors value to set.

Returns:

the MicrosoftGraphParentalControlSettings object itself.

withLegalAgeGroupRule

public MicrosoftGraphParentalControlSettings withLegalAgeGroupRule(String legalAgeGroupRule)

Set the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country minor rules.BlockMinorsBlocks minors from using the app.

Parameters:

legalAgeGroupRule - the legalAgeGroupRule value to set.

Returns:

the MicrosoftGraphParentalControlSettings object itself.

Applies to