AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanServer.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/RecoveryPlanServerImpactLevel.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 RecoveryPlanServer() = default;
34
36
39 inline const Aws::String& GetServerArn() const { return m_serverArn; }
40 inline bool ServerArnHasBeenSet() const { return m_serverArnHasBeenSet; }
41 template <typename ServerArnT = Aws::String>
42 void SetServerArn(ServerArnT&& value) {
43 m_serverArnHasBeenSet = true;
44 m_serverArn = std::forward<ServerArnT>(value);
45 }
46 template <typename ServerArnT = Aws::String>
47 RecoveryPlanServer& WithServerArn(ServerArnT&& value) {
48 SetServerArn(std::forward<ServerArnT>(value));
49 return *this;
50 }
52
54
57 inline RecoveryPlanServerImpactLevel GetImpactLevel() const { return m_impactLevel; }
58 inline bool ImpactLevelHasBeenSet() const { return m_impactLevelHasBeenSet; }
60 m_impactLevelHasBeenSet = true;
61 m_impactLevel = value;
62 }
64 SetImpactLevel(value);
65 return *this;
66 }
68 private:
69 Aws::String m_serverArn;
70
72 bool m_serverArnHasBeenSet = false;
73 bool m_impactLevelHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace drs
78} // namespace Aws
RecoveryPlanServer & WithImpactLevel(RecoveryPlanServerImpactLevel value)
AWS_DRS_API RecoveryPlanServer()=default
AWS_DRS_API RecoveryPlanServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServerArn(ServerArnT &&value)
AWS_DRS_API RecoveryPlanServer(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanServerImpactLevel GetImpactLevel() const
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServerArn() const
RecoveryPlanServer & WithServerArn(ServerArnT &&value)
void SetImpactLevel(RecoveryPlanServerImpactLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue