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/iot/IoT_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/iot/model/ValidationError.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 IoT
25 {
26 namespace Model
27 {
28   class AWS_IOT_API ValidateSecurityProfileBehaviorsResult
29   {
30   public:
31     ValidateSecurityProfileBehaviorsResult();
32     ValidateSecurityProfileBehaviorsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     ValidateSecurityProfileBehaviorsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>True if the behaviors were valid.</p>
38      */
GetValid()39     inline bool GetValid() const{ return m_valid; }
40 
41     /**
42      * <p>True if the behaviors were valid.</p>
43      */
SetValid(bool value)44     inline void SetValid(bool value) { m_valid = value; }
45 
46     /**
47      * <p>True if the behaviors were valid.</p>
48      */
WithValid(bool value)49     inline ValidateSecurityProfileBehaviorsResult& WithValid(bool value) { SetValid(value); return *this;}
50 
51 
52     /**
53      * <p>The list of any errors found in the behaviors.</p>
54      */
GetValidationErrors()55     inline const Aws::Vector<ValidationError>& GetValidationErrors() const{ return m_validationErrors; }
56 
57     /**
58      * <p>The list of any errors found in the behaviors.</p>
59      */
SetValidationErrors(const Aws::Vector<ValidationError> & value)60     inline void SetValidationErrors(const Aws::Vector<ValidationError>& value) { m_validationErrors = value; }
61 
62     /**
63      * <p>The list of any errors found in the behaviors.</p>
64      */
SetValidationErrors(Aws::Vector<ValidationError> && value)65     inline void SetValidationErrors(Aws::Vector<ValidationError>&& value) { m_validationErrors = std::move(value); }
66 
67     /**
68      * <p>The list of any errors found in the behaviors.</p>
69      */
WithValidationErrors(const Aws::Vector<ValidationError> & value)70     inline ValidateSecurityProfileBehaviorsResult& WithValidationErrors(const Aws::Vector<ValidationError>& value) { SetValidationErrors(value); return *this;}
71 
72     /**
73      * <p>The list of any errors found in the behaviors.</p>
74      */
WithValidationErrors(Aws::Vector<ValidationError> && value)75     inline ValidateSecurityProfileBehaviorsResult& WithValidationErrors(Aws::Vector<ValidationError>&& value) { SetValidationErrors(std::move(value)); return *this;}
76 
77     /**
78      * <p>The list of any errors found in the behaviors.</p>
79      */
AddValidationErrors(const ValidationError & value)80     inline ValidateSecurityProfileBehaviorsResult& AddValidationErrors(const ValidationError& value) { m_validationErrors.push_back(value); return *this; }
81 
82     /**
83      * <p>The list of any errors found in the behaviors.</p>
84      */
AddValidationErrors(ValidationError && value)85     inline ValidateSecurityProfileBehaviorsResult& AddValidationErrors(ValidationError&& value) { m_validationErrors.push_back(std::move(value)); return *this; }
86 
87   private:
88 
89     bool m_valid;
90 
91     Aws::Vector<ValidationError> m_validationErrors;
92   };
93 
94 } // namespace Model
95 } // namespace IoT
96 } // namespace Aws
97