119 lines
4.1 KiB
C++
119 lines
4.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticfilesystem/EFS_EXPORTS.h>
|
|
#include <aws/elasticfilesystem/EFSRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/elasticfilesystem/model/BackupPolicy.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace EFS
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_EFS_API PutBackupPolicyRequest : public EFSRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline PutBackupPolicyRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline PutBackupPolicyRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies which EFS file system to update the backup policy for.</p>
|
|
*/
|
|
inline PutBackupPolicyRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline const BackupPolicy& GetBackupPolicy() const{ return m_backupPolicy; }
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline bool BackupPolicyHasBeenSet() const { return m_backupPolicyHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline void SetBackupPolicy(const BackupPolicy& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = value; }
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline void SetBackupPolicy(BackupPolicy&& value) { m_backupPolicyHasBeenSet = true; m_backupPolicy = std::move(value); }
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline PutBackupPolicyRequest& WithBackupPolicy(const BackupPolicy& value) { SetBackupPolicy(value); return *this;}
|
|
|
|
/**
|
|
* <p>The backup policy included in the <code>PutBackupPolicy</code> request.</p>
|
|
*/
|
|
inline PutBackupPolicyRequest& WithBackupPolicy(BackupPolicy&& value) { SetBackupPolicy(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_fileSystemId;
|
|
bool m_fileSystemIdHasBeenSet;
|
|
|
|
BackupPolicy m_backupPolicy;
|
|
bool m_backupPolicyHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EFS
|
|
} // namespace Aws
|