/** * 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 EC2 { namespace Model { /** */ class CreateNetworkInsightsAccessScopeRequest : public EC2Request { public: AWS_EC2_API CreateNetworkInsightsAccessScopeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkInsightsAccessScope"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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 CreateNetworkInsightsAccessScopeRequest& WithMatchPaths(const Aws::Vector& value) { SetMatchPaths(value); return *this;} /** *

The paths to match.

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

The paths to match.

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

The paths to match.

*/ inline CreateNetworkInsightsAccessScopeRequest& AddMatchPaths(AccessScopePathRequest&& 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 CreateNetworkInsightsAccessScopeRequest& WithExcludePaths(const Aws::Vector& value) { SetExcludePaths(value); return *this;} /** *

The paths to exclude.

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

The paths to exclude.

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

The paths to exclude.

*/ inline CreateNetworkInsightsAccessScopeRequest& AddExcludePaths(AccessScopePathRequest&& value) { m_excludePathsHasBeenSet = true; m_excludePaths.push_back(std::move(value)); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The tags to apply.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to apply.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to apply.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to apply.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to apply.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to apply.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply.

*/ inline CreateNetworkInsightsAccessScopeRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to apply.

*/ inline CreateNetworkInsightsAccessScopeRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CreateNetworkInsightsAccessScopeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::Vector m_matchPaths; bool m_matchPathsHasBeenSet = false; Aws::Vector m_excludePaths; bool m_excludePathsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws