/** * 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 #include #include namespace Aws { namespace AccessAnalyzer { namespace Model { /** *

Creates an analyzer.

See Also:

AWS * API Reference

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The name of the analyzer to create.

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

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline const Type& GetType() const{ return m_type; } /** *

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline CreateAnalyzerRequest& WithType(const Type& value) { SetType(value); return *this;} /** *

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are * supported. You can create only one analyzer per account per Region. You can * create up to 5 analyzers per organization per Region.

*/ inline CreateAnalyzerRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;} /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline const Aws::Vector& GetArchiveRules() const{ return m_archiveRules; } /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; } /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline void SetArchiveRules(const Aws::Vector& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = value; } /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline void SetArchiveRules(Aws::Vector&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = std::move(value); } /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline CreateAnalyzerRequest& WithArchiveRules(const Aws::Vector& value) { SetArchiveRules(value); return *this;} /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline CreateAnalyzerRequest& WithArchiveRules(Aws::Vector&& value) { SetArchiveRules(std::move(value)); return *this;} /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline CreateAnalyzerRequest& AddArchiveRules(const InlineArchiveRule& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(value); return *this; } /** *

Specifies the archive rules to add for the analyzer. Archive rules * automatically archive findings that meet the criteria you define for the * rule.

*/ inline CreateAnalyzerRequest& AddArchiveRules(InlineArchiveRule&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(std::move(value)); return *this; } /** *

The tags to apply to the analyzer.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags to apply to the analyzer.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to apply to the analyzer.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to apply to the analyzer.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to apply to the analyzer.

*/ inline CreateAnalyzerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.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 CreateAnalyzerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A client token.

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

A client token.

*/ inline CreateAnalyzerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_analyzerName; bool m_analyzerNameHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; Aws::Vector m_archiveRules; bool m_archiveRulesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws