/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace AccessAnalyzer { namespace Model { /** *

Updates the specified archive rule.

See Also:

AWS * API Reference

*/ class UpdateArchiveRuleRequest : public AccessAnalyzerRequest { public: AWS_ACCESSANALYZER_API UpdateArchiveRuleRequest(); // 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 "UpdateArchiveRule"; } AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override; /** *

The name of the analyzer to update the archive rules for.

*/ inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; } /** *

The name of the analyzer to update the archive rules for.

*/ inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; } /** *

The name of the analyzer to update the archive rules for.

*/ inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; } /** *

The name of the analyzer to update the archive rules for.

*/ inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); } /** *

The name of the analyzer to update the archive rules for.

*/ inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); } /** *

The name of the analyzer to update the archive rules for.

*/ inline UpdateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;} /** *

The name of the analyzer to update the archive rules for.

*/ inline UpdateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;} /** *

The name of the analyzer to update the archive rules for.

*/ inline UpdateArchiveRuleRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;} /** *

The name of the rule to update.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the rule to update.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the rule to update.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the rule to update.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the rule to update.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the rule to update.

*/ inline UpdateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the rule to update.

*/ inline UpdateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the rule to update.

*/ inline UpdateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline const Aws::Map& GetFilter() const{ return m_filter; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline void SetFilter(const Aws::Map& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline void SetFilter(Aws::Map&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& WithFilter(const Aws::Map& value) { SetFilter(value); return *this;} /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& WithFilter(Aws::Map&& value) { SetFilter(std::move(value)); return *this;} /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *

A filter to match for the rules to update. Only rules that match the filter * are updated.

*/ inline UpdateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *

A client token.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A client token.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A client token.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A client token.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A client token.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A client token.

*/ inline UpdateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A client token.

*/ inline UpdateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A client token.

*/ inline UpdateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_analyzerName; bool m_analyzerNameHasBeenSet = false; Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::Map m_filter; bool m_filterHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws