/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EFS { namespace Model { /** */ class PutBackupPolicyRequest : public EFSRequest { public: AWS_EFS_API PutBackupPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutBackupPolicy"; } AWS_EFS_API Aws::String SerializePayload() const override; /** *

Specifies which EFS file system to update the backup policy for.

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

Specifies which EFS file system to update the backup policy for.

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

Specifies which EFS file system to update the backup policy for.

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

Specifies which EFS file system to update the backup policy for.

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

Specifies which EFS file system to update the backup policy for.

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

Specifies which EFS file system to update the backup policy for.

*/ inline PutBackupPolicyRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

Specifies which EFS file system to update the backup policy for.

*/ inline PutBackupPolicyRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

Specifies which EFS file system to update the backup policy for.

*/ inline PutBackupPolicyRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

The backup policy included in the PutBackupPolicy request.

*/ inline const BackupPolicy& GetBackupPolicy() const{ return m_backupPolicy; } /** *

The backup policy included in the PutBackupPolicy request.

*/ inline bool BackupPolicyHasBeenSet() const { return m_backupPolicyHasBeenSet; } /** *

The backup policy included in the PutBackupPolicy request.

*/ inline void SetBackupPolicy(const BackupPolicy& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = value; } /** *

The backup policy included in the PutBackupPolicy request.

*/ inline void SetBackupPolicy(BackupPolicy&& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = std::move(value); } /** *

The backup policy included in the PutBackupPolicy request.

*/ inline PutBackupPolicyRequest& WithBackupPolicy(const BackupPolicy& value) { SetBackupPolicy(value); return *this;} /** *

The backup policy included in the PutBackupPolicy request.

*/ inline PutBackupPolicyRequest& WithBackupPolicy(BackupPolicy&& value) { SetBackupPolicy(std::move(value)); return *this;} private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; BackupPolicy m_backupPolicy; bool m_backupPolicyHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws