/**
 * 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/geo-places/GeoPlaces_EXPORTS.h>

#include <utility>

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

/**
 * <p>Category of the <code>Place</code> returned. </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/geo-places-2020-11-19/Category">AWS
 * API Reference</a></p>
 */
class Category {
 public:
  AWS_GEOPLACES_API Category() = default;
  AWS_GEOPLACES_API Category(Aws::Utils::Json::JsonView jsonValue);
  AWS_GEOPLACES_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The category ID.</p>
   */
  inline const Aws::String& GetId() const { return m_id; }
  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
  template <typename IdT = Aws::String>
  void SetId(IdT&& value) {
    m_idHasBeenSet = true;
    m_id = std::forward<IdT>(value);
  }
  template <typename IdT = Aws::String>
  Category& WithId(IdT&& value) {
    SetId(std::forward<IdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The category name.</p>
   */
  inline const Aws::String& GetName() const { return m_name; }
  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  template <typename NameT = Aws::String>
  void SetName(NameT&& value) {
    m_nameHasBeenSet = true;
    m_name = std::forward<NameT>(value);
  }
  template <typename NameT = Aws::String>
  Category& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Localized name of the category type.</p>
   */
  inline const Aws::String& GetLocalizedName() const { return m_localizedName; }
  inline bool LocalizedNameHasBeenSet() const { return m_localizedNameHasBeenSet; }
  template <typename LocalizedNameT = Aws::String>
  void SetLocalizedName(LocalizedNameT&& value) {
    m_localizedNameHasBeenSet = true;
    m_localizedName = std::forward<LocalizedNameT>(value);
  }
  template <typename LocalizedNameT = Aws::String>
  Category& WithLocalizedName(LocalizedNameT&& value) {
    SetLocalizedName(std::forward<LocalizedNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Boolean which indicates if this category is the primary offered by the
   * place.</p>
   */
  inline bool GetPrimary() const { return m_primary; }
  inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
  inline void SetPrimary(bool value) {
    m_primaryHasBeenSet = true;
    m_primary = value;
  }
  inline Category& WithPrimary(bool value) {
    SetPrimary(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_id;

  Aws::String m_name;

  Aws::String m_localizedName;

  bool m_primary{false};
  bool m_idHasBeenSet = false;
  bool m_nameHasBeenSet = false;
  bool m_localizedNameHasBeenSet = false;
  bool m_primaryHasBeenSet = false;
};

}  // namespace Model
}  // namespace GeoPlaces
}  // namespace Aws
