AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
46 inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
47 inline CopyAction& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
48 inline CopyAction& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
50
52
57 inline const Aws::String& GetDestinationBackupVaultArn() const{ return m_destinationBackupVaultArn; }
58 inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
59 inline void SetDestinationBackupVaultArn(const Aws::String& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = value; }
60 inline void SetDestinationBackupVaultArn(Aws::String&& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::move(value); }
61 inline void SetDestinationBackupVaultArn(const char* value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn.assign(value); }
63 inline CopyAction& WithDestinationBackupVaultArn(Aws::String&& value) { SetDestinationBackupVaultArn(std::move(value)); return *this;}
64 inline CopyAction& WithDestinationBackupVaultArn(const char* value) { SetDestinationBackupVaultArn(value); return *this;}
66 private:
67
68 Lifecycle m_lifecycle;
69 bool m_lifecycleHasBeenSet = false;
70
71 Aws::String m_destinationBackupVaultArn;
72 bool m_destinationBackupVaultArnHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Backup
77} // namespace Aws
void SetLifecycle(const Lifecycle &value)
Definition CopyAction.h:45
AWS_BACKUP_API CopyAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationBackupVaultArn(const Aws::String &value)
Definition CopyAction.h:59
AWS_BACKUP_API CopyAction(Aws::Utils::Json::JsonView jsonValue)
CopyAction & WithDestinationBackupVaultArn(Aws::String &&value)
Definition CopyAction.h:63
void SetDestinationBackupVaultArn(const char *value)
Definition CopyAction.h:61
CopyAction & WithDestinationBackupVaultArn(const char *value)
Definition CopyAction.h:64
bool DestinationBackupVaultArnHasBeenSet() const
Definition CopyAction.h:58
void SetDestinationBackupVaultArn(Aws::String &&value)
Definition CopyAction.h:60
const Aws::String & GetDestinationBackupVaultArn() const
Definition CopyAction.h:57
CopyAction & WithLifecycle(const Lifecycle &value)
Definition CopyAction.h:47
const Lifecycle & GetLifecycle() const
Definition CopyAction.h:43
CopyAction & WithDestinationBackupVaultArn(const Aws::String &value)
Definition CopyAction.h:62
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
CopyAction & WithLifecycle(Lifecycle &&value)
Definition CopyAction.h:48
void SetLifecycle(Lifecycle &&value)
Definition CopyAction.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue