/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class PutKMSEncryptionKeyRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API PutKMSEncryptionKeyRequest(); // 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 "PutKMSEncryptionKey"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline const Aws::String& GetKmsEncryptionKeyArn() const{ return m_kmsEncryptionKeyArn; } /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline bool KmsEncryptionKeyArnHasBeenSet() const { return m_kmsEncryptionKeyArnHasBeenSet; } /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline void SetKmsEncryptionKeyArn(const Aws::String& value) { m_kmsEncryptionKeyArnHasBeenSet = true; m_kmsEncryptionKeyArn = value; } /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline void SetKmsEncryptionKeyArn(Aws::String&& value) { m_kmsEncryptionKeyArnHasBeenSet = true; m_kmsEncryptionKeyArn = std::move(value); } /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline void SetKmsEncryptionKeyArn(const char* value) { m_kmsEncryptionKeyArnHasBeenSet = true; m_kmsEncryptionKeyArn.assign(value); } /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline PutKMSEncryptionKeyRequest& WithKmsEncryptionKeyArn(const Aws::String& value) { SetKmsEncryptionKeyArn(value); return *this;} /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline PutKMSEncryptionKeyRequest& WithKmsEncryptionKeyArn(Aws::String&& value) { SetKmsEncryptionKeyArn(std::move(value)); return *this;} /** *

The KMS encryption key ARN.

The KMS key must be single-Region key. * Amazon Fraud Detector does not support multi-Region KMS key.

*/ inline PutKMSEncryptionKeyRequest& WithKmsEncryptionKeyArn(const char* value) { SetKmsEncryptionKeyArn(value); return *this;} private: Aws::String m_kmsEncryptionKeyArn; bool m_kmsEncryptionKeyArnHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws