/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sso-admin/SSOAdminRequest.h>
#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
#include <aws/sso-admin/model/AuthenticationMethodType.h>

#include <utility>

namespace Aws {
namespace SSOAdmin {
namespace Model {

/**
 */
class GetApplicationAuthenticationMethodRequest : public SSOAdminRequest {
 public:
  AWS_SSOADMIN_API GetApplicationAuthenticationMethodRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "GetApplicationAuthenticationMethod"; }

  AWS_SSOADMIN_API Aws::String SerializePayload() const override;

  AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>Specifies the ARN of the application.</p>
   */
  inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
  inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
  template <typename ApplicationArnT = Aws::String>
  void SetApplicationArn(ApplicationArnT&& value) {
    m_applicationArnHasBeenSet = true;
    m_applicationArn = std::forward<ApplicationArnT>(value);
  }
  template <typename ApplicationArnT = Aws::String>
  GetApplicationAuthenticationMethodRequest& WithApplicationArn(ApplicationArnT&& value) {
    SetApplicationArn(std::forward<ApplicationArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies the type of authentication method for which you want details.</p>
   */
  inline AuthenticationMethodType GetAuthenticationMethodType() const { return m_authenticationMethodType; }
  inline bool AuthenticationMethodTypeHasBeenSet() const { return m_authenticationMethodTypeHasBeenSet; }
  inline void SetAuthenticationMethodType(AuthenticationMethodType value) {
    m_authenticationMethodTypeHasBeenSet = true;
    m_authenticationMethodType = value;
  }
  inline GetApplicationAuthenticationMethodRequest& WithAuthenticationMethodType(AuthenticationMethodType value) {
    SetAuthenticationMethodType(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_applicationArn;

  AuthenticationMethodType m_authenticationMethodType{AuthenticationMethodType::NOT_SET};
  bool m_applicationArnHasBeenSet = false;
  bool m_authenticationMethodTypeHasBeenSet = false;
};

}  // namespace Model
}  // namespace SSOAdmin
}  // namespace Aws
