/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A list of objects containing RuleArn
, ErrorCode
,
* and ErrorMessage
. This parameter tells you which automation rules
* the request didn't process and why. See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline const Aws::String& GetRuleArn() const{ return m_ruleArn; } /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; } /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); } /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline UnprocessedAutomationRule& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline UnprocessedAutomationRule& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the unprocessed automation rule.
*/ inline UnprocessedAutomationRule& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} /** *The error code associated with the unprocessed automation rule.
*/ inline int GetErrorCode() const{ return m_errorCode; } /** *The error code associated with the unprocessed automation rule.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code associated with the unprocessed automation rule.
*/ inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code associated with the unprocessed automation rule.
*/ inline UnprocessedAutomationRule& WithErrorCode(int value) { SetErrorCode(value); return *this;} /** *An error message describing why a request didn't process a specific rule. *
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *An error message describing why a request didn't process a specific rule. *
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *An error message describing why a request didn't process a specific rule. *
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *An error message describing why a request didn't process a specific rule. *
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *An error message describing why a request didn't process a specific rule. *
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *An error message describing why a request didn't process a specific rule. *
*/ inline UnprocessedAutomationRule& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *An error message describing why a request didn't process a specific rule. *
*/ inline UnprocessedAutomationRule& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *An error message describing why a request didn't process a specific rule. *
*/ inline UnprocessedAutomationRule& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_ruleArn; bool m_ruleArnHasBeenSet = false; int m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws