/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An criterion statement in an archive rule. Each archive rule may have
* multiple criteria.See Also:
AWS
* API Reference
The name of the rule.
*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *The name of the rule.
*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *The name of the rule.
*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *The name of the rule.
*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *The name of the rule.
*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *The name of the rule.
*/ inline InlineArchiveRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *The name of the rule.
*/ inline InlineArchiveRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *The name of the rule.
*/ inline InlineArchiveRule& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *The condition and values for a criterion.
*/ inline const Aws::MapThe condition and values for a criterion.
*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *The condition and values for a criterion.
*/ inline void SetFilter(const Aws::MapThe condition and values for a criterion.
*/ inline void SetFilter(Aws::MapThe condition and values for a criterion.
*/ inline InlineArchiveRule& WithFilter(const Aws::MapThe condition and values for a criterion.
*/ inline InlineArchiveRule& WithFilter(Aws::MapThe condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *The condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; } /** *The condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *The condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; } /** *The condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *The condition and values for a criterion.
*/ inline InlineArchiveRule& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::Map