AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApplyPendingMaintenanceActionRequest.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/docdb-elastic/DocDBElasticRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/docdb-elastic/model/OptInType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DocDBElastic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DOCDBELASTIC_API ApplyPendingMaintenanceActionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ApplyPendingMaintenanceAction"; }
32
33 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetApplyAction() const { return m_applyAction; }
45 inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; }
46 template<typename ApplyActionT = Aws::String>
47 void SetApplyAction(ApplyActionT&& value) { m_applyActionHasBeenSet = true; m_applyAction = std::forward<ApplyActionT>(value); }
48 template<typename ApplyActionT = Aws::String>
49 ApplyPendingMaintenanceActionRequest& WithApplyAction(ApplyActionT&& value) { SetApplyAction(std::forward<ApplyActionT>(value)); return *this;}
51
53
58 inline const Aws::String& GetApplyOn() const { return m_applyOn; }
59 inline bool ApplyOnHasBeenSet() const { return m_applyOnHasBeenSet; }
60 template<typename ApplyOnT = Aws::String>
61 void SetApplyOn(ApplyOnT&& value) { m_applyOnHasBeenSet = true; m_applyOn = std::forward<ApplyOnT>(value); }
62 template<typename ApplyOnT = Aws::String>
63 ApplyPendingMaintenanceActionRequest& WithApplyOn(ApplyOnT&& value) { SetApplyOn(std::forward<ApplyOnT>(value)); return *this;}
65
67
71 inline OptInType GetOptInType() const { return m_optInType; }
72 inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
73 inline void SetOptInType(OptInType value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
76
78
82 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
83 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
84 template<typename ResourceArnT = Aws::String>
85 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
86 template<typename ResourceArnT = Aws::String>
87 ApplyPendingMaintenanceActionRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
89 private:
90
91 Aws::String m_applyAction;
92 bool m_applyActionHasBeenSet = false;
93
94 Aws::String m_applyOn;
95 bool m_applyOnHasBeenSet = false;
96
97 OptInType m_optInType{OptInType::NOT_SET};
98 bool m_optInTypeHasBeenSet = false;
99
100 Aws::String m_resourceArn;
101 bool m_resourceArnHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace DocDBElastic
106} // namespace Aws
AWS_DOCDBELASTIC_API ApplyPendingMaintenanceActionRequest()=default
ApplyPendingMaintenanceActionRequest & WithApplyOn(ApplyOnT &&value)
ApplyPendingMaintenanceActionRequest & WithResourceArn(ResourceArnT &&value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
ApplyPendingMaintenanceActionRequest & WithApplyAction(ApplyActionT &&value)
ApplyPendingMaintenanceActionRequest & WithOptInType(OptInType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String