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

A security control in Security Hub describes a security best practice * related to a specific resource.

See Also:

AWS * API Reference

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

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline const Aws::String& GetSecurityControlId() const{ return m_securityControlId; } /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; } /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline void SetSecurityControlId(const Aws::String& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = value; } /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline void SetSecurityControlId(Aws::String&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::move(value); } /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline void SetSecurityControlId(const char* value) { m_securityControlIdHasBeenSet = true; m_securityControlId.assign(value); } /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline SecurityControl& WithSecurityControlId(const Aws::String& value) { SetSecurityControlId(value); return *this;} /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline SecurityControl& WithSecurityControlId(Aws::String&& value) { SetSecurityControlId(std::move(value)); return *this;} /** *

The unique identifier of a security control across standards. Values for * this field typically consist of an Amazon Web Service name and a number, such as * APIGateway.3.

*/ inline SecurityControl& WithSecurityControlId(const char* value) { SetSecurityControlId(value); return *this;} /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline const Aws::String& GetSecurityControlArn() const{ return m_securityControlArn; } /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline bool SecurityControlArnHasBeenSet() const { return m_securityControlArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline void SetSecurityControlArn(const Aws::String& value) { m_securityControlArnHasBeenSet = true; m_securityControlArn = value; } /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline void SetSecurityControlArn(Aws::String&& value) { m_securityControlArnHasBeenSet = true; m_securityControlArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline void SetSecurityControlArn(const char* value) { m_securityControlArnHasBeenSet = true; m_securityControlArn.assign(value); } /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline SecurityControl& WithSecurityControlArn(const Aws::String& value) { SetSecurityControlArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline SecurityControl& WithSecurityControlArn(Aws::String&& value) { SetSecurityControlArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for a security control across standards, such * as * arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1. * This parameter doesn't mention a specific standard.

*/ inline SecurityControl& WithSecurityControlArn(const char* value) { SetSecurityControlArn(value); return *this;} /** *

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The title of a security control.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

The description of a security control across standards. This typically * summarizes how Security Hub evaluates the control and the conditions under which * it produces a failed finding. This parameter doesn't reference a specific * standard.

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

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline const Aws::String& GetRemediationUrl() const{ return m_remediationUrl; } /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline bool RemediationUrlHasBeenSet() const { return m_remediationUrlHasBeenSet; } /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline void SetRemediationUrl(const Aws::String& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = value; } /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline void SetRemediationUrl(Aws::String&& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = std::move(value); } /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline void SetRemediationUrl(const char* value) { m_remediationUrlHasBeenSet = true; m_remediationUrl.assign(value); } /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline SecurityControl& WithRemediationUrl(const Aws::String& value) { SetRemediationUrl(value); return *this;} /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline SecurityControl& WithRemediationUrl(Aws::String&& value) { SetRemediationUrl(std::move(value)); return *this;} /** *

A link to Security Hub documentation that explains how to remediate a failed * finding for a security control.

*/ inline SecurityControl& WithRemediationUrl(const char* value) { SetRemediationUrl(value); return *this;} /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline const SeverityRating& GetSeverityRating() const{ return m_severityRating; } /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline bool SeverityRatingHasBeenSet() const { return m_severityRatingHasBeenSet; } /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline void SetSeverityRating(const SeverityRating& value) { m_severityRatingHasBeenSet = true; m_severityRating = value; } /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline void SetSeverityRating(SeverityRating&& value) { m_severityRatingHasBeenSet = true; m_severityRating = std::move(value); } /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline SecurityControl& WithSeverityRating(const SeverityRating& value) { SetSeverityRating(value); return *this;} /** *

The severity of a security control. For more information about how Security * Hub determines control severity, see Assigning * severity to control findings in the Security Hub User Guide.

*/ inline SecurityControl& WithSeverityRating(SeverityRating&& value) { SetSeverityRating(std::move(value)); return *this;} /** *

The enablement status of a security control in a specific standard.

*/ inline const ControlStatus& GetSecurityControlStatus() const{ return m_securityControlStatus; } /** *

The enablement status of a security control in a specific standard.

*/ inline bool SecurityControlStatusHasBeenSet() const { return m_securityControlStatusHasBeenSet; } /** *

The enablement status of a security control in a specific standard.

*/ inline void SetSecurityControlStatus(const ControlStatus& value) { m_securityControlStatusHasBeenSet = true; m_securityControlStatus = value; } /** *

The enablement status of a security control in a specific standard.

*/ inline void SetSecurityControlStatus(ControlStatus&& value) { m_securityControlStatusHasBeenSet = true; m_securityControlStatus = std::move(value); } /** *

The enablement status of a security control in a specific standard.

*/ inline SecurityControl& WithSecurityControlStatus(const ControlStatus& value) { SetSecurityControlStatus(value); return *this;} /** *

The enablement status of a security control in a specific standard.

*/ inline SecurityControl& WithSecurityControlStatus(ControlStatus&& value) { SetSecurityControlStatus(std::move(value)); return *this;} private: Aws::String m_securityControlId; bool m_securityControlIdHasBeenSet = false; Aws::String m_securityControlArn; bool m_securityControlArnHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_remediationUrl; bool m_remediationUrlHasBeenSet = false; SeverityRating m_severityRating; bool m_severityRatingHasBeenSet = false; ControlStatus m_securityControlStatus; bool m_securityControlStatusHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws