Tenant.UpdateRequest
Stay organized with collections
Save and categorize content based on your preferences.
A class for updating the attributes of an existing tenant.
An instance of this class can be obtained via a Tenant
object, or from a tenant ID
string. Specify the changes to be made to the tenant by calling the various setter methods
available in this class.
Public Constructor Summary
|
UpdateRequest(String tenantId)
Creates a new Tenant.UpdateRequest , which can be used to update the attributes of the
of the tenant identified by the specified tenant ID.
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Constructors
public
UpdateRequest
(String tenantId)
Creates a new Tenant.UpdateRequest
, which can be used to update the attributes of the
of the tenant identified by the specified tenant ID.
This method allows updating attributes of a tenant account, without first having to call
getTenant(String)
.
Parameters
tenantId |
a non-null, non-empty tenant ID string. |
Throws
IllegalArgumentException |
If the tenant ID is null or empty.
|
Public Methods
public
Tenant.UpdateRequest
setDisplayName
(String displayName)
Sets the display name of the existing tenant.
Parameters
displayName |
a non-null, non-empty display name string.
|
public
Tenant.UpdateRequest
setEmailLinkSignInEnabled
(boolean emailLinkSignInEnabled)
Sets whether to enable email link user authentication.
Parameters
emailLinkSignInEnabled |
a boolean indicating whether users can be authenticated using
an email link.
|
public
Tenant.UpdateRequest
setPasswordSignInAllowed
(boolean passwordSignInAllowed)
Sets whether to allow email/password user authentication.
Parameters
passwordSignInAllowed |
a boolean indicating whether users can be authenticated using
an email and password.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-04-28 UTC.
[null,null,["Last updated 2021-04-28 UTC."],[],[],null,["# Tenant.UpdateRequest\n\npublic static final class **Tenant.UpdateRequest** extends Object \nA class for updating the attributes of an existing tenant.\n\nAn instance of this class can be obtained via a [Tenant](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant) object, or from a tenant ID\nstring. Specify the changes to be made to the tenant by calling the various setter methods\navailable in this class. \n\n### Public Constructor Summary\n\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest#UpdateRequest(java.lang.String))(String tenantId) Creates a new [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest), which can be used to update the attributes of the of the tenant identified by the specified tenant ID. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest) | [setDisplayName](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest#setDisplayName(java.lang.String))(String displayName) Sets the display name of the existing tenant. |\n| [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest) | [setEmailLinkSignInEnabled](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest#setEmailLinkSignInEnabled(boolean))(boolean emailLinkSignInEnabled) Sets whether to enable email link user authentication. |\n| [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest) | [setPasswordSignInAllowed](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest#setPasswordSignInAllowed(boolean))(boolean passwordSignInAllowed) Sets whether to allow email/password user authentication. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**UpdateRequest**\n(String tenantId)\n\nCreates a new [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest), which can be used to update the attributes of the\nof the tenant identified by the specified tenant ID.\n\nThis method allows updating attributes of a tenant account, without first having to call\n[getTenant(String)](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/TenantManager#getTenant(java.lang.String)). \n\n##### Parameters\n\n| tenantId | a non-null, non-empty tenant ID string. |\n|----------|-----------------------------------------|\n\n##### Throws\n\n| IllegalArgumentException | If the tenant ID is null or empty. |\n|--------------------------|------------------------------------|\n\nPublic Methods\n--------------\n\n#### public [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest)\n**setDisplayName**\n(String displayName)\n\nSets the display name of the existing tenant. \n\n##### Parameters\n\n| displayName | a non-null, non-empty display name string. |\n|-------------|--------------------------------------------|\n\n#### public [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest)\n**setEmailLinkSignInEnabled**\n(boolean emailLinkSignInEnabled)\n\nSets whether to enable email link user authentication. \n\n##### Parameters\n\n| emailLinkSignInEnabled | a boolean indicating whether users can be authenticated using an email link. |\n|------------------------|------------------------------------------------------------------------------|\n\n#### public [Tenant.UpdateRequest](/docs/reference/admin/java/reference/com/google/firebase/auth/multitenancy/Tenant.UpdateRequest)\n**setPasswordSignInAllowed**\n(boolean passwordSignInAllowed)\n\nSets whether to allow email/password user authentication. \n\n##### Parameters\n\n| passwordSignInAllowed | a boolean indicating whether users can be authenticated using an email and password. |\n|-----------------------|--------------------------------------------------------------------------------------|"]]