AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/RecoveryPlanStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
29 public:
30 AWS_DRS_API RecoveryPlanSummary() = default;
34
36
39 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
40 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
41 template <typename RecoveryPlanArnT = Aws::String>
42 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
43 m_recoveryPlanArnHasBeenSet = true;
44 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
45 }
46 template <typename RecoveryPlanArnT = Aws::String>
47 RecoveryPlanSummary& WithRecoveryPlanArn(RecoveryPlanArnT&& value) {
48 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 RecoveryPlanSummary& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline RecoveryPlanStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(RecoveryPlanStatus value) {
76 m_statusHasBeenSet = true;
77 m_status = value;
78 }
80 SetStatus(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 template <typename CreatedAtT = Aws::String>
92 void SetCreatedAt(CreatedAtT&& value) {
93 m_createdAtHasBeenSet = true;
94 m_createdAt = std::forward<CreatedAtT>(value);
95 }
96 template <typename CreatedAtT = Aws::String>
97 RecoveryPlanSummary& WithCreatedAt(CreatedAtT&& value) {
98 SetCreatedAt(std::forward<CreatedAtT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
108 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
109 template <typename UpdatedAtT = Aws::String>
110 void SetUpdatedAt(UpdatedAtT&& value) {
111 m_updatedAtHasBeenSet = true;
112 m_updatedAt = std::forward<UpdatedAtT>(value);
113 }
114 template <typename UpdatedAtT = Aws::String>
115 RecoveryPlanSummary& WithUpdatedAt(UpdatedAtT&& value) {
116 SetUpdatedAt(std::forward<UpdatedAtT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_recoveryPlanArn;
122
123 Aws::String m_name;
124
126
127 Aws::String m_createdAt;
128
129 Aws::String m_updatedAt;
130 bool m_recoveryPlanArnHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132 bool m_statusHasBeenSet = false;
133 bool m_createdAtHasBeenSet = false;
134 bool m_updatedAtHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace drs
139} // namespace Aws
RecoveryPlanSummary & WithName(NameT &&value)
const Aws::String & GetUpdatedAt() const
void SetRecoveryPlanArn(RecoveryPlanArnT &&value)
RecoveryPlanSummary & WithCreatedAt(CreatedAtT &&value)
AWS_DRS_API RecoveryPlanSummary(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetRecoveryPlanArn() const
RecoveryPlanSummary & WithStatus(RecoveryPlanStatus value)
const Aws::String & GetName() const
AWS_DRS_API RecoveryPlanSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API RecoveryPlanSummary()=default
const Aws::String & GetCreatedAt() const
void SetStatus(RecoveryPlanStatus value)
RecoveryPlanSummary & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue