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 -
Method Summary
Modifier and TypeMethodDescriptionstatic LdapSearchScopeOpt
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LdapSearchScopeOpt from the JsonReader.groupDN()
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) userDN()
Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups.void
validate()
Validates the instance.withGroupDN
(String groupDN) 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.withUserDN
(String userDN) 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
Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups.- Returns:
- the userDN value.
-
withUserDN
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
Get the groupDN property: This specifies the group DN, which overrides the base DN for group lookups.- Returns:
- the groupDN value.
-
withGroupDN
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
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<LdapSearchScopeOpt>
- Throws:
IOException
-
fromJson
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.
-