AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
WorkspaceConfigurationDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/LimitsPerLabelSet.h>
9#include <aws/amp/model/WorkspaceConfigurationStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PrometheusService {
22namespace Model {
23
31 public:
32 AWS_PROMETHEUSSERVICE_API WorkspaceConfigurationDescription() = default;
35 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const WorkspaceConfigurationStatus& GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 template <typename StatusT = WorkspaceConfigurationStatus>
45 void SetStatus(StatusT&& value) {
46 m_statusHasBeenSet = true;
47 m_status = std::forward<StatusT>(value);
48 }
49 template <typename StatusT = WorkspaceConfigurationStatus>
51 SetStatus(std::forward<StatusT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<LimitsPerLabelSet>& GetLimitsPerLabelSet() const { return m_limitsPerLabelSet; }
62 inline bool LimitsPerLabelSetHasBeenSet() const { return m_limitsPerLabelSetHasBeenSet; }
63 template <typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
64 void SetLimitsPerLabelSet(LimitsPerLabelSetT&& value) {
65 m_limitsPerLabelSetHasBeenSet = true;
66 m_limitsPerLabelSet = std::forward<LimitsPerLabelSetT>(value);
67 }
68 template <typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
70 SetLimitsPerLabelSet(std::forward<LimitsPerLabelSetT>(value));
71 return *this;
72 }
73 template <typename LimitsPerLabelSetT = LimitsPerLabelSet>
75 m_limitsPerLabelSetHasBeenSet = true;
76 m_limitsPerLabelSet.emplace_back(std::forward<LimitsPerLabelSetT>(value));
77 return *this;
78 }
80
82
86 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
87 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
88 inline void SetRetentionPeriodInDays(int value) {
89 m_retentionPeriodInDaysHasBeenSet = true;
90 m_retentionPeriodInDays = value;
91 }
94 return *this;
95 }
97 private:
99
100 Aws::Vector<LimitsPerLabelSet> m_limitsPerLabelSet;
101
102 int m_retentionPeriodInDays{0};
103 bool m_statusHasBeenSet = false;
104 bool m_limitsPerLabelSetHasBeenSet = false;
105 bool m_retentionPeriodInDaysHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace PrometheusService
110} // namespace Aws
WorkspaceConfigurationDescription & WithLimitsPerLabelSet(LimitsPerLabelSetT &&value)
AWS_PROMETHEUSSERVICE_API WorkspaceConfigurationDescription()=default
AWS_PROMETHEUSSERVICE_API WorkspaceConfigurationDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API WorkspaceConfigurationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceConfigurationDescription & AddLimitsPerLabelSet(LimitsPerLabelSetT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue