Class LdapSearchScopeOpt

java.lang.Object
com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt
All Implemented Interfaces:
com.azure.json.JsonSerializable<LdapSearchScopeOpt>

public final class LdapSearchScopeOpt extends Object implements com.azure.json.JsonSerializable<LdapSearchScopeOpt>
LDAP search scope.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of LdapSearchScopeOpt class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LdapSearchScopeOpt from the JsonReader.
    Get the groupDN property: This specifies the group DN, which overrides the base DN for group lookups.
    Get the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups.
    void
    Validates the instance.
    Set the groupDN property: This specifies the group DN, which overrides the base DN for group lookups.
    withGroupMembershipFilter(String groupMembershipFilter)
    Set the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server.
    Set the userDN property: This specifies the user DN, which overrides the base DN for user lookups.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • LdapSearchScopeOpt

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

    • userDN

      public String userDN()
      Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups.
      Returns:
      the userDN value.
    • withUserDN

      public LdapSearchScopeOpt withUserDN(String userDN)
      Set the userDN property: This specifies the user DN, which overrides the base DN for user lookups.
      Parameters:
      userDN - the userDN value to set.
      Returns:
      the LdapSearchScopeOpt object itself.
    • groupDN

      public String groupDN()
      Get the groupDN property: This specifies the group DN, which overrides the base DN for group lookups.
      Returns:
      the groupDN value.
    • withGroupDN

      public LdapSearchScopeOpt withGroupDN(String groupDN)
      Set the groupDN property: This specifies the group DN, which overrides the base DN for group lookups.
      Parameters:
      groupDN - the groupDN value to set.
      Returns:
      the LdapSearchScopeOpt object itself.
    • groupMembershipFilter

      public String groupMembershipFilter()
      Get the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server.
      Returns:
      the groupMembershipFilter value.
    • withGroupMembershipFilter

      public LdapSearchScopeOpt withGroupMembershipFilter(String groupMembershipFilter)
      Set the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server.
      Parameters:
      groupMembershipFilter - the groupMembershipFilter value to set.
      Returns:
      the LdapSearchScopeOpt object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LdapSearchScopeOpt>
      Throws:
      IOException
    • fromJson

      public static LdapSearchScopeOpt fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LdapSearchScopeOpt from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LdapSearchScopeOpt 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 LdapSearchScopeOpt.