AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Adjustment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API Adjustment() = default;
30 AWS_SECURITYHUB_API Adjustment(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API Adjustment& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetMetric() const { return m_metric; }
39 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
40 template <typename MetricT = Aws::String>
41 void SetMetric(MetricT&& value) {
42 m_metricHasBeenSet = true;
43 m_metric = std::forward<MetricT>(value);
44 }
45 template <typename MetricT = Aws::String>
46 Adjustment& WithMetric(MetricT&& value) {
47 SetMetric(std::forward<MetricT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetReason() const { return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 template <typename ReasonT = Aws::String>
59 void SetReason(ReasonT&& value) {
60 m_reasonHasBeenSet = true;
61 m_reason = std::forward<ReasonT>(value);
62 }
63 template <typename ReasonT = Aws::String>
64 Adjustment& WithReason(ReasonT&& value) {
65 SetReason(std::forward<ReasonT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_metric;
71
72 Aws::String m_reason;
73 bool m_metricHasBeenSet = false;
74 bool m_reasonHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
const Aws::String & GetReason() const
Definition Adjustment.h:56
AWS_SECURITYHUB_API Adjustment(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(MetricT &&value)
Definition Adjustment.h:41
Adjustment & WithReason(ReasonT &&value)
Definition Adjustment.h:64
Adjustment & WithMetric(MetricT &&value)
Definition Adjustment.h:46
AWS_SECURITYHUB_API Adjustment()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(ReasonT &&value)
Definition Adjustment.h:59
AWS_SECURITYHUB_API Adjustment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetric() const
Definition Adjustment.h:38
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue