AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
WorkspaceConfigurationDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/WorkspaceConfigurationStatus.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/amp/model/LimitsPerLabelSet.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PROMETHEUSSERVICE_API WorkspaceConfigurationDescription() = default;
40 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const WorkspaceConfigurationStatus& GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 template<typename StatusT = WorkspaceConfigurationStatus>
51 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
52 template<typename StatusT = WorkspaceConfigurationStatus>
53 WorkspaceConfigurationDescription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
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) { m_limitsPerLabelSetHasBeenSet = true; m_limitsPerLabelSet = std::forward<LimitsPerLabelSetT>(value); }
65 template<typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
66 WorkspaceConfigurationDescription& WithLimitsPerLabelSet(LimitsPerLabelSetT&& value) { SetLimitsPerLabelSet(std::forward<LimitsPerLabelSetT>(value)); return *this;}
67 template<typename LimitsPerLabelSetT = LimitsPerLabelSet>
68 WorkspaceConfigurationDescription& AddLimitsPerLabelSet(LimitsPerLabelSetT&& value) { m_limitsPerLabelSetHasBeenSet = true; m_limitsPerLabelSet.emplace_back(std::forward<LimitsPerLabelSetT>(value)); return *this; }
70
72
76 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
77 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
78 inline void SetRetentionPeriodInDays(int value) { m_retentionPeriodInDaysHasBeenSet = true; m_retentionPeriodInDays = value; }
81 private:
82
84 bool m_statusHasBeenSet = false;
85
86 Aws::Vector<LimitsPerLabelSet> m_limitsPerLabelSet;
87 bool m_limitsPerLabelSetHasBeenSet = false;
88
89 int m_retentionPeriodInDays{0};
90 bool m_retentionPeriodInDaysHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace PrometheusService
95} // 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