/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/geo-places/GeoPlaces_EXPORTS.h>
#include <aws/geo-places/model/Category.h>
#include <aws/geo-places/model/OpeningHoursComponents.h>

#include <utility>

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

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

  ///@{
  /**
   * <p>List of opening hours in the format they are displayed in. This can vary by
   * result and in most cases represents how the result uniquely formats their
   * opening hours. </p>
   */
  inline const Aws::Vector<Aws::String>& GetDisplay() const { return m_display; }
  inline bool DisplayHasBeenSet() const { return m_displayHasBeenSet; }
  template <typename DisplayT = Aws::Vector<Aws::String>>
  void SetDisplay(DisplayT&& value) {
    m_displayHasBeenSet = true;
    m_display = std::forward<DisplayT>(value);
  }
  template <typename DisplayT = Aws::Vector<Aws::String>>
  OpeningHours& WithDisplay(DisplayT&& value) {
    SetDisplay(std::forward<DisplayT>(value));
    return *this;
  }
  template <typename DisplayT = Aws::String>
  OpeningHours& AddDisplay(DisplayT&& value) {
    m_displayHasBeenSet = true;
    m_display.emplace_back(std::forward<DisplayT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Boolean which indicates if the result/place is currently open. </p>
   */
  inline bool GetOpenNow() const { return m_openNow; }
  inline bool OpenNowHasBeenSet() const { return m_openNowHasBeenSet; }
  inline void SetOpenNow(bool value) {
    m_openNowHasBeenSet = true;
    m_openNow = value;
  }
  inline OpeningHours& WithOpenNow(bool value) {
    SetOpenNow(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Components of the opening hours object.</p>
   */
  inline const Aws::Vector<OpeningHoursComponents>& GetComponents() const { return m_components; }
  inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
  template <typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
  void SetComponents(ComponentsT&& value) {
    m_componentsHasBeenSet = true;
    m_components = std::forward<ComponentsT>(value);
  }
  template <typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
  OpeningHours& WithComponents(ComponentsT&& value) {
    SetComponents(std::forward<ComponentsT>(value));
    return *this;
  }
  template <typename ComponentsT = OpeningHoursComponents>
  OpeningHours& AddComponents(ComponentsT&& value) {
    m_componentsHasBeenSet = true;
    m_components.emplace_back(std::forward<ComponentsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Categories of results that results must belong too.</p>
   */
  inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
  inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
  template <typename CategoriesT = Aws::Vector<Category>>
  void SetCategories(CategoriesT&& value) {
    m_categoriesHasBeenSet = true;
    m_categories = std::forward<CategoriesT>(value);
  }
  template <typename CategoriesT = Aws::Vector<Category>>
  OpeningHours& WithCategories(CategoriesT&& value) {
    SetCategories(std::forward<CategoriesT>(value));
    return *this;
  }
  template <typename CategoriesT = Category>
  OpeningHours& AddCategories(CategoriesT&& value) {
    m_categoriesHasBeenSet = true;
    m_categories.emplace_back(std::forward<CategoriesT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<Aws::String> m_display;

  bool m_openNow{false};

  Aws::Vector<OpeningHoursComponents> m_components;

  Aws::Vector<Category> m_categories;
  bool m_displayHasBeenSet = false;
  bool m_openNowHasBeenSet = false;
  bool m_componentsHasBeenSet = false;
  bool m_categoriesHasBeenSet = false;
};

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