/** * 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 the Network Access Scope content.

See Also:

AWS * API Reference

*/ class NetworkInsightsAccessScopeContent { public: AWS_EC2_API NetworkInsightsAccessScopeContent(); AWS_EC2_API NetworkInsightsAccessScopeContent(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API NetworkInsightsAccessScopeContent& 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.

*/ 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 NetworkInsightsAccessScopeContent& WithNetworkInsightsAccessScopeId(const Aws::String& value) { SetNetworkInsightsAccessScopeId(value); return *this;} /** *

The ID of the Network Access Scope.

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

The ID of the Network Access Scope.

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

The paths to match.

*/ inline const Aws::Vector& GetMatchPaths() const{ return m_matchPaths; } /** *

The paths to match.

*/ inline bool MatchPathsHasBeenSet() const { return m_matchPathsHasBeenSet; } /** *

The paths to match.

*/ inline void SetMatchPaths(const Aws::Vector& value) { m_matchPathsHasBeenSet = true; m_matchPaths = value; } /** *

The paths to match.

*/ inline void SetMatchPaths(Aws::Vector&& value) { m_matchPathsHasBeenSet = true; m_matchPaths = std::move(value); } /** *

The paths to match.

*/ inline NetworkInsightsAccessScopeContent& WithMatchPaths(const Aws::Vector& value) { SetMatchPaths(value); return *this;} /** *

The paths to match.

*/ inline NetworkInsightsAccessScopeContent& WithMatchPaths(Aws::Vector&& value) { SetMatchPaths(std::move(value)); return *this;} /** *

The paths to match.

*/ inline NetworkInsightsAccessScopeContent& AddMatchPaths(const AccessScopePath& value) { m_matchPathsHasBeenSet = true; m_matchPaths.push_back(value); return *this; } /** *

The paths to match.

*/ inline NetworkInsightsAccessScopeContent& AddMatchPaths(AccessScopePath&& value) { m_matchPathsHasBeenSet = true; m_matchPaths.push_back(std::move(value)); return *this; } /** *

The paths to exclude.

*/ inline const Aws::Vector& GetExcludePaths() const{ return m_excludePaths; } /** *

The paths to exclude.

*/ inline bool ExcludePathsHasBeenSet() const { return m_excludePathsHasBeenSet; } /** *

The paths to exclude.

*/ inline void SetExcludePaths(const Aws::Vector& value) { m_excludePathsHasBeenSet = true; m_excludePaths = value; } /** *

The paths to exclude.

*/ inline void SetExcludePaths(Aws::Vector&& value) { m_excludePathsHasBeenSet = true; m_excludePaths = std::move(value); } /** *

The paths to exclude.

*/ inline NetworkInsightsAccessScopeContent& WithExcludePaths(const Aws::Vector& value) { SetExcludePaths(value); return *this;} /** *

The paths to exclude.

*/ inline NetworkInsightsAccessScopeContent& WithExcludePaths(Aws::Vector&& value) { SetExcludePaths(std::move(value)); return *this;} /** *

The paths to exclude.

*/ inline NetworkInsightsAccessScopeContent& AddExcludePaths(const AccessScopePath& value) { m_excludePathsHasBeenSet = true; m_excludePaths.push_back(value); return *this; } /** *

The paths to exclude.

*/ inline NetworkInsightsAccessScopeContent& AddExcludePaths(AccessScopePath&& value) { m_excludePathsHasBeenSet = true; m_excludePaths.push_back(std::move(value)); return *this; } private: Aws::String m_networkInsightsAccessScopeId; bool m_networkInsightsAccessScopeIdHasBeenSet = false; Aws::Vector m_matchPaths; bool m_matchPathsHasBeenSet = false; Aws::Vector m_excludePaths; bool m_excludePathsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws