/**
 * 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/workspaces/WorkSpaces_EXPORTS.h>

#include <utility>

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

/**
 * <p>Describes whether a WorkSpace image needs to be updated with the latest
 * drivers and other components required by Amazon WorkSpaces.</p>  <p>Only
 * Windows 10 WorkSpace images can be programmatically updated at this time.</p>
 * <p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateResult">AWS
 * API Reference</a></p>
 */
class UpdateResult {
 public:
  AWS_WORKSPACES_API UpdateResult() = default;
  AWS_WORKSPACES_API UpdateResult(Aws::Utils::Json::JsonView jsonValue);
  AWS_WORKSPACES_API UpdateResult& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Indicates whether updated drivers or other components are available for the
   * specified WorkSpace image.</p>
   */
  inline bool GetUpdateAvailable() const { return m_updateAvailable; }
  inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
  inline void SetUpdateAvailable(bool value) {
    m_updateAvailableHasBeenSet = true;
    m_updateAvailable = value;
  }
  inline UpdateResult& WithUpdateAvailable(bool value) {
    SetUpdateAvailable(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A description of whether updates for the WorkSpace image are pending or
   * available.</p>
   */
  inline const Aws::String& GetDescription() const { return m_description; }
  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  template <typename DescriptionT = Aws::String>
  void SetDescription(DescriptionT&& value) {
    m_descriptionHasBeenSet = true;
    m_description = std::forward<DescriptionT>(value);
  }
  template <typename DescriptionT = Aws::String>
  UpdateResult& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}
 private:
  bool m_updateAvailable{false};

  Aws::String m_description;
  bool m_updateAvailableHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
};

}  // namespace Model
}  // namespace WorkSpaces
}  // namespace Aws
