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

#pragma once
#include <aws/securityhub/SecurityHub_EXPORTS.h>
#include <aws/securityhub/model/AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails.h>
#include <aws/securityhub/model/AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SecurityHub {
namespace Model {

/**
 * <p> Provides details for client authentication using SASL.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsMskClusterClusterInfoClientAuthenticationSaslDetails">AWS
 * API Reference</a></p>
 */
class AwsMskClusterClusterInfoClientAuthenticationSaslDetails {
 public:
  AWS_SECURITYHUB_API AwsMskClusterClusterInfoClientAuthenticationSaslDetails() = default;
  AWS_SECURITYHUB_API AwsMskClusterClusterInfoClientAuthenticationSaslDetails(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API AwsMskClusterClusterInfoClientAuthenticationSaslDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p> Provides details for SASL client authentication using IAM. </p>
   */
  inline const AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails& GetIam() const { return m_iam; }
  inline bool IamHasBeenSet() const { return m_iamHasBeenSet; }
  template <typename IamT = AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails>
  void SetIam(IamT&& value) {
    m_iamHasBeenSet = true;
    m_iam = std::forward<IamT>(value);
  }
  template <typename IamT = AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails>
  AwsMskClusterClusterInfoClientAuthenticationSaslDetails& WithIam(IamT&& value) {
    SetIam(std::forward<IamT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> Details for SASL client authentication using SCRAM.</p>
   */
  inline const AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails& GetScram() const { return m_scram; }
  inline bool ScramHasBeenSet() const { return m_scramHasBeenSet; }
  template <typename ScramT = AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails>
  void SetScram(ScramT&& value) {
    m_scramHasBeenSet = true;
    m_scram = std::forward<ScramT>(value);
  }
  template <typename ScramT = AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails>
  AwsMskClusterClusterInfoClientAuthenticationSaslDetails& WithScram(ScramT&& value) {
    SetScram(std::forward<ScramT>(value));
    return *this;
  }
  ///@}
 private:
  AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails m_iam;

  AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails m_scram;
  bool m_iamHasBeenSet = false;
  bool m_scramHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityHub
}  // namespace Aws
