AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportHypervisorConfigurationRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup-gateway/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BackupGateway
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUPGATEWAY_API ImportHypervisorConfigurationRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportHypervisorConfiguration"; }
33
34 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
35
36 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetHost() const{ return m_host; }
45 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
46 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
47 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
48 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
49 inline ImportHypervisorConfigurationRequest& WithHost(const Aws::String& value) { SetHost(value); return *this;}
50 inline ImportHypervisorConfigurationRequest& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
51 inline ImportHypervisorConfigurationRequest& WithHost(const char* value) { SetHost(value); return *this;}
53
55
58 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
59 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
60 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
61 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
62 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
63 inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
64 inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
65 inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline ImportHypervisorConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline ImportHypervisorConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline ImportHypervisorConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetPassword() const{ return m_password; }
87 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
88 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
89 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
90 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
91 inline ImportHypervisorConfigurationRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
92 inline ImportHypervisorConfigurationRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
93 inline ImportHypervisorConfigurationRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
95
97
100 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 inline ImportHypervisorConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
105 inline ImportHypervisorConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
106 inline ImportHypervisorConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
107 inline ImportHypervisorConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
109
111
114 inline const Aws::String& GetUsername() const{ return m_username; }
115 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
116 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
117 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
118 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
119 inline ImportHypervisorConfigurationRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
120 inline ImportHypervisorConfigurationRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
121 inline ImportHypervisorConfigurationRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
123 private:
124
125 Aws::String m_host;
126 bool m_hostHasBeenSet = false;
127
128 Aws::String m_kmsKeyArn;
129 bool m_kmsKeyArnHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_password;
135 bool m_passwordHasBeenSet = false;
136
137 Aws::Vector<Tag> m_tags;
138 bool m_tagsHasBeenSet = false;
139
140 Aws::String m_username;
141 bool m_usernameHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace BackupGateway
146} // namespace Aws
ImportHypervisorConfigurationRequest & WithKmsKeyArn(Aws::String &&value)
ImportHypervisorConfigurationRequest & WithName(const Aws::String &value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportHypervisorConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
ImportHypervisorConfigurationRequest & WithPassword(Aws::String &&value)
ImportHypervisorConfigurationRequest & WithUsername(const Aws::String &value)
ImportHypervisorConfigurationRequest & WithName(const char *value)
ImportHypervisorConfigurationRequest & WithName(Aws::String &&value)
ImportHypervisorConfigurationRequest & WithPassword(const Aws::String &value)
ImportHypervisorConfigurationRequest & WithKmsKeyArn(const Aws::String &value)
ImportHypervisorConfigurationRequest & WithUsername(const char *value)
ImportHypervisorConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
ImportHypervisorConfigurationRequest & WithHost(const char *value)
ImportHypervisorConfigurationRequest & WithUsername(Aws::String &&value)
ImportHypervisorConfigurationRequest & WithPassword(const char *value)
ImportHypervisorConfigurationRequest & WithHost(const Aws::String &value)
ImportHypervisorConfigurationRequest & WithKmsKeyArn(const char *value)
ImportHypervisorConfigurationRequest & WithHost(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector