AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ManagedApiFinding.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/FindingReason.h>
9#include <aws/apiportal/model/PostureStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIPortal {
23namespace Model {
24
32 public:
33 AWS_APIPORTAL_API ManagedApiFinding() = default;
34 AWS_APIPORTAL_API ManagedApiFinding(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPostureId() const { return m_postureId; }
43 inline bool PostureIdHasBeenSet() const { return m_postureIdHasBeenSet; }
44 template <typename PostureIdT = Aws::String>
45 void SetPostureId(PostureIdT&& value) {
46 m_postureIdHasBeenSet = true;
47 m_postureId = std::forward<PostureIdT>(value);
48 }
49 template <typename PostureIdT = Aws::String>
50 ManagedApiFinding& WithPostureId(PostureIdT&& value) {
51 SetPostureId(std::forward<PostureIdT>(value));
52 return *this;
53 }
55
57
58 inline PostureStatus GetPostureStatus() const { return m_postureStatus; }
59 inline bool PostureStatusHasBeenSet() const { return m_postureStatusHasBeenSet; }
60 inline void SetPostureStatus(PostureStatus value) {
61 m_postureStatusHasBeenSet = true;
62 m_postureStatus = value;
63 }
65 SetPostureStatus(value);
66 return *this;
67 }
69
71
72 inline FindingReason GetReason() const { return m_reason; }
73 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
74 inline void SetReason(FindingReason value) {
75 m_reasonHasBeenSet = true;
76 m_reason = value;
77 }
79 SetReason(value);
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
89 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
90 template <typename UpdatedAtT = Aws::Utils::DateTime>
91 void SetUpdatedAt(UpdatedAtT&& value) {
92 m_updatedAtHasBeenSet = true;
93 m_updatedAt = std::forward<UpdatedAtT>(value);
94 }
95 template <typename UpdatedAtT = Aws::Utils::DateTime>
96 ManagedApiFinding& WithUpdatedAt(UpdatedAtT&& value) {
97 SetUpdatedAt(std::forward<UpdatedAtT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_postureId;
103
104 PostureStatus m_postureStatus{PostureStatus::NOT_SET};
105
107
108 Aws::Utils::DateTime m_updatedAt{};
109 bool m_postureIdHasBeenSet = false;
110 bool m_postureStatusHasBeenSet = false;
111 bool m_reasonHasBeenSet = false;
112 bool m_updatedAtHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace APIPortal
117} // namespace Aws
const Aws::String & GetPostureId() const
AWS_APIPORTAL_API ManagedApiFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedApiFinding & WithUpdatedAt(UpdatedAtT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIPORTAL_API ManagedApiFinding()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
ManagedApiFinding & WithPostureStatus(PostureStatus value)
AWS_APIPORTAL_API ManagedApiFinding(Aws::Utils::Json::JsonView jsonValue)
ManagedApiFinding & WithPostureId(PostureIdT &&value)
ManagedApiFinding & WithReason(FindingReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue