package com.microstar.tap3.login;

import org.slf4j.LoggerFactory;

import com.microstar.tap3.api.BaseLambdaFunctionHandler;


//import com.jrestless.aws.gateway.GatewayResourceConfig;
//import com.jrestless.aws.gateway.handler.GatewayRequestObjectHandler;

public class LoginLambdaFunctionHandler extends BaseLambdaFunctionHandler
{

	
	static {
		
		System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "DEBUG");
		LOG = LoggerFactory.getLogger(LoginLambdaFunctionHandler.class);
	}

	public LoginLambdaFunctionHandler()
	{
		super("com.microstar.tap3.login");
	}

	public static class AuthBody
	{
		private String userId;
		private String password;
		
		public AuthBody()
		{
			
		}
		
		/**
		 * @return the userId
		 */
		public String getUserId()
		{
			return userId;
		}
		/**
		 * @param userId the userId to set
		 */
		public AuthBody setUserId(String userId)
		{
			this.userId = userId;
			return this;
		}
		/**
		 * @return the password
		 */
		public String getPassword()
		{
			return password;
		}
		/**
		 * @param password the password to set
		 */
		public AuthBody setPassword(String password)
		{
			this.password = password;
			return this;
		}
		
	}
	
	
//    public LoginLambdaFunctionHandler() {
//        /*
//         * This will start a Jersey container that delegates all requests proxied through from AWS API Gateway
//         * to this Lambda function to your JAX-RS resources.
//         */
//        init(new GatewayResourceConfig().packages("com.microstar.tap3.login"));
//        start();
//      }

}
