/**
 * 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/storagegateway/StorageGatewayRequest.h>
#include <aws/storagegateway/StorageGateway_EXPORTS.h>
#include <aws/storagegateway/model/SMBSecurityStrategy.h>

#include <utility>

namespace Aws {
namespace StorageGateway {
namespace Model {

/**
 */
class UpdateSMBSecurityStrategyRequest : public StorageGatewayRequest {
 public:
  AWS_STORAGEGATEWAY_API UpdateSMBSecurityStrategyRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "UpdateSMBSecurityStrategy"; }

  AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;

  AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{

  inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
  template <typename GatewayARNT = Aws::String>
  void SetGatewayARN(GatewayARNT&& value) {
    m_gatewayARNHasBeenSet = true;
    m_gatewayARN = std::forward<GatewayARNT>(value);
  }
  template <typename GatewayARNT = Aws::String>
  UpdateSMBSecurityStrategyRequest& WithGatewayARN(GatewayARNT&& value) {
    SetGatewayARN(std::forward<GatewayARNT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies the type of security strategy.</p> <p>
   * <code>ClientSpecified</code>: If you choose this option, requests are
   * established based on what is negotiated by the client. This option is
   * recommended when you want to maximize compatibility across different clients in
   * your environment. Supported only for S3 File Gateway.</p> <p>
   * <code>MandatorySigning</code>: If you choose this option, File Gateway only
   * allows connections from SMBv2 or SMBv3 clients that have signing enabled. This
   * option works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or
   * newer.</p> <p> <code>MandatoryEncryption</code>: If you choose this option, File
   * Gateway only allows connections from SMBv3 clients that have encryption enabled.
   * This option is recommended for environments that handle sensitive data. This
   * option works with SMB clients on Microsoft Windows 8, Windows Server 2012 or
   * newer.</p> <p> <code>MandatoryEncryptionNoAes128</code>: If you choose this
   * option, File Gateway only allows connections from SMBv3 clients that use 256-bit
   * AES encryption algorithms. 128-bit algorithms are not allowed. This option is
   * recommended for environments that handle sensitive data. It works with SMB
   * clients on Microsoft Windows 8, Windows Server 2012, or later.</p>
   */
  inline SMBSecurityStrategy GetSMBSecurityStrategy() const { return m_sMBSecurityStrategy; }
  inline bool SMBSecurityStrategyHasBeenSet() const { return m_sMBSecurityStrategyHasBeenSet; }
  inline void SetSMBSecurityStrategy(SMBSecurityStrategy value) {
    m_sMBSecurityStrategyHasBeenSet = true;
    m_sMBSecurityStrategy = value;
  }
  inline UpdateSMBSecurityStrategyRequest& WithSMBSecurityStrategy(SMBSecurityStrategy value) {
    SetSMBSecurityStrategy(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_gatewayARN;

  SMBSecurityStrategy m_sMBSecurityStrategy{SMBSecurityStrategy::NOT_SET};
  bool m_gatewayARNHasBeenSet = false;
  bool m_sMBSecurityStrategyHasBeenSet = false;
};

}  // namespace Model
}  // namespace StorageGateway
}  // namespace Aws
