AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
UpdateRecoveryPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/Drs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace drs {
15namespace Model {
16
20 public:
21 AWS_DRS_API UpdateRecoveryPlanRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateRecoveryPlan"; }
28
29 AWS_DRS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
36 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
37 template <typename RecoveryPlanArnT = Aws::String>
38 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
39 m_recoveryPlanArnHasBeenSet = true;
40 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
41 }
42 template <typename RecoveryPlanArnT = Aws::String>
44 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_recoveryPlanArn;
82
83 Aws::String m_name;
84
85 Aws::String m_description;
86 bool m_recoveryPlanArnHasBeenSet = false;
87 bool m_nameHasBeenSet = false;
88 bool m_descriptionHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace drs
93} // namespace Aws
UpdateRecoveryPlanRequest & WithName(NameT &&value)
UpdateRecoveryPlanRequest & WithDescription(DescriptionT &&value)
AWS_DRS_API UpdateRecoveryPlanRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_DRS_API Aws::String SerializePayload() const override
UpdateRecoveryPlanRequest & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String