AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchImportFindingsResult.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/ImportFindingsError.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SECURITYHUB_API BatchImportFindingsResult();
35
36
38
41 inline int GetFailedCount() const{ return m_failedCount; }
42 inline void SetFailedCount(int value) { m_failedCount = value; }
43 inline BatchImportFindingsResult& WithFailedCount(int value) { SetFailedCount(value); return *this;}
45
47
50 inline int GetSuccessCount() const{ return m_successCount; }
51 inline void SetSuccessCount(int value) { m_successCount = value; }
52 inline BatchImportFindingsResult& WithSuccessCount(int value) { SetSuccessCount(value); return *this;}
54
56
59 inline const Aws::Vector<ImportFindingsError>& GetFailedFindings() const{ return m_failedFindings; }
60 inline void SetFailedFindings(const Aws::Vector<ImportFindingsError>& value) { m_failedFindings = value; }
61 inline void SetFailedFindings(Aws::Vector<ImportFindingsError>&& value) { m_failedFindings = std::move(value); }
64 inline BatchImportFindingsResult& AddFailedFindings(const ImportFindingsError& value) { m_failedFindings.push_back(value); return *this; }
65 inline BatchImportFindingsResult& AddFailedFindings(ImportFindingsError&& value) { m_failedFindings.push_back(std::move(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const{ return m_requestId; }
71 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
72 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
73 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
74 inline BatchImportFindingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
75 inline BatchImportFindingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
76 inline BatchImportFindingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
78 private:
79
80 int m_failedCount;
81
82 int m_successCount;
83
84 Aws::Vector<ImportFindingsError> m_failedFindings;
85
86 Aws::String m_requestId;
87 };
88
89} // namespace Model
90} // namespace SecurityHub
91} // namespace Aws
BatchImportFindingsResult & AddFailedFindings(ImportFindingsError &&value)
BatchImportFindingsResult & AddFailedFindings(const ImportFindingsError &value)
BatchImportFindingsResult & WithFailedFindings(const Aws::Vector< ImportFindingsError > &value)
const Aws::Vector< ImportFindingsError > & GetFailedFindings() const
BatchImportFindingsResult & WithFailedFindings(Aws::Vector< ImportFindingsError > &&value)
BatchImportFindingsResult & WithFailedCount(int value)
void SetFailedFindings(Aws::Vector< ImportFindingsError > &&value)
AWS_SECURITYHUB_API BatchImportFindingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchImportFindingsResult & WithRequestId(Aws::String &&value)
BatchImportFindingsResult & WithRequestId(const Aws::String &value)
void SetFailedFindings(const Aws::Vector< ImportFindingsError > &value)
BatchImportFindingsResult & WithSuccessCount(int value)
AWS_SECURITYHUB_API BatchImportFindingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchImportFindingsResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue