AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidateSecurityProfileBehaviorsResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/ValidationError.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 IoT
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline bool GetValid() const { return m_valid; }
42 inline void SetValid(bool value) { m_validHasBeenSet = true; m_valid = value; }
43 inline ValidateSecurityProfileBehaviorsResult& WithValid(bool value) { SetValid(value); return *this;}
45
47
50 inline const Aws::Vector<ValidationError>& GetValidationErrors() const { return m_validationErrors; }
51 template<typename ValidationErrorsT = Aws::Vector<ValidationError>>
52 void SetValidationErrors(ValidationErrorsT&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = std::forward<ValidationErrorsT>(value); }
53 template<typename ValidationErrorsT = Aws::Vector<ValidationError>>
54 ValidateSecurityProfileBehaviorsResult& WithValidationErrors(ValidationErrorsT&& value) { SetValidationErrors(std::forward<ValidationErrorsT>(value)); return *this;}
55 template<typename ValidationErrorsT = ValidationError>
56 ValidateSecurityProfileBehaviorsResult& AddValidationErrors(ValidationErrorsT&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.emplace_back(std::forward<ValidationErrorsT>(value)); return *this; }
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template<typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
64 template<typename RequestIdT = Aws::String>
65 ValidateSecurityProfileBehaviorsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
67 private:
68
69 bool m_valid{false};
70 bool m_validHasBeenSet = false;
71
72 Aws::Vector<ValidationError> m_validationErrors;
73 bool m_validationErrorsHasBeenSet = false;
74
75 Aws::String m_requestId;
76 bool m_requestIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT
81} // namespace Aws
ValidateSecurityProfileBehaviorsResult & AddValidationErrors(ValidationErrorsT &&value)
AWS_IOT_API ValidateSecurityProfileBehaviorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API ValidateSecurityProfileBehaviorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ValidateSecurityProfileBehaviorsResult & WithValid(bool value)
ValidateSecurityProfileBehaviorsResult & WithRequestId(RequestIdT &&value)
ValidateSecurityProfileBehaviorsResult & WithValidationErrors(ValidationErrorsT &&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