242 lines
7.9 KiB
C++
242 lines
7.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
|
|
#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/accessanalyzer/model/Criterion.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace AccessAnalyzer
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Creates an archive rule.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRuleRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ACCESSANALYZER_API CreateArchiveRuleRequest : public AccessAnalyzerRequest
|
|
{
|
|
public:
|
|
CreateArchiveRuleRequest();
|
|
|
|
// 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 "CreateArchiveRule"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the created analyzer.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The criteria for the rule.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the rule to create.</p>
|
|
*/
|
|
inline CreateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_analyzerName;
|
|
bool m_analyzerNameHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Criterion> m_filter;
|
|
bool m_filterHasBeenSet;
|
|
|
|
Aws::String m_ruleName;
|
|
bool m_ruleNameHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AccessAnalyzer
|
|
} // namespace Aws
|