Class MicrosoftGraphParentalControlSettings
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphParentalControlSettings
parentalControlSettings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphParentalControlSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: parentalControlSettings.Get the countriesBlockedForMinors property: Specifies the two-letter ISO country codes.Get the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: parentalControlSettings.withCountriesBlockedForMinors(List<String> countriesBlockedForMinors) Set the countriesBlockedForMinors property: Specifies the two-letter ISO country codes.withLegalAgeGroupRule(String legalAgeGroupRule) Set the legalAgeGroupRule property: Specifies the legal age group rule that applies to users of the app.
-
Constructor Details
-
MicrosoftGraphParentalControlSettings
public MicrosoftGraphParentalControlSettings()Creates an instance of MicrosoftGraphParentalControlSettings class.
-
-
Method Details
-
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.
-
withCountriesBlockedForMinors
public MicrosoftGraphParentalControlSettings withCountriesBlockedForMinors(List<String> 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.
-
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.
-
withLegalAgeGroupRule
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.
-
additionalProperties
Get the additionalProperties property: parentalControlSettings.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphParentalControlSettings withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: parentalControlSettings.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphParentalControlSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-