AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExternalMetricStatus.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ExternalMetricStatusCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API ExternalMetricStatus();
37 AWS_COMPUTEOPTIMIZER_API ExternalMetricStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API ExternalMetricStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const ExternalMetricStatusCode& GetStatusCode() const{ return m_statusCode; }
48 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
49 inline void SetStatusCode(const ExternalMetricStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
50 inline void SetStatusCode(ExternalMetricStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
51 inline ExternalMetricStatus& WithStatusCode(const ExternalMetricStatusCode& value) { SetStatusCode(value); return *this;}
52 inline ExternalMetricStatus& WithStatusCode(ExternalMetricStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
61 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
62 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
63 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
64 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
65 inline ExternalMetricStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
66 inline ExternalMetricStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
67 inline ExternalMetricStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
69 private:
70
71 ExternalMetricStatusCode m_statusCode;
72 bool m_statusCodeHasBeenSet = false;
73
74 Aws::String m_statusReason;
75 bool m_statusReasonHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ComputeOptimizer
80} // namespace Aws
ExternalMetricStatus & WithStatusReason(const char *value)
ExternalMetricStatus & WithStatusCode(ExternalMetricStatusCode &&value)
ExternalMetricStatus & WithStatusReason(const Aws::String &value)
void SetStatusCode(const ExternalMetricStatusCode &value)
AWS_COMPUTEOPTIMIZER_API ExternalMetricStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusCode(ExternalMetricStatusCode &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalMetricStatus & WithStatusCode(const ExternalMetricStatusCode &value)
AWS_COMPUTEOPTIMIZER_API ExternalMetricStatus(Aws::Utils::Json::JsonView jsonValue)
const ExternalMetricStatusCode & GetStatusCode() const
ExternalMetricStatus & WithStatusReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue