AWS SDK for C++  1.8.95
AWS SDK for C++
CopyBackupToRegionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudHSMV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CopyBackupToRegion"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
42  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
43 
47  inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
48 
52  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
53 
57  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::move(value); }
58 
62  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
63 
67  inline CopyBackupToRegionRequest& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
68 
72  inline CopyBackupToRegionRequest& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(std::move(value)); return *this;}
73 
77  inline CopyBackupToRegionRequest& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
78 
79 
83  inline const Aws::String& GetBackupId() const{ return m_backupId; }
84 
88  inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
89 
93  inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
94 
98  inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
99 
103  inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
104 
108  inline CopyBackupToRegionRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
109 
113  inline CopyBackupToRegionRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
114 
118  inline CopyBackupToRegionRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
119 
120 
127  inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
128 
135  inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
136 
143  inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
144 
151  inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
152 
159  inline CopyBackupToRegionRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
160 
167  inline CopyBackupToRegionRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
168 
175  inline CopyBackupToRegionRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
176 
183  inline CopyBackupToRegionRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
184 
185  private:
186 
187  Aws::String m_destinationRegion;
188  bool m_destinationRegionHasBeenSet;
189 
190  Aws::String m_backupId;
191  bool m_backupIdHasBeenSet;
192 
193  Aws::Vector<Tag> m_tagList;
194  bool m_tagListHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace CloudHSMV2
199 } // namespace Aws
CopyBackupToRegionRequest & WithBackupId(const char *value)
CopyBackupToRegionRequest & AddTagList(Tag &&value)
CopyBackupToRegionRequest & WithDestinationRegion(Aws::String &&value)
#define AWS_CLOUDHSMV2_API
CopyBackupToRegionRequest & WithTagList(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyBackupToRegionRequest & WithDestinationRegion(const Aws::String &value)
CopyBackupToRegionRequest & WithTagList(Aws::Vector< Tag > &&value)
CopyBackupToRegionRequest & AddTagList(const Tag &value)
CopyBackupToRegionRequest & WithBackupId(const Aws::String &value)
CopyBackupToRegionRequest & WithBackupId(Aws::String &&value)
CopyBackupToRegionRequest & WithDestinationRegion(const char *value)