1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/securityhub/SecurityHub_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/securityhub/model/ImportFindingsError.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace SecurityHub
25 {
26 namespace Model
27 {
28   class AWS_SECURITYHUB_API BatchImportFindingsResult
29   {
30   public:
31     BatchImportFindingsResult();
32     BatchImportFindingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     BatchImportFindingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>The number of findings that failed to import.</p>
38      */
GetFailedCount()39     inline int GetFailedCount() const{ return m_failedCount; }
40 
41     /**
42      * <p>The number of findings that failed to import.</p>
43      */
SetFailedCount(int value)44     inline void SetFailedCount(int value) { m_failedCount = value; }
45 
46     /**
47      * <p>The number of findings that failed to import.</p>
48      */
WithFailedCount(int value)49     inline BatchImportFindingsResult& WithFailedCount(int value) { SetFailedCount(value); return *this;}
50 
51 
52     /**
53      * <p>The number of findings that were successfully imported.</p>
54      */
GetSuccessCount()55     inline int GetSuccessCount() const{ return m_successCount; }
56 
57     /**
58      * <p>The number of findings that were successfully imported.</p>
59      */
SetSuccessCount(int value)60     inline void SetSuccessCount(int value) { m_successCount = value; }
61 
62     /**
63      * <p>The number of findings that were successfully imported.</p>
64      */
WithSuccessCount(int value)65     inline BatchImportFindingsResult& WithSuccessCount(int value) { SetSuccessCount(value); return *this;}
66 
67 
68     /**
69      * <p>The list of findings that failed to import.</p>
70      */
GetFailedFindings()71     inline const Aws::Vector<ImportFindingsError>& GetFailedFindings() const{ return m_failedFindings; }
72 
73     /**
74      * <p>The list of findings that failed to import.</p>
75      */
SetFailedFindings(const Aws::Vector<ImportFindingsError> & value)76     inline void SetFailedFindings(const Aws::Vector<ImportFindingsError>& value) { m_failedFindings = value; }
77 
78     /**
79      * <p>The list of findings that failed to import.</p>
80      */
SetFailedFindings(Aws::Vector<ImportFindingsError> && value)81     inline void SetFailedFindings(Aws::Vector<ImportFindingsError>&& value) { m_failedFindings = std::move(value); }
82 
83     /**
84      * <p>The list of findings that failed to import.</p>
85      */
WithFailedFindings(const Aws::Vector<ImportFindingsError> & value)86     inline BatchImportFindingsResult& WithFailedFindings(const Aws::Vector<ImportFindingsError>& value) { SetFailedFindings(value); return *this;}
87 
88     /**
89      * <p>The list of findings that failed to import.</p>
90      */
WithFailedFindings(Aws::Vector<ImportFindingsError> && value)91     inline BatchImportFindingsResult& WithFailedFindings(Aws::Vector<ImportFindingsError>&& value) { SetFailedFindings(std::move(value)); return *this;}
92 
93     /**
94      * <p>The list of findings that failed to import.</p>
95      */
AddFailedFindings(const ImportFindingsError & value)96     inline BatchImportFindingsResult& AddFailedFindings(const ImportFindingsError& value) { m_failedFindings.push_back(value); return *this; }
97 
98     /**
99      * <p>The list of findings that failed to import.</p>
100      */
AddFailedFindings(ImportFindingsError && value)101     inline BatchImportFindingsResult& AddFailedFindings(ImportFindingsError&& value) { m_failedFindings.push_back(std::move(value)); return *this; }
102 
103   private:
104 
105     int m_failedCount;
106 
107     int m_successCount;
108 
109     Aws::Vector<ImportFindingsError> m_failedFindings;
110   };
111 
112 } // namespace Model
113 } // namespace SecurityHub
114 } // namespace Aws
115