AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
14
15namespace Aws
16{
17namespace ApplicationSignals
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPLICATIONSIGNALS_API UpdateServiceLevelObjectiveRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceLevelObjective"; }
34
35 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetId() const{ return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
46 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
47 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
48 inline UpdateServiceLevelObjectiveRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
49 inline UpdateServiceLevelObjectiveRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
50 inline UpdateServiceLevelObjectiveRequest& WithId(const char* value) { SetId(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline UpdateServiceLevelObjectiveRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline UpdateServiceLevelObjectiveRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const ServiceLevelIndicatorConfig& GetSliConfig() const{ return m_sliConfig; }
73 inline bool SliConfigHasBeenSet() const { return m_sliConfigHasBeenSet; }
74 inline void SetSliConfig(const ServiceLevelIndicatorConfig& value) { m_sliConfigHasBeenSet = true; m_sliConfig = value; }
75 inline void SetSliConfig(ServiceLevelIndicatorConfig&& value) { m_sliConfigHasBeenSet = true; m_sliConfig = std::move(value); }
79
81
87 inline const RequestBasedServiceLevelIndicatorConfig& GetRequestBasedSliConfig() const{ return m_requestBasedSliConfig; }
88 inline bool RequestBasedSliConfigHasBeenSet() const { return m_requestBasedSliConfigHasBeenSet; }
89 inline void SetRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig& value) { m_requestBasedSliConfigHasBeenSet = true; m_requestBasedSliConfig = value; }
90 inline void SetRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig&& value) { m_requestBasedSliConfigHasBeenSet = true; m_requestBasedSliConfig = std::move(value); }
94
96
100 inline const Goal& GetGoal() const{ return m_goal; }
101 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
102 inline void SetGoal(const Goal& value) { m_goalHasBeenSet = true; m_goal = value; }
103 inline void SetGoal(Goal&& value) { m_goalHasBeenSet = true; m_goal = std::move(value); }
104 inline UpdateServiceLevelObjectiveRequest& WithGoal(const Goal& value) { SetGoal(value); return *this;}
105 inline UpdateServiceLevelObjectiveRequest& WithGoal(Goal&& value) { SetGoal(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_id;
110 bool m_idHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 ServiceLevelIndicatorConfig m_sliConfig;
116 bool m_sliConfigHasBeenSet = false;
117
118 RequestBasedServiceLevelIndicatorConfig m_requestBasedSliConfig;
119 bool m_requestBasedSliConfigHasBeenSet = false;
120
121 Goal m_goal;
122 bool m_goalHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ApplicationSignals
127} // namespace Aws
UpdateServiceLevelObjectiveRequest & WithRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig &value)
void SetRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig &&value)
UpdateServiceLevelObjectiveRequest & WithId(const Aws::String &value)
UpdateServiceLevelObjectiveRequest & WithDescription(Aws::String &&value)
UpdateServiceLevelObjectiveRequest & WithDescription(const char *value)
UpdateServiceLevelObjectiveRequest & WithSliConfig(const ServiceLevelIndicatorConfig &value)
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
const RequestBasedServiceLevelIndicatorConfig & GetRequestBasedSliConfig() const
UpdateServiceLevelObjectiveRequest & WithRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig &&value)
UpdateServiceLevelObjectiveRequest & WithSliConfig(ServiceLevelIndicatorConfig &&value)
void SetRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig &value)
UpdateServiceLevelObjectiveRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String