AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
48 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
49 inline StartDomainMaintenanceRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
50 inline StartDomainMaintenanceRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
51 inline StartDomainMaintenanceRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
53
55
58 inline const MaintenanceType& GetAction() const{ return m_action; }
59 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 inline void SetAction(const MaintenanceType& value) { m_actionHasBeenSet = true; m_action = value; }
61 inline void SetAction(MaintenanceType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 inline StartDomainMaintenanceRequest& WithAction(const MaintenanceType& value) { SetAction(value); return *this;}
63 inline StartDomainMaintenanceRequest& WithAction(MaintenanceType&& value) { SetAction(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
71 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
72 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
73 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
74 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
75 inline StartDomainMaintenanceRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
76 inline StartDomainMaintenanceRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
77 inline StartDomainMaintenanceRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
79 private:
80
81 Aws::String m_domainName;
82 bool m_domainNameHasBeenSet = false;
83
84 MaintenanceType m_action;
85 bool m_actionHasBeenSet = false;
86
87 Aws::String m_nodeId;
88 bool m_nodeIdHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace OpenSearchService
93} // namespace Aws
StartDomainMaintenanceRequest & WithDomainName(const Aws::String &value)
StartDomainMaintenanceRequest & WithAction(MaintenanceType &&value)
StartDomainMaintenanceRequest & WithDomainName(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
StartDomainMaintenanceRequest & WithDomainName(const char *value)
StartDomainMaintenanceRequest & WithAction(const MaintenanceType &value)
StartDomainMaintenanceRequest & WithNodeId(const Aws::String &value)
StartDomainMaintenanceRequest & WithNodeId(const char *value)
StartDomainMaintenanceRequest & WithNodeId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String