AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleResult.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53-recovery-readiness/model/Readiness.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/route53-recovery-readiness/model/Message.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Route53RecoveryReadiness
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ROUTE53RECOVERYREADINESS_API RuleResult();
40 AWS_ROUTE53RECOVERYREADINESS_API RuleResult(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53RECOVERYREADINESS_API RuleResult& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Utils::DateTime& GetLastCheckedTimestamp() const{ return m_lastCheckedTimestamp; }
51 inline bool LastCheckedTimestampHasBeenSet() const { return m_lastCheckedTimestampHasBeenSet; }
52 inline void SetLastCheckedTimestamp(const Aws::Utils::DateTime& value) { m_lastCheckedTimestampHasBeenSet = true; m_lastCheckedTimestamp = value; }
53 inline void SetLastCheckedTimestamp(Aws::Utils::DateTime&& value) { m_lastCheckedTimestampHasBeenSet = true; m_lastCheckedTimestamp = std::move(value); }
55 inline RuleResult& WithLastCheckedTimestamp(Aws::Utils::DateTime&& value) { SetLastCheckedTimestamp(std::move(value)); return *this;}
57
59
62 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
63 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
64 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
65 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
66 inline RuleResult& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
67 inline RuleResult& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
68 inline RuleResult& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
69 inline RuleResult& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
71
73
76 inline const Readiness& GetReadiness() const{ return m_readiness; }
77 inline bool ReadinessHasBeenSet() const { return m_readinessHasBeenSet; }
78 inline void SetReadiness(const Readiness& value) { m_readinessHasBeenSet = true; m_readiness = value; }
79 inline void SetReadiness(Readiness&& value) { m_readinessHasBeenSet = true; m_readiness = std::move(value); }
80 inline RuleResult& WithReadiness(const Readiness& value) { SetReadiness(value); return *this;}
81 inline RuleResult& WithReadiness(Readiness&& value) { SetReadiness(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
89 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
90 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
91 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
92 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
93 inline RuleResult& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
94 inline RuleResult& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
95 inline RuleResult& WithRuleId(const char* value) { SetRuleId(value); return *this;}
97 private:
98
99 Aws::Utils::DateTime m_lastCheckedTimestamp;
100 bool m_lastCheckedTimestampHasBeenSet = false;
101
102 Aws::Vector<Message> m_messages;
103 bool m_messagesHasBeenSet = false;
104
105 Readiness m_readiness;
106 bool m_readinessHasBeenSet = false;
107
108 Aws::String m_ruleId;
109 bool m_ruleIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Route53RecoveryReadiness
114} // namespace Aws
RuleResult & AddMessages(const Message &value)
Definition RuleResult.h:68
RuleResult & WithRuleId(const Aws::String &value)
Definition RuleResult.h:93
const Aws::Vector< Message > & GetMessages() const
Definition RuleResult.h:62
void SetLastCheckedTimestamp(const Aws::Utils::DateTime &value)
Definition RuleResult.h:52
void SetMessages(Aws::Vector< Message > &&value)
Definition RuleResult.h:65
RuleResult & WithMessages(Aws::Vector< Message > &&value)
Definition RuleResult.h:67
RuleResult & WithReadiness(const Readiness &value)
Definition RuleResult.h:80
RuleResult & WithRuleId(const char *value)
Definition RuleResult.h:95
AWS_ROUTE53RECOVERYREADINESS_API RuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleResult & AddMessages(Message &&value)
Definition RuleResult.h:69
AWS_ROUTE53RECOVERYREADINESS_API RuleResult()
RuleResult & WithLastCheckedTimestamp(const Aws::Utils::DateTime &value)
Definition RuleResult.h:54
void SetRuleId(const Aws::String &value)
Definition RuleResult.h:90
void SetLastCheckedTimestamp(Aws::Utils::DateTime &&value)
Definition RuleResult.h:53
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReadiness(const Readiness &value)
Definition RuleResult.h:78
void SetMessages(const Aws::Vector< Message > &value)
Definition RuleResult.h:64
const Aws::Utils::DateTime & GetLastCheckedTimestamp() const
Definition RuleResult.h:50
RuleResult & WithReadiness(Readiness &&value)
Definition RuleResult.h:81
AWS_ROUTE53RECOVERYREADINESS_API RuleResult(Aws::Utils::Json::JsonView jsonValue)
RuleResult & WithLastCheckedTimestamp(Aws::Utils::DateTime &&value)
Definition RuleResult.h:55
RuleResult & WithRuleId(Aws::String &&value)
Definition RuleResult.h:94
RuleResult & WithMessages(const Aws::Vector< Message > &value)
Definition RuleResult.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue