AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateServiceLevelObjectiveRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/ApplicationSignalsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-signals/model/ServiceLevelIndicatorConfig.h>
11#include <aws/application-signals/model/RequestBasedServiceLevelIndicatorConfig.h>
12#include <aws/application-signals/model/Goal.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/application-signals/model/BurnRateConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ApplicationSignals
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_APPLICATIONSIGNALS_API UpdateServiceLevelObjectiveRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceLevelObjective"; }
36
37 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 UpdateServiceLevelObjectiveRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 UpdateServiceLevelObjectiveRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline const ServiceLevelIndicatorConfig& GetSliConfig() const { return m_sliConfig; }
71 inline bool SliConfigHasBeenSet() const { return m_sliConfigHasBeenSet; }
72 template<typename SliConfigT = ServiceLevelIndicatorConfig>
73 void SetSliConfig(SliConfigT&& value) { m_sliConfigHasBeenSet = true; m_sliConfig = std::forward<SliConfigT>(value); }
74 template<typename SliConfigT = ServiceLevelIndicatorConfig>
75 UpdateServiceLevelObjectiveRequest& WithSliConfig(SliConfigT&& value) { SetSliConfig(std::forward<SliConfigT>(value)); return *this;}
77
79
85 inline const RequestBasedServiceLevelIndicatorConfig& GetRequestBasedSliConfig() const { return m_requestBasedSliConfig; }
86 inline bool RequestBasedSliConfigHasBeenSet() const { return m_requestBasedSliConfigHasBeenSet; }
87 template<typename RequestBasedSliConfigT = RequestBasedServiceLevelIndicatorConfig>
88 void SetRequestBasedSliConfig(RequestBasedSliConfigT&& value) { m_requestBasedSliConfigHasBeenSet = true; m_requestBasedSliConfig = std::forward<RequestBasedSliConfigT>(value); }
89 template<typename RequestBasedSliConfigT = RequestBasedServiceLevelIndicatorConfig>
90 UpdateServiceLevelObjectiveRequest& WithRequestBasedSliConfig(RequestBasedSliConfigT&& value) { SetRequestBasedSliConfig(std::forward<RequestBasedSliConfigT>(value)); return *this;}
92
94
98 inline const Goal& GetGoal() const { return m_goal; }
99 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
100 template<typename GoalT = Goal>
101 void SetGoal(GoalT&& value) { m_goalHasBeenSet = true; m_goal = std::forward<GoalT>(value); }
102 template<typename GoalT = Goal>
103 UpdateServiceLevelObjectiveRequest& WithGoal(GoalT&& value) { SetGoal(std::forward<GoalT>(value)); return *this;}
105
107
112 inline const Aws::Vector<BurnRateConfiguration>& GetBurnRateConfigurations() const { return m_burnRateConfigurations; }
113 inline bool BurnRateConfigurationsHasBeenSet() const { return m_burnRateConfigurationsHasBeenSet; }
114 template<typename BurnRateConfigurationsT = Aws::Vector<BurnRateConfiguration>>
115 void SetBurnRateConfigurations(BurnRateConfigurationsT&& value) { m_burnRateConfigurationsHasBeenSet = true; m_burnRateConfigurations = std::forward<BurnRateConfigurationsT>(value); }
116 template<typename BurnRateConfigurationsT = Aws::Vector<BurnRateConfiguration>>
117 UpdateServiceLevelObjectiveRequest& WithBurnRateConfigurations(BurnRateConfigurationsT&& value) { SetBurnRateConfigurations(std::forward<BurnRateConfigurationsT>(value)); return *this;}
118 template<typename BurnRateConfigurationsT = BurnRateConfiguration>
119 UpdateServiceLevelObjectiveRequest& AddBurnRateConfigurations(BurnRateConfigurationsT&& value) { m_burnRateConfigurationsHasBeenSet = true; m_burnRateConfigurations.emplace_back(std::forward<BurnRateConfigurationsT>(value)); return *this; }
121 private:
122
123 Aws::String m_id;
124 bool m_idHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 ServiceLevelIndicatorConfig m_sliConfig;
130 bool m_sliConfigHasBeenSet = false;
131
132 RequestBasedServiceLevelIndicatorConfig m_requestBasedSliConfig;
133 bool m_requestBasedSliConfigHasBeenSet = false;
134
135 Goal m_goal;
136 bool m_goalHasBeenSet = false;
137
138 Aws::Vector<BurnRateConfiguration> m_burnRateConfigurations;
139 bool m_burnRateConfigurationsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ApplicationSignals
144} // 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