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

#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/StorageConnectorStatusEnum.h>
#include <aws/workspaces/model/StorageConnectorTypeEnum.h>

#include <utility>

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

/**
 * <p>Describes the storage connector.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StorageConnector">AWS
 * API Reference</a></p>
 */
class StorageConnector {
 public:
  AWS_WORKSPACES_API StorageConnector() = default;
  AWS_WORKSPACES_API StorageConnector(Aws::Utils::Json::JsonView jsonValue);
  AWS_WORKSPACES_API StorageConnector& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The type of connector used to save user files.</p>
   */
  inline StorageConnectorTypeEnum GetConnectorType() const { return m_connectorType; }
  inline bool ConnectorTypeHasBeenSet() const { return m_connectorTypeHasBeenSet; }
  inline void SetConnectorType(StorageConnectorTypeEnum value) {
    m_connectorTypeHasBeenSet = true;
    m_connectorType = value;
  }
  inline StorageConnector& WithConnectorType(StorageConnectorTypeEnum value) {
    SetConnectorType(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Indicates if the storage connetor is enabled or disabled.</p>
   */
  inline StorageConnectorStatusEnum GetStatus() const { return m_status; }
  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
  inline void SetStatus(StorageConnectorStatusEnum value) {
    m_statusHasBeenSet = true;
    m_status = value;
  }
  inline StorageConnector& WithStatus(StorageConnectorStatusEnum value) {
    SetStatus(value);
    return *this;
  }
  ///@}
 private:
  StorageConnectorTypeEnum m_connectorType{StorageConnectorTypeEnum::NOT_SET};

  StorageConnectorStatusEnum m_status{StorageConnectorStatusEnum::NOT_SET};
  bool m_connectorTypeHasBeenSet = false;
  bool m_statusHasBeenSet = false;
};

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