AWS SDK for C++

AWS SDK for C++ Version 1.11.836

Loading...
Searching...
No Matches
UpdateWorkspaceConfigurationRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/amp/model/LimitsPerLabelSet.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PrometheusService {
18namespace Model {
19
23 public:
24 AWS_PROMETHEUSSERVICE_API UpdateWorkspaceConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspaceConfiguration"; }
31
32 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
33
35
41 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
42 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
43 template <typename WorkspaceIdT = Aws::String>
44 void SetWorkspaceId(WorkspaceIdT&& value) {
45 m_workspaceIdHasBeenSet = true;
46 m_workspaceId = std::forward<WorkspaceIdT>(value);
47 }
48 template <typename WorkspaceIdT = Aws::String>
50 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template <typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) {
64 m_clientTokenHasBeenSet = true;
65 m_clientToken = std::forward<ClientTokenT>(value);
66 }
67 template <typename ClientTokenT = Aws::String>
69 SetClientToken(std::forward<ClientTokenT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<LimitsPerLabelSet>& GetLimitsPerLabelSet() const { return m_limitsPerLabelSet; }
81 inline bool LimitsPerLabelSetHasBeenSet() const { return m_limitsPerLabelSetHasBeenSet; }
82 template <typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
83 void SetLimitsPerLabelSet(LimitsPerLabelSetT&& value) {
84 m_limitsPerLabelSetHasBeenSet = true;
85 m_limitsPerLabelSet = std::forward<LimitsPerLabelSetT>(value);
86 }
87 template <typename LimitsPerLabelSetT = Aws::Vector<LimitsPerLabelSet>>
89 SetLimitsPerLabelSet(std::forward<LimitsPerLabelSetT>(value));
90 return *this;
91 }
92 template <typename LimitsPerLabelSetT = LimitsPerLabelSet>
94 m_limitsPerLabelSetHasBeenSet = true;
95 m_limitsPerLabelSet.emplace_back(std::forward<LimitsPerLabelSetT>(value));
96 return *this;
97 }
99
101
104 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
105 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
106 inline void SetRetentionPeriodInDays(int value) {
107 m_retentionPeriodInDaysHasBeenSet = true;
108 m_retentionPeriodInDays = value;
109 }
112 return *this;
113 }
115
117
121 inline int GetOutOfOrderTimeWindowInSeconds() const { return m_outOfOrderTimeWindowInSeconds; }
122 inline bool OutOfOrderTimeWindowInSecondsHasBeenSet() const { return m_outOfOrderTimeWindowInSecondsHasBeenSet; }
123 inline void SetOutOfOrderTimeWindowInSeconds(int value) {
124 m_outOfOrderTimeWindowInSecondsHasBeenSet = true;
125 m_outOfOrderTimeWindowInSeconds = value;
126 }
129 return *this;
130 }
132
134
138 inline int GetRuleQueryOffsetInSeconds() const { return m_ruleQueryOffsetInSeconds; }
139 inline bool RuleQueryOffsetInSecondsHasBeenSet() const { return m_ruleQueryOffsetInSecondsHasBeenSet; }
140 inline void SetRuleQueryOffsetInSeconds(int value) {
141 m_ruleQueryOffsetInSecondsHasBeenSet = true;
142 m_ruleQueryOffsetInSeconds = value;
143 }
146 return *this;
147 }
149 private:
150 Aws::String m_workspaceId;
151
153
154 Aws::Vector<LimitsPerLabelSet> m_limitsPerLabelSet;
155
156 int m_retentionPeriodInDays{0};
157
158 int m_outOfOrderTimeWindowInSeconds{0};
159
160 int m_ruleQueryOffsetInSeconds{0};
161 bool m_workspaceIdHasBeenSet = false;
162 bool m_clientTokenHasBeenSet = true;
163 bool m_limitsPerLabelSetHasBeenSet = false;
164 bool m_retentionPeriodInDaysHasBeenSet = false;
165 bool m_outOfOrderTimeWindowInSecondsHasBeenSet = false;
166 bool m_ruleQueryOffsetInSecondsHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace PrometheusService
171} // namespace Aws
AWS_PROMETHEUSSERVICE_API UpdateWorkspaceConfigurationRequest()=default
UpdateWorkspaceConfigurationRequest & WithClientToken(ClientTokenT &&value)
UpdateWorkspaceConfigurationRequest & AddLimitsPerLabelSet(LimitsPerLabelSetT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
UpdateWorkspaceConfigurationRequest & WithWorkspaceId(WorkspaceIdT &&value)
UpdateWorkspaceConfigurationRequest & WithLimitsPerLabelSet(LimitsPerLabelSetT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector