Class PolicyRoot

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PolicyRoot
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class PolicyRoot extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • PolicyRoot

      public PolicyRoot()
      Instantiates a new PolicyRoot and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static PolicyRoot createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a PolicyRoot
    • getActivityBasedTimeoutPolicies

      @Nullable public List<ActivityBasedTimeoutPolicy> getActivityBasedTimeoutPolicies()
      Gets the activityBasedTimeoutPolicies property value. The policy that controls the idle time out for web sessions for applications.
      Returns:
      a List<ActivityBasedTimeoutPolicy>
    • getAdminConsentRequestPolicy

      @Nullable public AdminConsentRequestPolicy getAdminConsentRequestPolicy()
      Gets the adminConsentRequestPolicy property value. The policy by which consent requests are created and managed for the entire tenant.
      Returns:
      a AdminConsentRequestPolicy
    • getAppManagementPolicies

      @Nullable public List<AppManagementPolicy> getAppManagementPolicies()
      Gets the appManagementPolicies property value. The policies that enforce app management restrictions for specific applications and service principals, overriding the defaultAppManagementPolicy.
      Returns:
      a List<AppManagementPolicy>
    • getAuthenticationFlowsPolicy

      @Nullable public AuthenticationFlowsPolicy getAuthenticationFlowsPolicy()
      Gets the authenticationFlowsPolicy property value. The policy configuration of the self-service sign-up experience of external users.
      Returns:
      a AuthenticationFlowsPolicy
    • getAuthenticationMethodsPolicy

      @Nullable public AuthenticationMethodsPolicy getAuthenticationMethodsPolicy()
      Gets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Microsoft Entra ID.
      Returns:
      a AuthenticationMethodsPolicy
    • getAuthenticationStrengthPolicies

      @Nullable public List<AuthenticationStrengthPolicy> getAuthenticationStrengthPolicies()
      Gets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Microsoft Entra Conditional Access.
      Returns:
      a List<AuthenticationStrengthPolicy>
    • getAuthorizationPolicy

      @Nullable public AuthorizationPolicy getAuthorizationPolicy()
      Gets the authorizationPolicy property value. The policy that controls Microsoft Entra authorization settings.
      Returns:
      a AuthorizationPolicy
    • getClaimsMappingPolicies

      @Nullable public List<ClaimsMappingPolicy> getClaimsMappingPolicies()
      Gets the claimsMappingPolicies property value. The claim-mapping policies for WS-Fed, SAML, OAuth 2.0, and OpenID Connect protocols, for tokens issued to a specific application.
      Returns:
      a List<ClaimsMappingPolicy>
    • getConditionalAccessPolicies

      @Nullable public List<ConditionalAccessPolicy> getConditionalAccessPolicies()
      Gets the conditionalAccessPolicies property value. The custom rules that define an access scenario.
      Returns:
      a List<ConditionalAccessPolicy>
    • getCrossTenantAccessPolicy

      @Nullable public CrossTenantAccessPolicy getCrossTenantAccessPolicy()
      Gets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Microsoft Entra tenants.
      Returns:
      a CrossTenantAccessPolicy
    • getDefaultAppManagementPolicy

      @Nullable public TenantAppManagementPolicy getDefaultAppManagementPolicy()
      Gets the defaultAppManagementPolicy property value. The tenant-wide policy that enforces app management restrictions for all applications and service principals.
      Returns:
      a TenantAppManagementPolicy
    • getDeviceRegistrationPolicy

      @Nullable public DeviceRegistrationPolicy getDeviceRegistrationPolicy()
      Gets the deviceRegistrationPolicy property value. The deviceRegistrationPolicy property
      Returns:
      a DeviceRegistrationPolicy
    • getFeatureRolloutPolicies

      @Nullable public List<FeatureRolloutPolicy> getFeatureRolloutPolicies()
      Gets the featureRolloutPolicies property value. The feature rollout policy associated with a directory object.
      Returns:
      a List<FeatureRolloutPolicy>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHomeRealmDiscoveryPolicies

      @Nullable public List<HomeRealmDiscoveryPolicy> getHomeRealmDiscoveryPolicies()
      Gets the homeRealmDiscoveryPolicies property value. The policy to control Microsoft Entra authentication behavior for federated users.
      Returns:
      a List<HomeRealmDiscoveryPolicy>
    • getIdentitySecurityDefaultsEnforcementPolicy

      @Nullable public IdentitySecurityDefaultsEnforcementPolicy getIdentitySecurityDefaultsEnforcementPolicy()
      Gets the identitySecurityDefaultsEnforcementPolicy property value. The policy that represents the security defaults that protect against common attacks.
      Returns:
      a IdentitySecurityDefaultsEnforcementPolicy
    • getPermissionGrantPolicies

      @Nullable public List<PermissionGrantPolicy> getPermissionGrantPolicies()
      Gets the permissionGrantPolicies property value. The policy that specifies the conditions under which consent can be granted.
      Returns:
      a List<PermissionGrantPolicy>
    • getRoleManagementPolicies

      @Nullable public List<UnifiedRoleManagementPolicy> getRoleManagementPolicies()
      Gets the roleManagementPolicies property value. Specifies the various policies associated with scopes and roles.
      Returns:
      a List<UnifiedRoleManagementPolicy>
    • getRoleManagementPolicyAssignments

      @Nullable public List<UnifiedRoleManagementPolicyAssignment> getRoleManagementPolicyAssignments()
      Gets the roleManagementPolicyAssignments property value. The assignment of a role management policy to a role definition object.
      Returns:
      a List<UnifiedRoleManagementPolicyAssignment>
    • getTokenIssuancePolicies

      @Nullable public List<TokenIssuancePolicy> getTokenIssuancePolicies()
      Gets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID.
      Returns:
      a List<TokenIssuancePolicy>
    • getTokenLifetimePolicies

      @Nullable public List<TokenLifetimePolicy> getTokenLifetimePolicies()
      Gets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Microsoft Entra ID.
      Returns:
      a List<TokenLifetimePolicy>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setActivityBasedTimeoutPolicies

      public void setActivityBasedTimeoutPolicies(@Nullable List<ActivityBasedTimeoutPolicy> value)
      Sets the activityBasedTimeoutPolicies property value. The policy that controls the idle time out for web sessions for applications.
      Parameters:
      value - Value to set for the activityBasedTimeoutPolicies property.
    • setAdminConsentRequestPolicy

      public void setAdminConsentRequestPolicy(@Nullable AdminConsentRequestPolicy value)
      Sets the adminConsentRequestPolicy property value. The policy by which consent requests are created and managed for the entire tenant.
      Parameters:
      value - Value to set for the adminConsentRequestPolicy property.
    • setAppManagementPolicies

      public void setAppManagementPolicies(@Nullable List<AppManagementPolicy> value)
      Sets the appManagementPolicies property value. The policies that enforce app management restrictions for specific applications and service principals, overriding the defaultAppManagementPolicy.
      Parameters:
      value - Value to set for the appManagementPolicies property.
    • setAuthenticationFlowsPolicy

      public void setAuthenticationFlowsPolicy(@Nullable AuthenticationFlowsPolicy value)
      Sets the authenticationFlowsPolicy property value. The policy configuration of the self-service sign-up experience of external users.
      Parameters:
      value - Value to set for the authenticationFlowsPolicy property.
    • setAuthenticationMethodsPolicy

      public void setAuthenticationMethodsPolicy(@Nullable AuthenticationMethodsPolicy value)
      Sets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Microsoft Entra ID.
      Parameters:
      value - Value to set for the authenticationMethodsPolicy property.
    • setAuthenticationStrengthPolicies

      public void setAuthenticationStrengthPolicies(@Nullable List<AuthenticationStrengthPolicy> value)
      Sets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Microsoft Entra Conditional Access.
      Parameters:
      value - Value to set for the authenticationStrengthPolicies property.
    • setAuthorizationPolicy

      public void setAuthorizationPolicy(@Nullable AuthorizationPolicy value)
      Sets the authorizationPolicy property value. The policy that controls Microsoft Entra authorization settings.
      Parameters:
      value - Value to set for the authorizationPolicy property.
    • setClaimsMappingPolicies

      public void setClaimsMappingPolicies(@Nullable List<ClaimsMappingPolicy> value)
      Sets the claimsMappingPolicies property value. The claim-mapping policies for WS-Fed, SAML, OAuth 2.0, and OpenID Connect protocols, for tokens issued to a specific application.
      Parameters:
      value - Value to set for the claimsMappingPolicies property.
    • setConditionalAccessPolicies

      public void setConditionalAccessPolicies(@Nullable List<ConditionalAccessPolicy> value)
      Sets the conditionalAccessPolicies property value. The custom rules that define an access scenario.
      Parameters:
      value - Value to set for the conditionalAccessPolicies property.
    • setCrossTenantAccessPolicy

      public void setCrossTenantAccessPolicy(@Nullable CrossTenantAccessPolicy value)
      Sets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Microsoft Entra tenants.
      Parameters:
      value - Value to set for the crossTenantAccessPolicy property.
    • setDefaultAppManagementPolicy

      public void setDefaultAppManagementPolicy(@Nullable TenantAppManagementPolicy value)
      Sets the defaultAppManagementPolicy property value. The tenant-wide policy that enforces app management restrictions for all applications and service principals.
      Parameters:
      value - Value to set for the defaultAppManagementPolicy property.
    • setDeviceRegistrationPolicy

      public void setDeviceRegistrationPolicy(@Nullable DeviceRegistrationPolicy value)
      Sets the deviceRegistrationPolicy property value. The deviceRegistrationPolicy property
      Parameters:
      value - Value to set for the deviceRegistrationPolicy property.
    • setFeatureRolloutPolicies

      public void setFeatureRolloutPolicies(@Nullable List<FeatureRolloutPolicy> value)
      Sets the featureRolloutPolicies property value. The feature rollout policy associated with a directory object.
      Parameters:
      value - Value to set for the featureRolloutPolicies property.
    • setHomeRealmDiscoveryPolicies

      public void setHomeRealmDiscoveryPolicies(@Nullable List<HomeRealmDiscoveryPolicy> value)
      Sets the homeRealmDiscoveryPolicies property value. The policy to control Microsoft Entra authentication behavior for federated users.
      Parameters:
      value - Value to set for the homeRealmDiscoveryPolicies property.
    • setIdentitySecurityDefaultsEnforcementPolicy

      public void setIdentitySecurityDefaultsEnforcementPolicy(@Nullable IdentitySecurityDefaultsEnforcementPolicy value)
      Sets the identitySecurityDefaultsEnforcementPolicy property value. The policy that represents the security defaults that protect against common attacks.
      Parameters:
      value - Value to set for the identitySecurityDefaultsEnforcementPolicy property.
    • setPermissionGrantPolicies

      public void setPermissionGrantPolicies(@Nullable List<PermissionGrantPolicy> value)
      Sets the permissionGrantPolicies property value. The policy that specifies the conditions under which consent can be granted.
      Parameters:
      value - Value to set for the permissionGrantPolicies property.
    • setRoleManagementPolicies

      public void setRoleManagementPolicies(@Nullable List<UnifiedRoleManagementPolicy> value)
      Sets the roleManagementPolicies property value. Specifies the various policies associated with scopes and roles.
      Parameters:
      value - Value to set for the roleManagementPolicies property.
    • setRoleManagementPolicyAssignments

      public void setRoleManagementPolicyAssignments(@Nullable List<UnifiedRoleManagementPolicyAssignment> value)
      Sets the roleManagementPolicyAssignments property value. The assignment of a role management policy to a role definition object.
      Parameters:
      value - Value to set for the roleManagementPolicyAssignments property.
    • setTokenIssuancePolicies

      public void setTokenIssuancePolicies(@Nullable List<TokenIssuancePolicy> value)
      Sets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID.
      Parameters:
      value - Value to set for the tokenIssuancePolicies property.
    • setTokenLifetimePolicies

      public void setTokenLifetimePolicies(@Nullable List<TokenLifetimePolicy> value)
      Sets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Microsoft Entra ID.
      Parameters:
      value - Value to set for the tokenLifetimePolicies property.