AWS SDK for C++  1.9.129
AWS SDK for C++
ValidateSecurityProfileBehaviorsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.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 {
29  {
30  public:
34 
35 
39  inline bool GetValid() const{ return m_valid; }
40 
44  inline void SetValid(bool value) { m_valid = value; }
45 
49  inline ValidateSecurityProfileBehaviorsResult& WithValid(bool value) { SetValid(value); return *this;}
50 
51 
55  inline const Aws::Vector<ValidationError>& GetValidationErrors() const{ return m_validationErrors; }
56 
60  inline void SetValidationErrors(const Aws::Vector<ValidationError>& value) { m_validationErrors = value; }
61 
65  inline void SetValidationErrors(Aws::Vector<ValidationError>&& value) { m_validationErrors = std::move(value); }
66 
70  inline ValidateSecurityProfileBehaviorsResult& WithValidationErrors(const Aws::Vector<ValidationError>& value) { SetValidationErrors(value); return *this;}
71 
75  inline ValidateSecurityProfileBehaviorsResult& WithValidationErrors(Aws::Vector<ValidationError>&& value) { SetValidationErrors(std::move(value)); return *this;}
76 
80  inline ValidateSecurityProfileBehaviorsResult& AddValidationErrors(const ValidationError& value) { m_validationErrors.push_back(value); return *this; }
81 
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
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
ValidationError.h
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::AddValidationErrors
ValidateSecurityProfileBehaviorsResult & AddValidationErrors(ValidationError &&value)
Definition: ValidateSecurityProfileBehaviorsResult.h:85
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::WithValidationErrors
ValidateSecurityProfileBehaviorsResult & WithValidationErrors(Aws::Vector< ValidationError > &&value)
Definition: ValidateSecurityProfileBehaviorsResult.h:75
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::ValidateSecurityProfileBehaviorsResult
ValidateSecurityProfileBehaviorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ValidationError
Definition: ValidationError.h:33
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::SetValidationErrors
void SetValidationErrors(Aws::Vector< ValidationError > &&value)
Definition: ValidateSecurityProfileBehaviorsResult.h:65
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::ValidateSecurityProfileBehaviorsResult
ValidateSecurityProfileBehaviorsResult()
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::WithValidationErrors
ValidateSecurityProfileBehaviorsResult & WithValidationErrors(const Aws::Vector< ValidationError > &value)
Definition: ValidateSecurityProfileBehaviorsResult.h:70
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::GetValidationErrors
const Aws::Vector< ValidationError > & GetValidationErrors() const
Definition: ValidateSecurityProfileBehaviorsResult.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::SetValid
void SetValid(bool value)
Definition: ValidateSecurityProfileBehaviorsResult.h:44
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::operator=
ValidateSecurityProfileBehaviorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::GetValid
bool GetValid() const
Definition: ValidateSecurityProfileBehaviorsResult.h:39
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::SetValidationErrors
void SetValidationErrors(const Aws::Vector< ValidationError > &value)
Definition: ValidateSecurityProfileBehaviorsResult.h:60
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::WithValid
ValidateSecurityProfileBehaviorsResult & WithValid(bool value)
Definition: ValidateSecurityProfileBehaviorsResult.h:49
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult::AddValidationErrors
ValidateSecurityProfileBehaviorsResult & AddValidationErrors(const ValidationError &value)
Definition: ValidateSecurityProfileBehaviorsResult.h:80
IoT_EXPORTS.h
Aws::IoT::Model::ValidateSecurityProfileBehaviorsResult
Definition: ValidateSecurityProfileBehaviorsResult.h:29