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-accessanalyzer/include/aws/accessanalyzer/model/CreateAnalyzerRequest.h

305 lines
11 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/accessanalyzer/model/Type.h>
#include <aws/accessanalyzer/model/InlineArchiveRule.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace AccessAnalyzer
{
namespace Model
{
/**
* <p>Creates an analyzer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzerRequest">AWS
* API Reference</a></p>
*/
class AWS_ACCESSANALYZER_API CreateAnalyzerRequest : public AccessAnalyzerRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the analyzer to create.</p>
*/
inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
/**
* <p>The name of the analyzer to create.</p>
*/
inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
/**
* <p>The name of the analyzer to create.</p>
*/
inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
/**
* <p>The name of the analyzer to create.</p>
*/
inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
/**
* <p>The name of the analyzer to create.</p>
*/
inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
/**
* <p>The name of the analyzer to create.</p>
*/
inline CreateAnalyzerRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
/**
* <p>The name of the analyzer to create.</p>
*/
inline CreateAnalyzerRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
/**
* <p>The name of the analyzer to create.</p>
*/
inline CreateAnalyzerRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline const Aws::Vector<InlineArchiveRule>& GetArchiveRules() const{ return m_archiveRules; }
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; }
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline void SetArchiveRules(const Aws::Vector<InlineArchiveRule>& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = value; }
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline void SetArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = std::move(value); }
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline CreateAnalyzerRequest& WithArchiveRules(const Aws::Vector<InlineArchiveRule>& value) { SetArchiveRules(value); return *this;}
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline CreateAnalyzerRequest& WithArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { SetArchiveRules(std::move(value)); return *this;}
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline CreateAnalyzerRequest& AddArchiveRules(const InlineArchiveRule& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(value); return *this; }
/**
* <p>Specifies the archive rules to add for the analyzer. Archive rules
* automatically archive findings that meet the criteria you define for the
* rule.</p>
*/
inline CreateAnalyzerRequest& AddArchiveRules(InlineArchiveRule&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(std::move(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 CreateAnalyzerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>A client token.</p>
*/
inline CreateAnalyzerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>A client token.</p>
*/
inline CreateAnalyzerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to apply to the analyzer.</p>
*/
inline CreateAnalyzerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline CreateAnalyzerRequest& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>The type of analyzer to create. Only ACCOUNT analyzers are supported. You can
* create only one analyzer per account per Region.</p>
*/
inline CreateAnalyzerRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_analyzerName;
bool m_analyzerNameHasBeenSet;
Aws::Vector<InlineArchiveRule> m_archiveRules;
bool m_archiveRulesHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace AccessAnalyzer
} // namespace Aws