AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateHypervisorRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace BackupGateway
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_BACKUPGATEWAY_API UpdateHypervisorRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateHypervisor"; }
31
32 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetHost() const{ return m_host; }
43 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
44 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
45 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
46 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
47 inline UpdateHypervisorRequest& WithHost(const Aws::String& value) { SetHost(value); return *this;}
48 inline UpdateHypervisorRequest& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
49 inline UpdateHypervisorRequest& WithHost(const char* value) { SetHost(value); return *this;}
51
53
56 inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; }
57 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
58 inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; }
59 inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); }
60 inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); }
61 inline UpdateHypervisorRequest& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;}
62 inline UpdateHypervisorRequest& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;}
63 inline UpdateHypervisorRequest& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;}
65
67
71 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
72 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
73 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
74 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
75 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
76 inline UpdateHypervisorRequest& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
77 inline UpdateHypervisorRequest& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
78 inline UpdateHypervisorRequest& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
80
82
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline UpdateHypervisorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline UpdateHypervisorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline UpdateHypervisorRequest& WithName(const char* value) { SetName(value); return *this;}
94
96
99 inline const Aws::String& GetPassword() const{ return m_password; }
100 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
101 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
102 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
103 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
104 inline UpdateHypervisorRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
105 inline UpdateHypervisorRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
106 inline UpdateHypervisorRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
108
110
113 inline const Aws::String& GetUsername() const{ return m_username; }
114 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
115 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
116 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
117 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
118 inline UpdateHypervisorRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
119 inline UpdateHypervisorRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
120 inline UpdateHypervisorRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
122 private:
123
124 Aws::String m_host;
125 bool m_hostHasBeenSet = false;
126
127 Aws::String m_hypervisorArn;
128 bool m_hypervisorArnHasBeenSet = false;
129
130 Aws::String m_logGroupArn;
131 bool m_logGroupArnHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_password;
137 bool m_passwordHasBeenSet = false;
138
139 Aws::String m_username;
140 bool m_usernameHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace BackupGateway
145} // namespace Aws
UpdateHypervisorRequest & WithHost(const Aws::String &value)
UpdateHypervisorRequest & WithUsername(const Aws::String &value)
UpdateHypervisorRequest & WithName(Aws::String &&value)
UpdateHypervisorRequest & WithHost(Aws::String &&value)
UpdateHypervisorRequest & WithLogGroupArn(Aws::String &&value)
UpdateHypervisorRequest & WithHypervisorArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateHypervisorRequest & WithHypervisorArn(const Aws::String &value)
UpdateHypervisorRequest & WithName(const Aws::String &value)
UpdateHypervisorRequest & WithLogGroupArn(const char *value)
UpdateHypervisorRequest & WithName(const char *value)
UpdateHypervisorRequest & WithHypervisorArn(const char *value)
UpdateHypervisorRequest & WithPassword(const Aws::String &value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
UpdateHypervisorRequest & WithPassword(Aws::String &&value)
UpdateHypervisorRequest & WithUsername(const char *value)
UpdateHypervisorRequest & WithPassword(const char *value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateHypervisorRequest & WithUsername(Aws::String &&value)
UpdateHypervisorRequest & WithHost(const char *value)
UpdateHypervisorRequest & WithLogGroupArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String