/** * 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 { /** *

Data about a queue.

See Also:

AWS * API Reference

*/ class AwsSqsQueueDetails { public: AWS_SECURITYHUB_API AwsSqsQueueDetails(); AWS_SECURITYHUB_API AwsSqsQueueDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsSqsQueueDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The length of time, in seconds, for which Amazon SQS can reuse a data key to * encrypt or decrypt messages before calling KMS again.

*/ inline int GetKmsDataKeyReusePeriodSeconds() const{ return m_kmsDataKeyReusePeriodSeconds; } /** *

The length of time, in seconds, for which Amazon SQS can reuse a data key to * encrypt or decrypt messages before calling KMS again.

*/ inline bool KmsDataKeyReusePeriodSecondsHasBeenSet() const { return m_kmsDataKeyReusePeriodSecondsHasBeenSet; } /** *

The length of time, in seconds, for which Amazon SQS can reuse a data key to * encrypt or decrypt messages before calling KMS again.

*/ inline void SetKmsDataKeyReusePeriodSeconds(int value) { m_kmsDataKeyReusePeriodSecondsHasBeenSet = true; m_kmsDataKeyReusePeriodSeconds = value; } /** *

The length of time, in seconds, for which Amazon SQS can reuse a data key to * encrypt or decrypt messages before calling KMS again.

*/ inline AwsSqsQueueDetails& WithKmsDataKeyReusePeriodSeconds(int value) { SetKmsDataKeyReusePeriodSeconds(value); return *this;} /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline const Aws::String& GetKmsMasterKeyId() const{ return m_kmsMasterKeyId; } /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; } /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline void SetKmsMasterKeyId(const Aws::String& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = value; } /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline void SetKmsMasterKeyId(Aws::String&& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = std::move(value); } /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline void SetKmsMasterKeyId(const char* value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId.assign(value); } /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline AwsSqsQueueDetails& WithKmsMasterKeyId(const Aws::String& value) { SetKmsMasterKeyId(value); return *this;} /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline AwsSqsQueueDetails& WithKmsMasterKeyId(Aws::String&& value) { SetKmsMasterKeyId(std::move(value)); return *this;} /** *

The ID of an Amazon Web Services managed key for Amazon SQS or a custom KMS * key.

*/ inline AwsSqsQueueDetails& WithKmsMasterKeyId(const char* value) { SetKmsMasterKeyId(value); return *this;} /** *

The name of the new queue.

*/ inline const Aws::String& GetQueueName() const{ return m_queueName; } /** *

The name of the new queue.

*/ inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; } /** *

The name of the new queue.

*/ inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; } /** *

The name of the new queue.

*/ inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); } /** *

The name of the new queue.

*/ inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); } /** *

The name of the new queue.

*/ inline AwsSqsQueueDetails& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;} /** *

The name of the new queue.

*/ inline AwsSqsQueueDetails& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;} /** *

The name of the new queue.

*/ inline AwsSqsQueueDetails& WithQueueName(const char* value) { SetQueueName(value); return *this;} /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline const Aws::String& GetDeadLetterTargetArn() const{ return m_deadLetterTargetArn; } /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline bool DeadLetterTargetArnHasBeenSet() const { return m_deadLetterTargetArnHasBeenSet; } /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline void SetDeadLetterTargetArn(const Aws::String& value) { m_deadLetterTargetArnHasBeenSet = true; m_deadLetterTargetArn = value; } /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline void SetDeadLetterTargetArn(Aws::String&& value) { m_deadLetterTargetArnHasBeenSet = true; m_deadLetterTargetArn = std::move(value); } /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline void SetDeadLetterTargetArn(const char* value) { m_deadLetterTargetArnHasBeenSet = true; m_deadLetterTargetArn.assign(value); } /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline AwsSqsQueueDetails& WithDeadLetterTargetArn(const Aws::String& value) { SetDeadLetterTargetArn(value); return *this;} /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline AwsSqsQueueDetails& WithDeadLetterTargetArn(Aws::String&& value) { SetDeadLetterTargetArn(std::move(value)); return *this;} /** *

The ARN of the dead-letter queue to which Amazon SQS moves messages after the * value of maxReceiveCount is exceeded.

*/ inline AwsSqsQueueDetails& WithDeadLetterTargetArn(const char* value) { SetDeadLetterTargetArn(value); return *this;} private: int m_kmsDataKeyReusePeriodSeconds; bool m_kmsDataKeyReusePeriodSecondsHasBeenSet = false; Aws::String m_kmsMasterKeyId; bool m_kmsMasterKeyIdHasBeenSet = false; Aws::String m_queueName; bool m_queueNameHasBeenSet = false; Aws::String m_deadLetterTargetArn; bool m_deadLetterTargetArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws