/** * 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 Inspector { namespace Model { /** *

Contains information about what is excluded from an assessment run given the * current state of the assessment template.

See Also:

AWS * API Reference

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

The name of the exclusion preview.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The name of the exclusion preview.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The name of the exclusion preview.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The name of the exclusion preview.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The name of the exclusion preview.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The name of the exclusion preview.

*/ inline ExclusionPreview& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The name of the exclusion preview.

*/ inline ExclusionPreview& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The name of the exclusion preview.

*/ inline ExclusionPreview& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The description of the exclusion preview.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the exclusion preview.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the exclusion preview.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the exclusion preview.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the exclusion preview.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the exclusion preview.

*/ inline ExclusionPreview& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the exclusion preview.

*/ inline ExclusionPreview& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the exclusion preview.

*/ inline ExclusionPreview& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The recommendation for the exclusion preview.

*/ inline const Aws::String& GetRecommendation() const{ return m_recommendation; } /** *

The recommendation for the exclusion preview.

*/ inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; } /** *

The recommendation for the exclusion preview.

*/ inline void SetRecommendation(const Aws::String& value) { m_recommendationHasBeenSet = true; m_recommendation = value; } /** *

The recommendation for the exclusion preview.

*/ inline void SetRecommendation(Aws::String&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); } /** *

The recommendation for the exclusion preview.

*/ inline void SetRecommendation(const char* value) { m_recommendationHasBeenSet = true; m_recommendation.assign(value); } /** *

The recommendation for the exclusion preview.

*/ inline ExclusionPreview& WithRecommendation(const Aws::String& value) { SetRecommendation(value); return *this;} /** *

The recommendation for the exclusion preview.

*/ inline ExclusionPreview& WithRecommendation(Aws::String&& value) { SetRecommendation(std::move(value)); return *this;} /** *

The recommendation for the exclusion preview.

*/ inline ExclusionPreview& WithRecommendation(const char* value) { SetRecommendation(value); return *this;} /** *

The AWS resources for which the exclusion preview pertains.

*/ inline const Aws::Vector& GetScopes() const{ return m_scopes; } /** *

The AWS resources for which the exclusion preview pertains.

*/ inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; } /** *

The AWS resources for which the exclusion preview pertains.

*/ inline void SetScopes(const Aws::Vector& value) { m_scopesHasBeenSet = true; m_scopes = value; } /** *

The AWS resources for which the exclusion preview pertains.

*/ inline void SetScopes(Aws::Vector&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); } /** *

The AWS resources for which the exclusion preview pertains.

*/ inline ExclusionPreview& WithScopes(const Aws::Vector& value) { SetScopes(value); return *this;} /** *

The AWS resources for which the exclusion preview pertains.

*/ inline ExclusionPreview& WithScopes(Aws::Vector&& value) { SetScopes(std::move(value)); return *this;} /** *

The AWS resources for which the exclusion preview pertains.

*/ inline ExclusionPreview& AddScopes(const Scope& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; } /** *

The AWS resources for which the exclusion preview pertains.

*/ inline ExclusionPreview& AddScopes(Scope&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; } /** *

The system-defined attributes for the exclusion preview.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

The system-defined attributes for the exclusion preview.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The system-defined attributes for the exclusion preview.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The system-defined attributes for the exclusion preview.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The system-defined attributes for the exclusion preview.

*/ inline ExclusionPreview& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The system-defined attributes for the exclusion preview.

*/ inline ExclusionPreview& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The system-defined attributes for the exclusion preview.

*/ inline ExclusionPreview& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The system-defined attributes for the exclusion preview.

*/ inline ExclusionPreview& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_recommendation; bool m_recommendationHasBeenSet = false; Aws::Vector m_scopes; bool m_scopesHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws