/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeGuruSecurity { namespace Model { class CreateScanResult { public: AWS_CODEGURUSECURITY_API CreateScanResult(); AWS_CODEGURUSECURITY_API CreateScanResult(const Aws::AmazonWebServiceResult& result); AWS_CODEGURUSECURITY_API CreateScanResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier for the resource object that contains resources that were * scanned.

*/ inline const ResourceId& GetResourceId() const{ return m_resourceId; } /** *

The identifier for the resource object that contains resources that were * scanned.

*/ inline void SetResourceId(const ResourceId& value) { m_resourceId = value; } /** *

The identifier for the resource object that contains resources that were * scanned.

*/ inline void SetResourceId(ResourceId&& value) { m_resourceId = std::move(value); } /** *

The identifier for the resource object that contains resources that were * scanned.

*/ inline CreateScanResult& WithResourceId(const ResourceId& value) { SetResourceId(value); return *this;} /** *

The identifier for the resource object that contains resources that were * scanned.

*/ inline CreateScanResult& WithResourceId(ResourceId&& value) { SetResourceId(std::move(value)); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(const Aws::String& value) { m_runId = value; } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(Aws::String&& value) { m_runId = std::move(value); } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(const char* value) { m_runId.assign(value); } /** *

UUID that identifies the individual scan run.

*/ inline CreateScanResult& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline CreateScanResult& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline CreateScanResult& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The name of the scan.

*/ inline const Aws::String& GetScanName() const{ return m_scanName; } /** *

The name of the scan.

*/ inline void SetScanName(const Aws::String& value) { m_scanName = value; } /** *

The name of the scan.

*/ inline void SetScanName(Aws::String&& value) { m_scanName = std::move(value); } /** *

The name of the scan.

*/ inline void SetScanName(const char* value) { m_scanName.assign(value); } /** *

The name of the scan.

*/ inline CreateScanResult& WithScanName(const Aws::String& value) { SetScanName(value); return *this;} /** *

The name of the scan.

*/ inline CreateScanResult& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;} /** *

The name of the scan.

*/ inline CreateScanResult& WithScanName(const char* value) { SetScanName(value); return *this;} /** *

The ARN for the scan name.

*/ inline const Aws::String& GetScanNameArn() const{ return m_scanNameArn; } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(const Aws::String& value) { m_scanNameArn = value; } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(Aws::String&& value) { m_scanNameArn = std::move(value); } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(const char* value) { m_scanNameArn.assign(value); } /** *

The ARN for the scan name.

*/ inline CreateScanResult& WithScanNameArn(const Aws::String& value) { SetScanNameArn(value); return *this;} /** *

The ARN for the scan name.

*/ inline CreateScanResult& WithScanNameArn(Aws::String&& value) { SetScanNameArn(std::move(value)); return *this;} /** *

The ARN for the scan name.

*/ inline CreateScanResult& WithScanNameArn(const char* value) { SetScanNameArn(value); return *this;} /** *

The current state of the scan. Returns either InProgress, * Successful, or Failed.

*/ inline const ScanState& GetScanState() const{ return m_scanState; } /** *

The current state of the scan. Returns either InProgress, * Successful, or Failed.

*/ inline void SetScanState(const ScanState& value) { m_scanState = value; } /** *

The current state of the scan. Returns either InProgress, * Successful, or Failed.

*/ inline void SetScanState(ScanState&& value) { m_scanState = std::move(value); } /** *

The current state of the scan. Returns either InProgress, * Successful, or Failed.

*/ inline CreateScanResult& WithScanState(const ScanState& value) { SetScanState(value); return *this;} /** *

The current state of the scan. Returns either InProgress, * Successful, or Failed.

*/ inline CreateScanResult& WithScanState(ScanState&& value) { SetScanState(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateScanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateScanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateScanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResourceId m_resourceId; Aws::String m_runId; Aws::String m_scanName; Aws::String m_scanNameArn; ScanState m_scanState; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws