/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a finding for a Network Access Scope.

See Also:

AWS * API Reference

*/ class AccessScopeAnalysisFinding { public: AWS_EC2_API AccessScopeAnalysisFinding(); AWS_EC2_API AccessScopeAnalysisFinding(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AccessScopeAnalysisFinding& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the Network Access Scope analysis.

*/ inline const Aws::String& GetNetworkInsightsAccessScopeAnalysisId() const{ return m_networkInsightsAccessScopeAnalysisId; } /** *

The ID of the Network Access Scope analysis.

*/ inline bool NetworkInsightsAccessScopeAnalysisIdHasBeenSet() const { return m_networkInsightsAccessScopeAnalysisIdHasBeenSet; } /** *

The ID of the Network Access Scope analysis.

*/ inline void SetNetworkInsightsAccessScopeAnalysisId(const Aws::String& value) { m_networkInsightsAccessScopeAnalysisIdHasBeenSet = true; m_networkInsightsAccessScopeAnalysisId = value; } /** *

The ID of the Network Access Scope analysis.

*/ inline void SetNetworkInsightsAccessScopeAnalysisId(Aws::String&& value) { m_networkInsightsAccessScopeAnalysisIdHasBeenSet = true; m_networkInsightsAccessScopeAnalysisId = std::move(value); } /** *

The ID of the Network Access Scope analysis.

*/ inline void SetNetworkInsightsAccessScopeAnalysisId(const char* value) { m_networkInsightsAccessScopeAnalysisIdHasBeenSet = true; m_networkInsightsAccessScopeAnalysisId.assign(value); } /** *

The ID of the Network Access Scope analysis.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeAnalysisId(const Aws::String& value) { SetNetworkInsightsAccessScopeAnalysisId(value); return *this;} /** *

The ID of the Network Access Scope analysis.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeAnalysisId(Aws::String&& value) { SetNetworkInsightsAccessScopeAnalysisId(std::move(value)); return *this;} /** *

The ID of the Network Access Scope analysis.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeAnalysisId(const char* value) { SetNetworkInsightsAccessScopeAnalysisId(value); return *this;} /** *

The ID of the Network Access Scope.

*/ inline const Aws::String& GetNetworkInsightsAccessScopeId() const{ return m_networkInsightsAccessScopeId; } /** *

The ID of the Network Access Scope.

*/ inline bool NetworkInsightsAccessScopeIdHasBeenSet() const { return m_networkInsightsAccessScopeIdHasBeenSet; } /** *

The ID of the Network Access Scope.

*/ inline void SetNetworkInsightsAccessScopeId(const Aws::String& value) { m_networkInsightsAccessScopeIdHasBeenSet = true; m_networkInsightsAccessScopeId = value; } /** *

The ID of the Network Access Scope.

*/ inline void SetNetworkInsightsAccessScopeId(Aws::String&& value) { m_networkInsightsAccessScopeIdHasBeenSet = true; m_networkInsightsAccessScopeId = std::move(value); } /** *

The ID of the Network Access Scope.

*/ inline void SetNetworkInsightsAccessScopeId(const char* value) { m_networkInsightsAccessScopeIdHasBeenSet = true; m_networkInsightsAccessScopeId.assign(value); } /** *

The ID of the Network Access Scope.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeId(const Aws::String& value) { SetNetworkInsightsAccessScopeId(value); return *this;} /** *

The ID of the Network Access Scope.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeId(Aws::String&& value) { SetNetworkInsightsAccessScopeId(std::move(value)); return *this;} /** *

The ID of the Network Access Scope.

*/ inline AccessScopeAnalysisFinding& WithNetworkInsightsAccessScopeId(const char* value) { SetNetworkInsightsAccessScopeId(value); return *this;} /** *

The ID of the finding.

*/ inline const Aws::String& GetFindingId() const{ return m_findingId; } /** *

The ID of the finding.

*/ inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; } /** *

The ID of the finding.

*/ inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; } /** *

The ID of the finding.

*/ inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); } /** *

The ID of the finding.

*/ inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); } /** *

The ID of the finding.

*/ inline AccessScopeAnalysisFinding& WithFindingId(const Aws::String& value) { SetFindingId(value); return *this;} /** *

The ID of the finding.

*/ inline AccessScopeAnalysisFinding& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;} /** *

The ID of the finding.

*/ inline AccessScopeAnalysisFinding& WithFindingId(const char* value) { SetFindingId(value); return *this;} /** *

The finding components.

*/ inline const Aws::Vector& GetFindingComponents() const{ return m_findingComponents; } /** *

The finding components.

*/ inline bool FindingComponentsHasBeenSet() const { return m_findingComponentsHasBeenSet; } /** *

The finding components.

*/ inline void SetFindingComponents(const Aws::Vector& value) { m_findingComponentsHasBeenSet = true; m_findingComponents = value; } /** *

The finding components.

*/ inline void SetFindingComponents(Aws::Vector&& value) { m_findingComponentsHasBeenSet = true; m_findingComponents = std::move(value); } /** *

The finding components.

*/ inline AccessScopeAnalysisFinding& WithFindingComponents(const Aws::Vector& value) { SetFindingComponents(value); return *this;} /** *

The finding components.

*/ inline AccessScopeAnalysisFinding& WithFindingComponents(Aws::Vector&& value) { SetFindingComponents(std::move(value)); return *this;} /** *

The finding components.

*/ inline AccessScopeAnalysisFinding& AddFindingComponents(const PathComponent& value) { m_findingComponentsHasBeenSet = true; m_findingComponents.push_back(value); return *this; } /** *

The finding components.

*/ inline AccessScopeAnalysisFinding& AddFindingComponents(PathComponent&& value) { m_findingComponentsHasBeenSet = true; m_findingComponents.push_back(std::move(value)); return *this; } private: Aws::String m_networkInsightsAccessScopeAnalysisId; bool m_networkInsightsAccessScopeAnalysisIdHasBeenSet = false; Aws::String m_networkInsightsAccessScopeId; bool m_networkInsightsAccessScopeIdHasBeenSet = false; Aws::String m_findingId; bool m_findingIdHasBeenSet = false; Aws::Vector m_findingComponents; bool m_findingComponentsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws