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

Identifies the source of the finding change event.

See Also:

* AWS * API Reference

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

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline const FindingHistoryUpdateSourceType& GetType() const{ return m_type; } /** *

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline void SetType(const FindingHistoryUpdateSourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline void SetType(FindingHistoryUpdateSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline FindingHistoryUpdateSource& WithType(const FindingHistoryUpdateSourceType& value) { SetType(value); return *this;} /** *

Describes the type of finding change event, such as a call to * BatchImportFindings (by an integrated Amazon Web Service or * third party partner integration) or * BatchUpdateFindings (by a Security Hub customer).

*/ inline FindingHistoryUpdateSource& WithType(FindingHistoryUpdateSourceType&& value) { SetType(std::move(value)); return *this;} /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline const Aws::String& GetIdentity() const{ return m_identity; } /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; } /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; } /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); } /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); } /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline FindingHistoryUpdateSource& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;} /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline FindingHistoryUpdateSource& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;} /** *

The identity of the source that initiated the finding change event. For * example, the Amazon Resource Name (ARN) of a partner that calls * BatchImportFindings or of a customer that calls BatchUpdateFindings.

*/ inline FindingHistoryUpdateSource& WithIdentity(const char* value) { SetIdentity(value); return *this;} private: FindingHistoryUpdateSourceType m_type; bool m_typeHasBeenSet = false; Aws::String m_identity; bool m_identityHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws