Class MicrosoftGraphParentalControlSettings

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

public final class MicrosoftGraphParentalControlSettings extends Object
parentalControlSettings.
  • Constructor Details

    • MicrosoftGraphParentalControlSettings

      public MicrosoftGraphParentalControlSettings()
      Creates an instance of MicrosoftGraphParentalControlSettings class.
  • Method Details

    • countriesBlockedForMinors

      public List<String> 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

      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.
    • 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.
    • additionalProperties

      public Map<String,Object> 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.