/** * 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 an access preview.

See Also:

AWS * API Reference

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

The unique ID for the access preview.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID for the access preview.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID for the access preview.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID for the access preview.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID for the access preview.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID for the access preview.

*/ inline AccessPreview& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID for the access preview.

*/ inline AccessPreview& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID for the access preview.

*/ inline AccessPreview& WithId(const char* value) { SetId(value); return *this;} /** *

The ARN of the analyzer used to generate the access preview.

*/ inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; } /** *

The ARN of the analyzer used to generate the access preview.

*/ inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; } /** *

The ARN of the analyzer used to generate the access preview.

*/ inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; } /** *

The ARN of the analyzer used to generate the access preview.

*/ inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); } /** *

The ARN of the analyzer used to generate the access preview.

*/ inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); } /** *

The ARN of the analyzer used to generate the access preview.

*/ inline AccessPreview& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;} /** *

The ARN of the analyzer used to generate the access preview.

*/ inline AccessPreview& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;} /** *

The ARN of the analyzer used to generate the access preview.

*/ inline AccessPreview& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;} /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline const Aws::Map& GetConfigurations() const{ return m_configurations; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline void SetConfigurations(const Aws::Map& value) { m_configurationsHasBeenSet = true; m_configurations = value; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline void SetConfigurations(Aws::Map&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& WithConfigurations(const Aws::Map& value) { SetConfigurations(value); return *this;} /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& WithConfigurations(Aws::Map&& value) { SetConfigurations(std::move(value)); return *this;} /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(const Aws::String& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(Aws::String&& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), value); return *this; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(const Aws::String& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(Aws::String&& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(const char* key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; } /** *

A map of resource ARNs for the proposed resource configuration.

*/ inline AccessPreview& AddConfigurations(const char* key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; } /** *

The time at which the access preview was created.

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

The time at which the access preview was created.

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

The time at which the access preview was created.

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

The time at which the access preview was created.

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

The time at which the access preview was created.

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

The time at which the access preview was created.

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

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

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

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

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

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

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

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

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

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

*/ inline AccessPreview& WithStatus(const AccessPreviewStatus& value) { SetStatus(value); return *this;} /** *

The status of the access preview.

  • Creating - * The access preview creation is in progress.

  • * Completed - The access preview is complete. You can preview * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

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

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

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

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

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

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

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

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

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

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

*/ inline AccessPreview& WithStatusReason(const AccessPreviewStatusReason& value) { SetStatusReason(value); return *this;} /** *

Provides more details about the current status of the access preview.

*

For example, if the creation of the access preview fails, a * Failed status is returned. This failure can be due to an internal * issue with the analysis or due to an invalid resource configuration.

*/ inline AccessPreview& WithStatusReason(AccessPreviewStatusReason&& value) { SetStatusReason(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_analyzerArn; bool m_analyzerArnHasBeenSet = false; Aws::Map m_configurations; bool m_configurationsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; AccessPreviewStatus m_status; bool m_statusHasBeenSet = false; AccessPreviewStatusReason m_statusReason; bool m_statusReasonHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws