AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBackupPolicyRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticfilesystem/model/BackupPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EFS
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutBackupPolicy"; }
32
33 AWS_EFS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
41 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
42 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
43 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
44 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
45 inline PutBackupPolicyRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
46 inline PutBackupPolicyRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
47 inline PutBackupPolicyRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
49
51
54 inline const BackupPolicy& GetBackupPolicy() const{ return m_backupPolicy; }
55 inline bool BackupPolicyHasBeenSet() const { return m_backupPolicyHasBeenSet; }
56 inline void SetBackupPolicy(const BackupPolicy& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = value; }
57 inline void SetBackupPolicy(BackupPolicy&& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = std::move(value); }
58 inline PutBackupPolicyRequest& WithBackupPolicy(const BackupPolicy& value) { SetBackupPolicy(value); return *this;}
59 inline PutBackupPolicyRequest& WithBackupPolicy(BackupPolicy&& value) { SetBackupPolicy(std::move(value)); return *this;}
61 private:
62
63 Aws::String m_fileSystemId;
64 bool m_fileSystemIdHasBeenSet = false;
65
66 BackupPolicy m_backupPolicy;
67 bool m_backupPolicyHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace EFS
72} // namespace Aws
void SetFileSystemId(const Aws::String &value)
PutBackupPolicyRequest & WithFileSystemId(const char *value)
void SetBackupPolicy(const BackupPolicy &value)
PutBackupPolicyRequest & WithBackupPolicy(const BackupPolicy &value)
PutBackupPolicyRequest & WithBackupPolicy(BackupPolicy &&value)
virtual const char * GetServiceRequestName() const override
AWS_EFS_API Aws::String SerializePayload() const override
PutBackupPolicyRequest & WithFileSystemId(const Aws::String &value)
PutBackupPolicyRequest & WithFileSystemId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String