AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CriticalitySource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/CriticalitySourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
29 public:
30 AWS_SECURITYHUB_API CriticalitySource() = default;
31 AWS_SECURITYHUB_API CriticalitySource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline CriticalitySourceType GetSource() const { return m_source; }
40 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
41 inline void SetSource(CriticalitySourceType value) {
42 m_sourceHasBeenSet = true;
43 m_source = value;
44 }
46 SetSource(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetReason() const { return m_reason; }
56 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
57 template <typename ReasonT = Aws::String>
58 void SetReason(ReasonT&& value) {
59 m_reasonHasBeenSet = true;
60 m_reason = std::forward<ReasonT>(value);
61 }
62 template <typename ReasonT = Aws::String>
63 CriticalitySource& WithReason(ReasonT&& value) {
64 SetReason(std::forward<ReasonT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_reason;
72 bool m_sourceHasBeenSet = false;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace SecurityHub
78} // namespace Aws
AWS_SECURITYHUB_API CriticalitySource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(CriticalitySourceType value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API CriticalitySource(Aws::Utils::Json::JsonView jsonValue)
CriticalitySource & WithReason(ReasonT &&value)
CriticalitySource & WithSource(CriticalitySourceType value)
AWS_SECURITYHUB_API CriticalitySource()=default
CriticalitySourceType GetSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue