/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class PutDefaultEncryptionConfigurationRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API PutDefaultEncryptionConfigurationRequest(); // 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 "PutDefaultEncryptionConfiguration"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The type of encryption used for the encryption configuration.

*/ inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; } /** *

The type of encryption used for the encryption configuration.

*/ inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; } /** *

The type of encryption used for the encryption configuration.

*/ inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; } /** *

The type of encryption used for the encryption configuration.

*/ inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); } /** *

The type of encryption used for the encryption configuration.

*/ inline PutDefaultEncryptionConfigurationRequest& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;} /** *

The type of encryption used for the encryption configuration.

*/ inline PutDefaultEncryptionConfigurationRequest& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;} /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The Key ID of the customer managed key used for KMS encryption. This is * required if you use KMS_BASED_ENCRYPTION.

*/ inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} private: EncryptionType m_encryptionType; bool m_encryptionTypeHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws