/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
#pragma once
#include 
#include 
#include 
namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace SecurityHub
{
namespace Model
{
  /**
   * Details about the configuration for encryption at rest.
See
   * Also:
   AWS
   * API Reference
   */
  class AwsElasticsearchDomainEncryptionAtRestOptions
  {
  public:
    AWS_SECURITYHUB_API AwsElasticsearchDomainEncryptionAtRestOptions();
    AWS_SECURITYHUB_API AwsElasticsearchDomainEncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue);
    AWS_SECURITYHUB_API AwsElasticsearchDomainEncryptionAtRestOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
    /**
     * Whether encryption at rest is enabled.
     */
    inline bool GetEnabled() const{ return m_enabled; }
    /**
     * Whether encryption at rest is enabled.
     */
    inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
    /**
     * Whether encryption at rest is enabled.
     */
    inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
    /**
     * Whether encryption at rest is enabled.
     */
    inline AwsElasticsearchDomainEncryptionAtRestOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline AwsElasticsearchDomainEncryptionAtRestOptions& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline AwsElasticsearchDomainEncryptionAtRestOptions& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
    /**
     * The KMS key ID. Takes the form
     * 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
     */
    inline AwsElasticsearchDomainEncryptionAtRestOptions& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
  private:
    bool m_enabled;
    bool m_enabledHasBeenSet = false;
    Aws::String m_kmsKeyId;
    bool m_kmsKeyIdHasBeenSet = false;
  };
} // namespace Model
} // namespace SecurityHub
} // namespace Aws