/**
 * 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/socialmessaging/SocialMessaging_EXPORTS.h>

#include <utility>

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

/**
 * <p>Contains information on the event destination.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppBusinessAccountEventDestination">AWS
 * API Reference</a></p>
 */
class WhatsAppBusinessAccountEventDestination {
 public:
  AWS_SOCIALMESSAGING_API WhatsAppBusinessAccountEventDestination() = default;
  AWS_SOCIALMESSAGING_API WhatsAppBusinessAccountEventDestination(Aws::Utils::Json::JsonView jsonValue);
  AWS_SOCIALMESSAGING_API WhatsAppBusinessAccountEventDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The ARN of the event destination.</p>
   */
  inline const Aws::String& GetEventDestinationArn() const { return m_eventDestinationArn; }
  inline bool EventDestinationArnHasBeenSet() const { return m_eventDestinationArnHasBeenSet; }
  template <typename EventDestinationArnT = Aws::String>
  void SetEventDestinationArn(EventDestinationArnT&& value) {
    m_eventDestinationArnHasBeenSet = true;
    m_eventDestinationArn = std::forward<EventDestinationArnT>(value);
  }
  template <typename EventDestinationArnT = Aws::String>
  WhatsAppBusinessAccountEventDestination& WithEventDestinationArn(EventDestinationArnT&& value) {
    SetEventDestinationArn(std::forward<EventDestinationArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of an Identity and Access Management role that
   * is able to import phone numbers and write events.</p>
   */
  inline const Aws::String& GetRoleArn() const { return m_roleArn; }
  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
  template <typename RoleArnT = Aws::String>
  void SetRoleArn(RoleArnT&& value) {
    m_roleArnHasBeenSet = true;
    m_roleArn = std::forward<RoleArnT>(value);
  }
  template <typename RoleArnT = Aws::String>
  WhatsAppBusinessAccountEventDestination& WithRoleArn(RoleArnT&& value) {
    SetRoleArn(std::forward<RoleArnT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_eventDestinationArn;

  Aws::String m_roleArn;
  bool m_eventDestinationArnHasBeenSet = false;
  bool m_roleArnHasBeenSet = false;
};

}  // namespace Model
}  // namespace SocialMessaging
}  // namespace Aws
