/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 a summary of information about an access preview.

See * Also:

AWS * API Reference

*/ class AccessPreviewSummary { public: AWS_ACCESSANALYZER_API AccessPreviewSummary(); AWS_ACCESSANALYZER_API AccessPreviewSummary(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API AccessPreviewSummary& 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 AccessPreviewSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID for the access preview.

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

The unique ID for the access preview.

*/ inline AccessPreviewSummary& 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 AccessPreviewSummary& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;} /** *

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

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

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

*/ inline AccessPreviewSummary& WithAnalyzerArn(const char* value) { SetAnalyzerArn(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 AccessPreviewSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time at which the access preview was created.

*/ inline AccessPreviewSummary& 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 and previews the * 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 and previews the * 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 and previews the * 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 and previews the * 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 and previews the * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

*/ inline AccessPreviewSummary& 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 and previews the * findings for external access to the resource.

  • * Failed - The access preview creation has failed.

*/ inline AccessPreviewSummary& WithStatus(AccessPreviewStatus&& value) { SetStatus(std::move(value)); return *this;} inline const AccessPreviewStatusReason& GetStatusReason() const{ return m_statusReason; } inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } inline void SetStatusReason(const AccessPreviewStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } inline void SetStatusReason(AccessPreviewStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } inline AccessPreviewSummary& WithStatusReason(const AccessPreviewStatusReason& value) { SetStatusReason(value); return *this;} inline AccessPreviewSummary& 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::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