AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CopyBackupToRegionRequest.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2Request.h>
8#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
9#include <aws/cloudhsmv2/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudHSMV2 {
17namespace Model {
18
22 public:
23 AWS_CLOUDHSMV2_API CopyBackupToRegionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CopyBackupToRegion"; }
30
31 AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
40 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
41 template <typename DestinationRegionT = Aws::String>
42 void SetDestinationRegion(DestinationRegionT&& value) {
43 m_destinationRegionHasBeenSet = true;
44 m_destinationRegion = std::forward<DestinationRegionT>(value);
45 }
46 template <typename DestinationRegionT = Aws::String>
47 CopyBackupToRegionRequest& WithDestinationRegion(DestinationRegionT&& value) {
48 SetDestinationRegion(std::forward<DestinationRegionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBackupId() const { return m_backupId; }
58 inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
59 template <typename BackupIdT = Aws::String>
60 void SetBackupId(BackupIdT&& value) {
61 m_backupIdHasBeenSet = true;
62 m_backupId = std::forward<BackupIdT>(value);
63 }
64 template <typename BackupIdT = Aws::String>
66 SetBackupId(std::forward<BackupIdT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
79 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
80 template <typename TagListT = Aws::Vector<Tag>>
81 void SetTagList(TagListT&& value) {
82 m_tagListHasBeenSet = true;
83 m_tagList = std::forward<TagListT>(value);
84 }
85 template <typename TagListT = Aws::Vector<Tag>>
87 SetTagList(std::forward<TagListT>(value));
88 return *this;
89 }
90 template <typename TagListT = Tag>
92 m_tagListHasBeenSet = true;
93 m_tagList.emplace_back(std::forward<TagListT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_destinationRegion;
99
100 Aws::String m_backupId;
101
102 Aws::Vector<Tag> m_tagList;
103 bool m_destinationRegionHasBeenSet = false;
104 bool m_backupIdHasBeenSet = false;
105 bool m_tagListHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudHSMV2
110} // namespace Aws
CopyBackupToRegionRequest & AddTagList(TagListT &&value)
AWS_CLOUDHSMV2_API CopyBackupToRegionRequest()=default
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
CopyBackupToRegionRequest & WithBackupId(BackupIdT &&value)
virtual const char * GetServiceRequestName() const override
CopyBackupToRegionRequest & WithTagList(TagListT &&value)
CopyBackupToRegionRequest & WithDestinationRegion(DestinationRegionT &&value)
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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