AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateHypervisorRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGatewayRequest.h>
8#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace BackupGateway {
15namespace Model {
16
20 public:
21 AWS_BACKUPGATEWAY_API UpdateHypervisorRequest() = 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 "UpdateHypervisor"; }
28
29 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
30
31 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetHost() const { return m_host; }
39 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
40 template <typename HostT = Aws::String>
41 void SetHost(HostT&& value) {
42 m_hostHasBeenSet = true;
43 m_host = std::forward<HostT>(value);
44 }
45 template <typename HostT = Aws::String>
47 SetHost(std::forward<HostT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetHypervisorArn() const { return m_hypervisorArn; }
57 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
58 template <typename HypervisorArnT = Aws::String>
59 void SetHypervisorArn(HypervisorArnT&& value) {
60 m_hypervisorArnHasBeenSet = true;
61 m_hypervisorArn = std::forward<HypervisorArnT>(value);
62 }
63 template <typename HypervisorArnT = Aws::String>
64 UpdateHypervisorRequest& WithHypervisorArn(HypervisorArnT&& value) {
65 SetHypervisorArn(std::forward<HypervisorArnT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
76 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
77 template <typename LogGroupArnT = Aws::String>
78 void SetLogGroupArn(LogGroupArnT&& value) {
79 m_logGroupArnHasBeenSet = true;
80 m_logGroupArn = std::forward<LogGroupArnT>(value);
81 }
82 template <typename LogGroupArnT = Aws::String>
84 SetLogGroupArn(std::forward<LogGroupArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetPassword() const { return m_password; }
112 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
113 template <typename PasswordT = Aws::String>
114 void SetPassword(PasswordT&& value) {
115 m_passwordHasBeenSet = true;
116 m_password = std::forward<PasswordT>(value);
117 }
118 template <typename PasswordT = Aws::String>
120 SetPassword(std::forward<PasswordT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetUsername() const { return m_username; }
130 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
131 template <typename UsernameT = Aws::String>
132 void SetUsername(UsernameT&& value) {
133 m_usernameHasBeenSet = true;
134 m_username = std::forward<UsernameT>(value);
135 }
136 template <typename UsernameT = Aws::String>
138 SetUsername(std::forward<UsernameT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_host;
144
145 Aws::String m_hypervisorArn;
146
147 Aws::String m_logGroupArn;
148
149 Aws::String m_name;
150
151 Aws::String m_password;
152
153 Aws::String m_username;
154 bool m_hostHasBeenSet = false;
155 bool m_hypervisorArnHasBeenSet = false;
156 bool m_logGroupArnHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_passwordHasBeenSet = false;
159 bool m_usernameHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace BackupGateway
164} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateHypervisorRequest & WithHypervisorArn(HypervisorArnT &&value)
AWS_BACKUPGATEWAY_API UpdateHypervisorRequest()=default
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
UpdateHypervisorRequest & WithPassword(PasswordT &&value)
UpdateHypervisorRequest & WithHost(HostT &&value)
UpdateHypervisorRequest & WithLogGroupArn(LogGroupArnT &&value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateHypervisorRequest & WithUsername(UsernameT &&value)
UpdateHypervisorRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String