/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a rule update that failed.See Also:
AWS
* API Reference
The failure code.
*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *The failure code.
*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *The failure code.
*/ inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *The failure code.
*/ inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *The failure code.
*/ inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); } /** *The failure code.
*/ inline RuleUpdateFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *The failure code.
*/ inline RuleUpdateFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *The failure code.
*/ inline RuleUpdateFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *The failure message.
*/ inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; } /** *The failure message.
*/ inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; } /** *The failure message.
*/ inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; } /** *The failure message.
*/ inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); } /** *The failure message.
*/ inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); } /** *The failure message.
*/ inline RuleUpdateFailure& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;} /** *The failure message.
*/ inline RuleUpdateFailure& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;} /** *The failure message.
*/ inline RuleUpdateFailure& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;} /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline const Aws::String& GetRuleIdentifier() const{ return m_ruleIdentifier; } /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; } /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleIdentifier(const Aws::String& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = value; } /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleIdentifier(Aws::String&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::move(value); } /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleIdentifier(const char* value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier.assign(value); } /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline RuleUpdateFailure& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;} /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline RuleUpdateFailure& WithRuleIdentifier(Aws::String&& value) { SetRuleIdentifier(std::move(value)); return *this;} /** *The ID or Amazon Resource Name (ARN) of the rule.
*/ inline RuleUpdateFailure& WithRuleIdentifier(const char* value) { SetRuleIdentifier(value); return *this;} private: Aws::String m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureMessage; bool m_failureMessageHasBeenSet = false; Aws::String m_ruleIdentifier; bool m_ruleIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws