code: public static Map<String, Object> createFormParamSignIn(String username, String password, Boolean isSaml) {
          if (username == null) {
              throw new IllegalArgumentException("Missing the required parameter 'username'");
          }
          if (password == null) {
              throw new IllegalArgumentException("Missing the required parameter 'password'");
          }
          Map<String, Object> formParams = new HashMap<>();
          formParams.put("username", username);
          formParams.put("password", password);
          if (isSaml != null) {
              formParams.put("saml", isSaml);
          }
          return formParams;
      }
docs: Build  form parameters to sign in
  
  @param username The agent&#39;s username, formatted as &#39;tenant\\username&#39;. (required)
  @param password The agent&#39;s password. (required)
  @param isSaml   Specifies whether to login using [Security Assertion Markup Language](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) (SAML). (optional)
  @return a map of form parameters
  @throws IllegalArgumentException if required form parameter is missed