AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkspaceConfigurationDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/amp/model/WorkspaceConfigurationStatus.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 Aws::Vector<LimitsPerLabelSet>& GetLimitsPerLabelSet() const { return m_limitsPerLabelSet; }
49 inline bool LimitsPerLabelSetHasBeenSet() const { return m_limitsPerLabelSetHasBeenSet; }
50 template<typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
51 void SetLimitsPerLabelSet(LimitsPerLabelSetT&& value) { m_limitsPerLabelSetHasBeenSet = true; m_limitsPerLabelSet = std::forward<LimitsPerLabelSetT>(value); }
52 template<typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
53 WorkspaceConfigurationDescription& WithLimitsPerLabelSet(LimitsPerLabelSetT&& value) { SetLimitsPerLabelSet(std::forward<LimitsPerLabelSetT>(value)); return *this;}
54 template<typename LimitsPerLabelSetT = LimitsPerLabelSet>
55 WorkspaceConfigurationDescription& AddLimitsPerLabelSet(LimitsPerLabelSetT&& value) { m_limitsPerLabelSetHasBeenSet = true; m_limitsPerLabelSet.emplace_back(std::forward<LimitsPerLabelSetT>(value)); return *this; }
57
59
63 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
64 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
65 inline void SetRetentionPeriodInDays(int value) { m_retentionPeriodInDaysHasBeenSet = true; m_retentionPeriodInDays = value; }
68
70
74 inline const WorkspaceConfigurationStatus& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template<typename StatusT = WorkspaceConfigurationStatus>
77 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
78 template<typename StatusT = WorkspaceConfigurationStatus>
79 WorkspaceConfigurationDescription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
81 private:
82
83 Aws::Vector<LimitsPerLabelSet> m_limitsPerLabelSet;
84 bool m_limitsPerLabelSetHasBeenSet = false;
85
86 int m_retentionPeriodInDays{0};
87 bool m_retentionPeriodInDaysHasBeenSet = false;
88
89 WorkspaceConfigurationStatus m_status;
90 bool m_statusHasBeenSet = 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