AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CvssScoreAdjustment.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_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 imagebuilder
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IMAGEBUILDER_API CvssScoreAdjustment();
36 AWS_IMAGEBUILDER_API CvssScoreAdjustment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetric() const{ return m_metric; }
46 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
47 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
48 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
49 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
50 inline CvssScoreAdjustment& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
51 inline CvssScoreAdjustment& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
52 inline CvssScoreAdjustment& WithMetric(const char* value) { SetMetric(value); return *this;}
54
56
59 inline const Aws::String& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
64 inline CvssScoreAdjustment& WithReason(const Aws::String& value) { SetReason(value); return *this;}
65 inline CvssScoreAdjustment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
66 inline CvssScoreAdjustment& WithReason(const char* value) { SetReason(value); return *this;}
68 private:
69
70 Aws::String m_metric;
71 bool m_metricHasBeenSet = false;
72
73 Aws::String m_reason;
74 bool m_reasonHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace imagebuilder
79} // namespace Aws
CvssScoreAdjustment & WithMetric(Aws::String &&value)
AWS_IMAGEBUILDER_API CvssScoreAdjustment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API CvssScoreAdjustment(Aws::Utils::Json::JsonView jsonValue)
CvssScoreAdjustment & WithReason(const Aws::String &value)
CvssScoreAdjustment & WithReason(Aws::String &&value)
CvssScoreAdjustment & WithReason(const char *value)
CvssScoreAdjustment & WithMetric(const char *value)
CvssScoreAdjustment & WithMetric(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue