This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-backup/include/aws/backup/model/BackupPlanInput.h

146 lines
5.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/backup/Backup_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/backup/model/BackupRuleInput.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Backup
{
namespace Model
{
/**
* <p>Contains an optional backup plan display name and an array of
* <code>BackupRule</code> objects, each of which specifies a backup rule. Each
* rule in a backup plan is a separate scheduled task and can back up a different
* selection of AWS resources. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupPlanInput">AWS
* API Reference</a></p>
*/
class AWS_BACKUP_API BackupPlanInput
{
public:
BackupPlanInput();
BackupPlanInput(Aws::Utils::Json::JsonView jsonValue);
BackupPlanInput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The optional display name of a backup plan.</p>
*/
inline const Aws::String& GetBackupPlanName() const{ return m_backupPlanName; }
/**
* <p>The optional display name of a backup plan.</p>
*/
inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
/**
* <p>The optional display name of a backup plan.</p>
*/
inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; }
/**
* <p>The optional display name of a backup plan.</p>
*/
inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); }
/**
* <p>The optional display name of a backup plan.</p>
*/
inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); }
/**
* <p>The optional display name of a backup plan.</p>
*/
inline BackupPlanInput& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
/**
* <p>The optional display name of a backup plan.</p>
*/
inline BackupPlanInput& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
/**
* <p>The optional display name of a backup plan.</p>
*/
inline BackupPlanInput& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline const Aws::Vector<BackupRuleInput>& GetRules() const{ return m_rules; }
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline void SetRules(const Aws::Vector<BackupRuleInput>& value) { m_rulesHasBeenSet = true; m_rules = value; }
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline void SetRules(Aws::Vector<BackupRuleInput>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline BackupPlanInput& WithRules(const Aws::Vector<BackupRuleInput>& value) { SetRules(value); return *this;}
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline BackupPlanInput& WithRules(Aws::Vector<BackupRuleInput>&& value) { SetRules(std::move(value)); return *this;}
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline BackupPlanInput& AddRules(const BackupRuleInput& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
/**
* <p>An array of <code>BackupRule</code> objects, each of which specifies a
* scheduled task that is used to back up a selection of resources.</p>
*/
inline BackupPlanInput& AddRules(BackupRuleInput&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
private:
Aws::String m_backupPlanName;
bool m_backupPlanNameHasBeenSet;
Aws::Vector<BackupRuleInput> m_rules;
bool m_rulesHasBeenSet;
};
} // namespace Model
} // namespace Backup
} // namespace Aws