AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BACKUP_API CopyAction() = default;
36 AWS_BACKUP_API CopyAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
44 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
45 template<typename LifecycleT = Lifecycle>
46 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
47 template<typename LifecycleT = Lifecycle>
48 CopyAction& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
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) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::forward<DestinationBackupVaultArnT>(value); }
61 template<typename DestinationBackupVaultArnT = Aws::String>
62 CopyAction& WithDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) { SetDestinationBackupVaultArn(std::forward<DestinationBackupVaultArnT>(value)); return *this;}
64 private:
65
66 Lifecycle m_lifecycle;
67 bool m_lifecycleHasBeenSet = false;
68
69 Aws::String m_destinationBackupVaultArn;
70 bool m_destinationBackupVaultArnHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Backup
75} // 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:62
CopyAction & WithLifecycle(LifecycleT &&value)
Definition CopyAction.h:48
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:43
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycle(LifecycleT &&value)
Definition CopyAction.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue