AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename HostT = Aws::String>
47 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
48 template<typename HostT = Aws::String>
49 ImportHypervisorConfigurationRequest& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
51
53
56 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
57 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
58 template<typename KmsKeyArnT = Aws::String>
59 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
60 template<typename KmsKeyArnT = Aws::String>
61 ImportHypervisorConfigurationRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 ImportHypervisorConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetPassword() const { return m_password; }
81 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
82 template<typename PasswordT = Aws::String>
83 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
84 template<typename PasswordT = Aws::String>
85 ImportHypervisorConfigurationRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
87
89
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Vector<Tag>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Vector<Tag>>
97 ImportHypervisorConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsT = Tag>
99 ImportHypervisorConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
101
103
106 inline const Aws::String& GetUsername() const { return m_username; }
107 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
108 template<typename UsernameT = Aws::String>
109 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
110 template<typename UsernameT = Aws::String>
111 ImportHypervisorConfigurationRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
113 private:
114
115 Aws::String m_host;
116 bool m_hostHasBeenSet = false;
117
118 Aws::String m_kmsKeyArn;
119 bool m_kmsKeyArnHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_password;
125 bool m_passwordHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129
130 Aws::String m_username;
131 bool m_usernameHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace BackupGateway
136} // namespace Aws
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportHypervisorConfigurationRequest & WithPassword(PasswordT &&value)
AWS_BACKUPGATEWAY_API ImportHypervisorConfigurationRequest()=default
ImportHypervisorConfigurationRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
ImportHypervisorConfigurationRequest & WithUsername(UsernameT &&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