AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchUpdateFindingsV2UnprocessedFinding.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/OcsfFindingIdentifier.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/BatchUpdateFindingsV2UnprocessedFindingErrorCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API BatchUpdateFindingsV2UnprocessedFinding() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const OcsfFindingIdentifier& GetFindingIdentifier() const { return m_findingIdentifier; }
47 inline bool FindingIdentifierHasBeenSet() const { return m_findingIdentifierHasBeenSet; }
48 template<typename FindingIdentifierT = OcsfFindingIdentifier>
49 void SetFindingIdentifier(FindingIdentifierT&& value) { m_findingIdentifierHasBeenSet = true; m_findingIdentifier = std::forward<FindingIdentifierT>(value); }
50 template<typename FindingIdentifierT = OcsfFindingIdentifier>
51 BatchUpdateFindingsV2UnprocessedFinding& WithFindingIdentifier(FindingIdentifierT&& value) { SetFindingIdentifier(std::forward<FindingIdentifierT>(value)); return *this;}
53
55
58 inline const Aws::String& GetMetadataUid() const { return m_metadataUid; }
59 inline bool MetadataUidHasBeenSet() const { return m_metadataUidHasBeenSet; }
60 template<typename MetadataUidT = Aws::String>
61 void SetMetadataUid(MetadataUidT&& value) { m_metadataUidHasBeenSet = true; m_metadataUid = std::forward<MetadataUidT>(value); }
62 template<typename MetadataUidT = Aws::String>
63 BatchUpdateFindingsV2UnprocessedFinding& WithMetadataUid(MetadataUidT&& value) { SetMetadataUid(std::forward<MetadataUidT>(value)); return *this;}
65
67
72 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
73 inline void SetErrorCode(BatchUpdateFindingsV2UnprocessedFindingErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
76
78
82 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
83 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
84 template<typename ErrorMessageT = Aws::String>
85 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
86 template<typename ErrorMessageT = Aws::String>
87 BatchUpdateFindingsV2UnprocessedFinding& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
89 private:
90
91 OcsfFindingIdentifier m_findingIdentifier;
92 bool m_findingIdentifierHasBeenSet = false;
93
94 Aws::String m_metadataUid;
95 bool m_metadataUidHasBeenSet = false;
96
98 bool m_errorCodeHasBeenSet = false;
99
100 Aws::String m_errorMessage;
101 bool m_errorMessageHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SecurityHub
106} // namespace Aws
BatchUpdateFindingsV2UnprocessedFinding & WithErrorMessage(ErrorMessageT &&value)
BatchUpdateFindingsV2UnprocessedFinding & WithErrorCode(BatchUpdateFindingsV2UnprocessedFindingErrorCode value)
void SetErrorCode(BatchUpdateFindingsV2UnprocessedFindingErrorCode value)
BatchUpdateFindingsV2UnprocessedFinding & WithFindingIdentifier(FindingIdentifierT &&value)
AWS_SECURITYHUB_API BatchUpdateFindingsV2UnprocessedFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API BatchUpdateFindingsV2UnprocessedFinding(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchUpdateFindingsV2UnprocessedFinding & WithMetadataUid(MetadataUidT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue