AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartDomainMaintenanceRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/MaintenanceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_OPENSEARCHSERVICE_API StartDomainMaintenanceRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartDomainMaintenance"; }
36
37 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDomainName() const { return m_domainName; }
45 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
46 template<typename DomainNameT = Aws::String>
47 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
48 template<typename DomainNameT = Aws::String>
49 StartDomainMaintenanceRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
51
53
56 inline MaintenanceType GetAction() const { return m_action; }
57 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
58 inline void SetAction(MaintenanceType value) { m_actionHasBeenSet = true; m_action = value; }
59 inline StartDomainMaintenanceRequest& WithAction(MaintenanceType value) { SetAction(value); return *this;}
61
63
66 inline const Aws::String& GetNodeId() const { return m_nodeId; }
67 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
68 template<typename NodeIdT = Aws::String>
69 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
70 template<typename NodeIdT = Aws::String>
71 StartDomainMaintenanceRequest& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
73 private:
74
75 Aws::String m_domainName;
76 bool m_domainNameHasBeenSet = false;
77
79 bool m_actionHasBeenSet = false;
80
81 Aws::String m_nodeId;
82 bool m_nodeIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace OpenSearchService
87} // namespace Aws
AWS_OPENSEARCHSERVICE_API StartDomainMaintenanceRequest()=default
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
StartDomainMaintenanceRequest & WithDomainName(DomainNameT &&value)
StartDomainMaintenanceRequest & WithAction(MaintenanceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String