Package com.coveo.pushapiclient
Record Class VirtualGroupSecurityIdentityBuilder
java.lang.Object
java.lang.Record
com.coveo.pushapiclient.VirtualGroupSecurityIdentityBuilder
- All Implemented Interfaces:
SecurityIdentityBuilder
public record VirtualGroupSecurityIdentityBuilder(String[] identities, String securityProvider)
extends Record
implements SecurityIdentityBuilder
Build a security identity of type `VIRTUAL_GROUP`.
Typically used in conjunction with DocumentBuilder.withAllowedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder) or DocumentBuilder.withDeniedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder).
See SecurityIdentity.
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualGroupSecurityIdentityBuilder(String[] identities, String securityProvider)Creates an instance of aVirtualGroupSecurityIdentityBuilderrecord class.VirtualGroupSecurityIdentityBuilder(String identity, String securityProvider)Construct a VirtualGroupSecurityIdentityBuilder with a single identity. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return a list ofSecurityIdentitybooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.String[]Returns the value of theidentitiesrecord component.Returns the value of thesecurityProviderrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VirtualGroupSecurityIdentityBuilder
Construct a VirtualGroupSecurityIdentityBuilder with a single identity.- Parameters:
identity-securityProvider-
-
VirtualGroupSecurityIdentityBuilder
Creates an instance of aVirtualGroupSecurityIdentityBuilderrecord class.- Parameters:
identities- the value for theidentitiesrecord componentsecurityProvider- the value for thesecurityProviderrecord component
-
-
Method Details
-
build
Description copied from interface:SecurityIdentityBuilderBuild and return a list ofSecurityIdentity- Specified by:
buildin interfaceSecurityIdentityBuilder- Returns:
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
identities
Returns the value of theidentitiesrecord component.- Returns:
- the value of the
identitiesrecord component
-
securityProvider
Returns the value of thesecurityProviderrecord component.- Returns:
- the value of the
securityProviderrecord component
-