/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that contains details about a resource covered by Amazon
* Inspector.See Also:
AWS
* API Reference
The Amazon Web Services account ID of the covered resource.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The Amazon Web Services account ID of the covered resource.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The Amazon Web Services account ID of the covered resource.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The Amazon Web Services account ID of the covered resource.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The Amazon Web Services account ID of the covered resource.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The Amazon Web Services account ID of the covered resource.
*/ inline CoveredResource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The Amazon Web Services account ID of the covered resource.
*/ inline CoveredResource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The Amazon Web Services account ID of the covered resource.
*/ inline CoveredResource& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The date and time the resource was last checked for vulnerabilities.
*/ inline const Aws::Utils::DateTime& GetLastScannedAt() const{ return m_lastScannedAt; } /** *The date and time the resource was last checked for vulnerabilities.
*/ inline bool LastScannedAtHasBeenSet() const { return m_lastScannedAtHasBeenSet; } /** *The date and time the resource was last checked for vulnerabilities.
*/ inline void SetLastScannedAt(const Aws::Utils::DateTime& value) { m_lastScannedAtHasBeenSet = true; m_lastScannedAt = value; } /** *The date and time the resource was last checked for vulnerabilities.
*/ inline void SetLastScannedAt(Aws::Utils::DateTime&& value) { m_lastScannedAtHasBeenSet = true; m_lastScannedAt = std::move(value); } /** *The date and time the resource was last checked for vulnerabilities.
*/ inline CoveredResource& WithLastScannedAt(const Aws::Utils::DateTime& value) { SetLastScannedAt(value); return *this;} /** *The date and time the resource was last checked for vulnerabilities.
*/ inline CoveredResource& WithLastScannedAt(Aws::Utils::DateTime&& value) { SetLastScannedAt(std::move(value)); return *this;} /** *The ID of the covered resource.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The ID of the covered resource.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The ID of the covered resource.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The ID of the covered resource.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The ID of the covered resource.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The ID of the covered resource.
*/ inline CoveredResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The ID of the covered resource.
*/ inline CoveredResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The ID of the covered resource.
*/ inline CoveredResource& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *An object that contains details about the metadata.
*/ inline const ResourceScanMetadata& GetResourceMetadata() const{ return m_resourceMetadata; } /** *An object that contains details about the metadata.
*/ inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; } /** *An object that contains details about the metadata.
*/ inline void SetResourceMetadata(const ResourceScanMetadata& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = value; } /** *An object that contains details about the metadata.
*/ inline void SetResourceMetadata(ResourceScanMetadata&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::move(value); } /** *An object that contains details about the metadata.
*/ inline CoveredResource& WithResourceMetadata(const ResourceScanMetadata& value) { SetResourceMetadata(value); return *this;} /** *An object that contains details about the metadata.
*/ inline CoveredResource& WithResourceMetadata(ResourceScanMetadata&& value) { SetResourceMetadata(std::move(value)); return *this;} /** *The type of the covered resource.
*/ inline const CoverageResourceType& GetResourceType() const{ return m_resourceType; } /** *The type of the covered resource.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of the covered resource.
*/ inline void SetResourceType(const CoverageResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of the covered resource.
*/ inline void SetResourceType(CoverageResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of the covered resource.
*/ inline CoveredResource& WithResourceType(const CoverageResourceType& value) { SetResourceType(value); return *this;} /** *The type of the covered resource.
*/ inline CoveredResource& WithResourceType(CoverageResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *The status of the scan covering the resource.
*/ inline const ScanStatus& GetScanStatus() const{ return m_scanStatus; } /** *The status of the scan covering the resource.
*/ inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; } /** *The status of the scan covering the resource.
*/ inline void SetScanStatus(const ScanStatus& value) { m_scanStatusHasBeenSet = true; m_scanStatus = value; } /** *The status of the scan covering the resource.
*/ inline void SetScanStatus(ScanStatus&& value) { m_scanStatusHasBeenSet = true; m_scanStatus = std::move(value); } /** *The status of the scan covering the resource.
*/ inline CoveredResource& WithScanStatus(const ScanStatus& value) { SetScanStatus(value); return *this;} /** *The status of the scan covering the resource.
*/ inline CoveredResource& WithScanStatus(ScanStatus&& value) { SetScanStatus(std::move(value)); return *this;} /** *The Amazon Inspector scan type covering the resource.
*/ inline const ScanType& GetScanType() const{ return m_scanType; } /** *The Amazon Inspector scan type covering the resource.
*/ inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; } /** *The Amazon Inspector scan type covering the resource.
*/ inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; } /** *The Amazon Inspector scan type covering the resource.
*/ inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); } /** *The Amazon Inspector scan type covering the resource.
*/ inline CoveredResource& WithScanType(const ScanType& value) { SetScanType(value); return *this;} /** *The Amazon Inspector scan type covering the resource.
*/ inline CoveredResource& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::Utils::DateTime m_lastScannedAt; bool m_lastScannedAtHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; ResourceScanMetadata m_resourceMetadata; bool m_resourceMetadataHasBeenSet = false; CoverageResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; ScanStatus m_scanStatus; bool m_scanStatusHasBeenSet = false; ScanType m_scanType; bool m_scanTypeHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws