AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
UpdateServiceLevelObjectiveRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignalsRequest.h>
8#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
9#include <aws/application-signals/model/BurnRateConfiguration.h>
10#include <aws/application-signals/model/Goal.h>
11#include <aws/application-signals/model/RequestBasedServiceLevelIndicatorConfig.h>
12#include <aws/application-signals/model/ServiceLevelIndicatorConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ApplicationSignals {
20namespace Model {
21
25 public:
26 AWS_APPLICATIONSIGNALS_API UpdateServiceLevelObjectiveRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceLevelObjective"; }
33
34 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const ServiceLevelIndicatorConfig& GetSliConfig() const { return m_sliConfig; }
79 inline bool SliConfigHasBeenSet() const { return m_sliConfigHasBeenSet; }
80 template <typename SliConfigT = ServiceLevelIndicatorConfig>
81 void SetSliConfig(SliConfigT&& value) {
82 m_sliConfigHasBeenSet = true;
83 m_sliConfig = std::forward<SliConfigT>(value);
84 }
85 template <typename SliConfigT = ServiceLevelIndicatorConfig>
87 SetSliConfig(std::forward<SliConfigT>(value));
88 return *this;
89 }
91
93
99 inline const RequestBasedServiceLevelIndicatorConfig& GetRequestBasedSliConfig() const { return m_requestBasedSliConfig; }
100 inline bool RequestBasedSliConfigHasBeenSet() const { return m_requestBasedSliConfigHasBeenSet; }
101 template <typename RequestBasedSliConfigT = RequestBasedServiceLevelIndicatorConfig>
102 void SetRequestBasedSliConfig(RequestBasedSliConfigT&& value) {
103 m_requestBasedSliConfigHasBeenSet = true;
104 m_requestBasedSliConfig = std::forward<RequestBasedSliConfigT>(value);
105 }
106 template <typename RequestBasedSliConfigT = RequestBasedServiceLevelIndicatorConfig>
108 SetRequestBasedSliConfig(std::forward<RequestBasedSliConfigT>(value));
109 return *this;
110 }
112
114
118 inline const Goal& GetGoal() const { return m_goal; }
119 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
120 template <typename GoalT = Goal>
121 void SetGoal(GoalT&& value) {
122 m_goalHasBeenSet = true;
123 m_goal = std::forward<GoalT>(value);
124 }
125 template <typename GoalT = Goal>
127 SetGoal(std::forward<GoalT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::Vector<BurnRateConfiguration>& GetBurnRateConfigurations() const { return m_burnRateConfigurations; }
139 inline bool BurnRateConfigurationsHasBeenSet() const { return m_burnRateConfigurationsHasBeenSet; }
140 template <typename BurnRateConfigurationsT = Aws::Vector<BurnRateConfiguration>>
141 void SetBurnRateConfigurations(BurnRateConfigurationsT&& value) {
142 m_burnRateConfigurationsHasBeenSet = true;
143 m_burnRateConfigurations = std::forward<BurnRateConfigurationsT>(value);
144 }
145 template <typename BurnRateConfigurationsT = Aws::Vector<BurnRateConfiguration>>
147 SetBurnRateConfigurations(std::forward<BurnRateConfigurationsT>(value));
148 return *this;
149 }
150 template <typename BurnRateConfigurationsT = BurnRateConfiguration>
152 m_burnRateConfigurationsHasBeenSet = true;
153 m_burnRateConfigurations.emplace_back(std::forward<BurnRateConfigurationsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_id;
159 bool m_idHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 ServiceLevelIndicatorConfig m_sliConfig;
165 bool m_sliConfigHasBeenSet = false;
166
167 RequestBasedServiceLevelIndicatorConfig m_requestBasedSliConfig;
168 bool m_requestBasedSliConfigHasBeenSet = false;
169
170 Goal m_goal;
171 bool m_goalHasBeenSet = false;
172
173 Aws::Vector<BurnRateConfiguration> m_burnRateConfigurations;
174 bool m_burnRateConfigurationsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace ApplicationSignals
179} // namespace Aws
AWS_APPLICATIONSIGNALS_API UpdateServiceLevelObjectiveRequest()=default
UpdateServiceLevelObjectiveRequest & WithBurnRateConfigurations(BurnRateConfigurationsT &&value)
UpdateServiceLevelObjectiveRequest & AddBurnRateConfigurations(BurnRateConfigurationsT &&value)
UpdateServiceLevelObjectiveRequest & WithRequestBasedSliConfig(RequestBasedSliConfigT &&value)
UpdateServiceLevelObjectiveRequest & WithDescription(DescriptionT &&value)
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
const RequestBasedServiceLevelIndicatorConfig & GetRequestBasedSliConfig() const
UpdateServiceLevelObjectiveRequest & WithSliConfig(SliConfigT &&value)
const Aws::Vector< BurnRateConfiguration > & GetBurnRateConfigurations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector