AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleUpdateFailure.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VPCLattice
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_VPCLATTICE_API RuleUpdateFailure() = default;
35 AWS_VPCLATTICE_API RuleUpdateFailure(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
45 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
46 template<typename FailureCodeT = Aws::String>
47 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
48 template<typename FailureCodeT = Aws::String>
49 RuleUpdateFailure& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
51
53
56 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
57 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
58 template<typename FailureMessageT = Aws::String>
59 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
60 template<typename FailureMessageT = Aws::String>
61 RuleUpdateFailure& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
69 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
70 template<typename RuleIdentifierT = Aws::String>
71 void SetRuleIdentifier(RuleIdentifierT&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::forward<RuleIdentifierT>(value); }
72 template<typename RuleIdentifierT = Aws::String>
73 RuleUpdateFailure& WithRuleIdentifier(RuleIdentifierT&& value) { SetRuleIdentifier(std::forward<RuleIdentifierT>(value)); return *this;}
75 private:
76
77 Aws::String m_failureCode;
78 bool m_failureCodeHasBeenSet = false;
79
80 Aws::String m_failureMessage;
81 bool m_failureMessageHasBeenSet = false;
82
83 Aws::String m_ruleIdentifier;
84 bool m_ruleIdentifierHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace VPCLattice
89} // namespace Aws
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuleIdentifier(RuleIdentifierT &&value)
const Aws::String & GetFailureCode() const
AWS_VPCLATTICE_API RuleUpdateFailure()=default
AWS_VPCLATTICE_API RuleUpdateFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleUpdateFailure & WithFailureCode(FailureCodeT &&value)
void SetFailureMessage(FailureMessageT &&value)
AWS_VPCLATTICE_API RuleUpdateFailure(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFailureMessage() const
RuleUpdateFailure & WithFailureMessage(FailureMessageT &&value)
const Aws::String & GetRuleIdentifier() const
RuleUpdateFailure & WithRuleIdentifier(RuleIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue