AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceResult.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/route53-recovery-readiness/model/Readiness.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53RecoveryReadiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ROUTE53RECOVERYREADINESS_API ResourceResult();
38 AWS_ROUTE53RECOVERYREADINESS_API ResourceResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYREADINESS_API ResourceResult& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetComponentId() const{ return m_componentId; }
48 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
49 inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; }
50 inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); }
51 inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); }
52 inline ResourceResult& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;}
53 inline ResourceResult& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;}
54 inline ResourceResult& WithComponentId(const char* value) { SetComponentId(value); return *this;}
56
58
62 inline const Aws::Utils::DateTime& GetLastCheckedTimestamp() const{ return m_lastCheckedTimestamp; }
63 inline bool LastCheckedTimestampHasBeenSet() const { return m_lastCheckedTimestampHasBeenSet; }
64 inline void SetLastCheckedTimestamp(const Aws::Utils::DateTime& value) { m_lastCheckedTimestampHasBeenSet = true; m_lastCheckedTimestamp = value; }
65 inline void SetLastCheckedTimestamp(Aws::Utils::DateTime&& value) { m_lastCheckedTimestampHasBeenSet = true; m_lastCheckedTimestamp = std::move(value); }
67 inline ResourceResult& WithLastCheckedTimestamp(Aws::Utils::DateTime&& value) { SetLastCheckedTimestamp(std::move(value)); return *this;}
69
71
74 inline const Readiness& GetReadiness() const{ return m_readiness; }
75 inline bool ReadinessHasBeenSet() const { return m_readinessHasBeenSet; }
76 inline void SetReadiness(const Readiness& value) { m_readinessHasBeenSet = true; m_readiness = value; }
77 inline void SetReadiness(Readiness&& value) { m_readinessHasBeenSet = true; m_readiness = std::move(value); }
78 inline ResourceResult& WithReadiness(const Readiness& value) { SetReadiness(value); return *this;}
79 inline ResourceResult& WithReadiness(Readiness&& value) { SetReadiness(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
87 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
88 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
89 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
90 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
91 inline ResourceResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
92 inline ResourceResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
93 inline ResourceResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
95 private:
96
97 Aws::String m_componentId;
98 bool m_componentIdHasBeenSet = false;
99
100 Aws::Utils::DateTime m_lastCheckedTimestamp;
101 bool m_lastCheckedTimestampHasBeenSet = false;
102
103 Readiness m_readiness;
104 bool m_readinessHasBeenSet = false;
105
106 Aws::String m_resourceArn;
107 bool m_resourceArnHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Route53RecoveryReadiness
112} // namespace Aws
AWS_ROUTE53RECOVERYREADINESS_API ResourceResult(Aws::Utils::Json::JsonView jsonValue)
ResourceResult & WithResourceArn(const char *value)
ResourceResult & WithComponentId(const char *value)
ResourceResult & WithComponentId(Aws::String &&value)
ResourceResult & WithResourceArn(const Aws::String &value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceResult()
ResourceResult & WithComponentId(const Aws::String &value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceResult & WithReadiness(const Readiness &value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceResult & WithLastCheckedTimestamp(Aws::Utils::DateTime &&value)
ResourceResult & WithLastCheckedTimestamp(const Aws::Utils::DateTime &value)
void SetLastCheckedTimestamp(Aws::Utils::DateTime &&value)
ResourceResult & WithReadiness(Readiness &&value)
ResourceResult & WithResourceArn(Aws::String &&value)
const Aws::Utils::DateTime & GetLastCheckedTimestamp() const
void SetLastCheckedTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue