AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportFindingsError.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API ImportFindingsError() = default;
36 AWS_SECURITYHUB_API ImportFindingsError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 ImportFindingsError& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 template<typename ErrorCodeT = Aws::String>
61 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
62 template<typename ErrorCodeT = Aws::String>
63 ImportFindingsError& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
65
67
71 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
72 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
73 template<typename ErrorMessageT = Aws::String>
74 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
75 template<typename ErrorMessageT = Aws::String>
76 ImportFindingsError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
78 private:
79
80 Aws::String m_id;
81 bool m_idHasBeenSet = false;
82
83 Aws::String m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorMessage;
87 bool m_errorMessageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SecurityHub
92} // namespace Aws
ImportFindingsError & WithErrorCode(ErrorCodeT &&value)
ImportFindingsError & WithErrorMessage(ErrorMessageT &&value)
AWS_SECURITYHUB_API ImportFindingsError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ImportFindingsError(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ImportFindingsError()=default
ImportFindingsError & WithId(IdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue