AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PerformanceTarget.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/model/PerformanceTargetStatus.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RedshiftServerless {
20namespace Model {
21
29 public:
30 AWS_REDSHIFTSERVERLESS_API PerformanceTarget() = default;
31 AWS_REDSHIFTSERVERLESS_API PerformanceTarget(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REDSHIFTSERVERLESS_API PerformanceTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline int GetLevel() const { return m_level; }
42 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
43 inline void SetLevel(int value) {
44 m_levelHasBeenSet = true;
45 m_level = value;
46 }
47 inline PerformanceTarget& WithLevel(int value) {
48 SetLevel(value);
49 return *this;
50 }
52
54
57 inline PerformanceTargetStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68 private:
69 int m_level{0};
70
72 bool m_levelHasBeenSet = false;
73 bool m_statusHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace RedshiftServerless
78} // namespace Aws
PerformanceTarget & WithStatus(PerformanceTargetStatus value)
void SetStatus(PerformanceTargetStatus value)
AWS_REDSHIFTSERVERLESS_API PerformanceTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTSERVERLESS_API PerformanceTarget()=default
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTSERVERLESS_API PerformanceTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue