Class TenantMatch

java.lang.Object
co.ankatech.keymanagement.client.auth.model.TenantMatch

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class TenantMatch extends Object
One membership the authenticated identity may sign into
  • Field Details

  • Constructor Details

    • TenantMatch

      public TenantMatch()
  • Method Details

    • getAccountTypeAsString

      public String getAccountTypeAsString()
      The wire value of accountType: what the server sent, verbatim.
      • For a value this release declares, the same wire value the enum names.
      • For a value it does not declare (one a later server added), the server's wire value verbatim, while getAccountType() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • accountType

      public TenantMatch accountType(@Nonnull TenantMatch.AccountTypeEnum accountType)
    • getAccountType

      @Nonnull public TenantMatch.AccountTypeEnum getAccountType()
      PLATFORM_ADMIN for the membership of the platform tenant, TENANT_ADMIN for any other tenant
      Returns:
      accountType
    • setAccountType

      public void setAccountType(@Nonnull TenantMatch.AccountTypeEnum accountType)
    • tenantId

      public TenantMatch tenantId(@Nonnull String tenantId)
    • getTenantId

      @Nonnull public String getTenantId()
      Tenant UUID
      Returns:
      tenantId
    • setTenantId

      public void setTenantId(@Nonnull String tenantId)
    • tenantName

      public TenantMatch tenantName(@Nonnull String tenantName)
    • getTenantName

      @Nonnull public String getTenantName()
      Human-readable tenant name for the picker UI
      Returns:
      tenantName
    • setTenantName

      public void setTenantName(@Nonnull String tenantName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to TenantMatch
    • validateJsonElementAsCandidate

      public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element as a candidate of a oneOf schema: the checks of validateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is not a TenantMatch
    • fromJson

      public static TenantMatch fromJson(String jsonString) throws IOException
      Create an instance of TenantMatch given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TenantMatch
      Throws:
      IOException - if the JSON string is invalid with respect to TenantMatch
    • toJson

      public String toJson()
      Convert an instance of TenantMatch to an JSON string
      Returns:
      JSON string