/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector { namespace Model { /** *

Contains information about an Amazon Inspector rules package. This data type * is used as the response element in the DescribeRulesPackages * action.

See Also:

AWS * API Reference

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

The ARN of the rules package.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the rules package.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the rules package.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the rules package.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the rules package.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the rules package.

*/ inline RulesPackage& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the rules package.

*/ inline RulesPackage& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the rules package.

*/ inline RulesPackage& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the rules package.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the rules package.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the rules package.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the rules package.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the rules package.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the rules package.

*/ inline RulesPackage& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rules package.

*/ inline RulesPackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rules package.

*/ inline RulesPackage& WithName(const char* value) { SetName(value); return *this;} /** *

The version ID of the rules package.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version ID of the rules package.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version ID of the rules package.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version ID of the rules package.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version ID of the rules package.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version ID of the rules package.

*/ inline RulesPackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version ID of the rules package.

*/ inline RulesPackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version ID of the rules package.

*/ inline RulesPackage& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The provider of the rules package.

*/ inline const Aws::String& GetProvider() const{ return m_provider; } /** *

The provider of the rules package.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The provider of the rules package.

*/ inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The provider of the rules package.

*/ inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The provider of the rules package.

*/ inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); } /** *

The provider of the rules package.

*/ inline RulesPackage& WithProvider(const Aws::String& value) { SetProvider(value); return *this;} /** *

The provider of the rules package.

*/ inline RulesPackage& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;} /** *

The provider of the rules package.

*/ inline RulesPackage& WithProvider(const char* value) { SetProvider(value); return *this;} /** *

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

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

The description of the rules package.

*/ inline RulesPackage& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_provider; bool m_providerHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws