/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AccessAnalyzer { namespace Model { /** *

Contains information about the analyzer.

See Also:

AWS * API Reference

*/ class AnalyzerSummary { public: AWS_ACCESSANALYZER_API AnalyzerSummary(); AWS_ACCESSANALYZER_API AnalyzerSummary(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API AnalyzerSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the analyzer.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the analyzer.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the analyzer.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the analyzer.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the analyzer.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the analyzer.

*/ inline AnalyzerSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the analyzer.

*/ inline AnalyzerSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the analyzer.

*/ inline AnalyzerSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the analyzer.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the analyzer.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the analyzer.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the analyzer.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the analyzer.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the analyzer.

*/ inline AnalyzerSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the analyzer.

*/ inline AnalyzerSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the analyzer.

*/ inline AnalyzerSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

The type of analyzer, which corresponds to the zone of trust chosen for the * analyzer.

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

A timestamp for the time at which the analyzer was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

A timestamp for the time at which the analyzer was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

A timestamp for the time at which the analyzer was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

A timestamp for the time at which the analyzer was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

A timestamp for the time at which the analyzer was created.

*/ inline AnalyzerSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

A timestamp for the time at which the analyzer was created.

*/ inline AnalyzerSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The resource that was most recently analyzed by the analyzer.

*/ inline const Aws::String& GetLastResourceAnalyzed() const{ return m_lastResourceAnalyzed; } /** *

The resource that was most recently analyzed by the analyzer.

*/ inline bool LastResourceAnalyzedHasBeenSet() const { return m_lastResourceAnalyzedHasBeenSet; } /** *

The resource that was most recently analyzed by the analyzer.

*/ inline void SetLastResourceAnalyzed(const Aws::String& value) { m_lastResourceAnalyzedHasBeenSet = true; m_lastResourceAnalyzed = value; } /** *

The resource that was most recently analyzed by the analyzer.

*/ inline void SetLastResourceAnalyzed(Aws::String&& value) { m_lastResourceAnalyzedHasBeenSet = true; m_lastResourceAnalyzed = std::move(value); } /** *

The resource that was most recently analyzed by the analyzer.

*/ inline void SetLastResourceAnalyzed(const char* value) { m_lastResourceAnalyzedHasBeenSet = true; m_lastResourceAnalyzed.assign(value); } /** *

The resource that was most recently analyzed by the analyzer.

*/ inline AnalyzerSummary& WithLastResourceAnalyzed(const Aws::String& value) { SetLastResourceAnalyzed(value); return *this;} /** *

The resource that was most recently analyzed by the analyzer.

*/ inline AnalyzerSummary& WithLastResourceAnalyzed(Aws::String&& value) { SetLastResourceAnalyzed(std::move(value)); return *this;} /** *

The resource that was most recently analyzed by the analyzer.

*/ inline AnalyzerSummary& WithLastResourceAnalyzed(const char* value) { SetLastResourceAnalyzed(value); return *this;} /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline const Aws::Utils::DateTime& GetLastResourceAnalyzedAt() const{ return m_lastResourceAnalyzedAt; } /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline bool LastResourceAnalyzedAtHasBeenSet() const { return m_lastResourceAnalyzedAtHasBeenSet; } /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline void SetLastResourceAnalyzedAt(const Aws::Utils::DateTime& value) { m_lastResourceAnalyzedAtHasBeenSet = true; m_lastResourceAnalyzedAt = value; } /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline void SetLastResourceAnalyzedAt(Aws::Utils::DateTime&& value) { m_lastResourceAnalyzedAtHasBeenSet = true; m_lastResourceAnalyzedAt = std::move(value); } /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline AnalyzerSummary& WithLastResourceAnalyzedAt(const Aws::Utils::DateTime& value) { SetLastResourceAnalyzedAt(value); return *this;} /** *

The time at which the most recently analyzed resource was analyzed.

*/ inline AnalyzerSummary& WithLastResourceAnalyzedAt(Aws::Utils::DateTime&& value) { SetLastResourceAnalyzedAt(std::move(value)); return *this;} /** *

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

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

The tags added to the analyzer.

*/ inline AnalyzerSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline const AnalyzerStatus& GetStatus() const{ return m_status; } /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline void SetStatus(const AnalyzerStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline void SetStatus(AnalyzerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline AnalyzerSummary& WithStatus(const AnalyzerStatus& value) { SetStatus(value); return *this;} /** *

The status of the analyzer. An Active analyzer successfully * monitors supported resources and generates new findings. The analyzer is * Disabled when a user action, such as removing trusted access for * Identity and Access Management Access Analyzer from Organizations, causes the * analyzer to stop generating new findings. The status is Creating * when the analyzer creation is in progress and Failed when the * analyzer creation has failed.

*/ inline AnalyzerSummary& WithStatus(AnalyzerStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline const StatusReason& GetStatusReason() const{ return m_statusReason; } /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline void SetStatusReason(const StatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline void SetStatusReason(StatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline AnalyzerSummary& WithStatusReason(const StatusReason& value) { SetStatusReason(value); return *this;} /** *

The statusReason provides more details about the current status * of the analyzer. For example, if the creation for the analyzer fails, a * Failed status is returned. For an analyzer with organization as the * type, this failure can be due to an issue with creating the service-linked roles * required in the member accounts of the Amazon Web Services organization.

*/ inline AnalyzerSummary& WithStatusReason(StatusReason&& value) { SetStatusReason(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_lastResourceAnalyzed; bool m_lastResourceAnalyzedHasBeenSet = false; Aws::Utils::DateTime m_lastResourceAnalyzedAt; bool m_lastResourceAnalyzedAtHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; AnalyzerStatus m_status; bool m_statusHasBeenSet = false; StatusReason m_statusReason; bool m_statusReasonHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws