AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
CopyAction.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/Lifecycle.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Backup {
21namespace Model {
22
29 public:
30 AWS_BACKUP_API CopyAction() = default;
31 AWS_BACKUP_API CopyAction(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
38 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
39 template <typename LifecycleT = Lifecycle>
40 void SetLifecycle(LifecycleT&& value) {
41 m_lifecycleHasBeenSet = true;
42 m_lifecycle = std::forward<LifecycleT>(value);
43 }
44 template <typename LifecycleT = Lifecycle>
45 CopyAction& WithLifecycle(LifecycleT&& value) {
46 SetLifecycle(std::forward<LifecycleT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetDestinationBackupVaultArn() const { return m_destinationBackupVaultArn; }
58 inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
59 template <typename DestinationBackupVaultArnT = Aws::String>
60 void SetDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) {
61 m_destinationBackupVaultArnHasBeenSet = true;
62 m_destinationBackupVaultArn = std::forward<DestinationBackupVaultArnT>(value);
63 }
64 template <typename DestinationBackupVaultArnT = Aws::String>
65 CopyAction& WithDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) {
66 SetDestinationBackupVaultArn(std::forward<DestinationBackupVaultArnT>(value));
67 return *this;
68 }
70 private:
71 Lifecycle m_lifecycle;
72
73 Aws::String m_destinationBackupVaultArn;
74 bool m_lifecycleHasBeenSet = false;
75 bool m_destinationBackupVaultArnHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Backup
80} // namespace Aws
AWS_BACKUP_API CopyAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationBackupVaultArn(DestinationBackupVaultArnT &&value)
Definition CopyAction.h:60
AWS_BACKUP_API CopyAction(Aws::Utils::Json::JsonView jsonValue)
CopyAction & WithDestinationBackupVaultArn(DestinationBackupVaultArnT &&value)
Definition CopyAction.h:65
CopyAction & WithLifecycle(LifecycleT &&value)
Definition CopyAction.h:45
bool DestinationBackupVaultArnHasBeenSet() const
Definition CopyAction.h:58
AWS_BACKUP_API CopyAction()=default
const Aws::String & GetDestinationBackupVaultArn() const
Definition CopyAction.h:57
const Lifecycle & GetLifecycle() const
Definition CopyAction.h:37
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycle(LifecycleT &&value)
Definition CopyAction.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue