Class DefaultTenant

java.lang.Object
com.sap.cloud.sdk.cloudplatform.tenant.DefaultTenant
All Implemented Interfaces:
Tenant, TenantWithSubdomain

public class DefaultTenant extends Object implements TenantWithSubdomain
Implementation of Tenant which can be used on SAP Business Technology Platform Cloud Foundry.
  • Constructor Details

    • DefaultTenant

      public DefaultTenant(@Nonnull String tenantId)
      Creates a DefaultTenant without subdomain.
      Parameters:
      tenantId - The identifier of the tenant.
    • DefaultTenant

      public DefaultTenant(@Nonnull String tenantId, @Nullable String subdomain)
      Creates a new DefaultTenant instance.
      Parameters:
      tenantId - The identifier of the tenant.
      subdomain - The subdomain of the tenant.
  • Method Details

    • getTenantId

      @Nonnull public String getTenantId()
      The identifier of the tenant.
      Specified by:
      getTenantId in interface Tenant
      Returns:
      The identifier of the tenant.
    • getSubdomain

      @Nullable public String getSubdomain()
      The subdomain of the tenant.
      Specified by:
      getSubdomain in interface TenantWithSubdomain
      Returns:
      The tenant subdomain.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object