AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ApplyPendingMaintenanceActionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/docdb/DocDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DocDB {
15namespace Model {
16
24 public:
25 AWS_DOCDB_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_DOCDB_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
44 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
45 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
46 template <typename ResourceIdentifierT = Aws::String>
47 void SetResourceIdentifier(ResourceIdentifierT&& value) {
48 m_resourceIdentifierHasBeenSet = true;
49 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
50 }
51 template <typename ResourceIdentifierT = Aws::String>
53 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetApplyAction() const { return m_applyAction; }
64 inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; }
65 template <typename ApplyActionT = Aws::String>
66 void SetApplyAction(ApplyActionT&& value) {
67 m_applyActionHasBeenSet = true;
68 m_applyAction = std::forward<ApplyActionT>(value);
69 }
70 template <typename ApplyActionT = Aws::String>
72 SetApplyAction(std::forward<ApplyActionT>(value));
73 return *this;
74 }
76
78
87 inline const Aws::String& GetOptInType() const { return m_optInType; }
88 inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
89 template <typename OptInTypeT = Aws::String>
90 void SetOptInType(OptInTypeT&& value) {
91 m_optInTypeHasBeenSet = true;
92 m_optInType = std::forward<OptInTypeT>(value);
93 }
94 template <typename OptInTypeT = Aws::String>
96 SetOptInType(std::forward<OptInTypeT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_resourceIdentifier;
102
103 Aws::String m_applyAction;
104
105 Aws::String m_optInType;
106 bool m_resourceIdentifierHasBeenSet = false;
107 bool m_applyActionHasBeenSet = false;
108 bool m_optInTypeHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DocDB
113} // namespace Aws
ApplyPendingMaintenanceActionRequest & WithOptInType(OptInTypeT &&value)
ApplyPendingMaintenanceActionRequest & WithApplyAction(ApplyActionT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String