AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceLevelObjectiveRequest.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/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ApplicationSignals
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_APPLICATIONSIGNALS_API CreateServiceLevelObjectiveRequest();
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 "CreateServiceLevelObjective"; }
36
37 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateServiceLevelObjectiveRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateServiceLevelObjectiveRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateServiceLevelObjectiveRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateServiceLevelObjectiveRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateServiceLevelObjectiveRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
75 inline const ServiceLevelIndicatorConfig& GetSliConfig() const{ return m_sliConfig; }
76 inline bool SliConfigHasBeenSet() const { return m_sliConfigHasBeenSet; }
77 inline void SetSliConfig(const ServiceLevelIndicatorConfig& value) { m_sliConfigHasBeenSet = true; m_sliConfig = value; }
78 inline void SetSliConfig(ServiceLevelIndicatorConfig&& value) { m_sliConfigHasBeenSet = true; m_sliConfig = std::move(value); }
82
84
90 inline const RequestBasedServiceLevelIndicatorConfig& GetRequestBasedSliConfig() const{ return m_requestBasedSliConfig; }
91 inline bool RequestBasedSliConfigHasBeenSet() const { return m_requestBasedSliConfigHasBeenSet; }
92 inline void SetRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig& value) { m_requestBasedSliConfigHasBeenSet = true; m_requestBasedSliConfig = value; }
93 inline void SetRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig&& value) { m_requestBasedSliConfigHasBeenSet = true; m_requestBasedSliConfig = std::move(value); }
97
99
103 inline const Goal& GetGoal() const{ return m_goal; }
104 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
105 inline void SetGoal(const Goal& value) { m_goalHasBeenSet = true; m_goal = value; }
106 inline void SetGoal(Goal&& value) { m_goalHasBeenSet = true; m_goal = std::move(value); }
107 inline CreateServiceLevelObjectiveRequest& WithGoal(const Goal& value) { SetGoal(value); return *this;}
108 inline CreateServiceLevelObjectiveRequest& WithGoal(Goal&& value) { SetGoal(std::move(value)); return *this;}
110
112
120 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CreateServiceLevelObjectiveRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
125 inline CreateServiceLevelObjectiveRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateServiceLevelObjectiveRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 inline CreateServiceLevelObjectiveRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 ServiceLevelIndicatorConfig m_sliConfig;
138 bool m_sliConfigHasBeenSet = false;
139
140 RequestBasedServiceLevelIndicatorConfig m_requestBasedSliConfig;
141 bool m_requestBasedSliConfigHasBeenSet = false;
142
143 Goal m_goal;
144 bool m_goalHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ApplicationSignals
152} // namespace Aws
CreateServiceLevelObjectiveRequest & WithDescription(const Aws::String &value)
void SetRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig &&value)
CreateServiceLevelObjectiveRequest & WithSliConfig(ServiceLevelIndicatorConfig &&value)
CreateServiceLevelObjectiveRequest & WithRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig &value)
CreateServiceLevelObjectiveRequest & WithRequestBasedSliConfig(RequestBasedServiceLevelIndicatorConfig &&value)
CreateServiceLevelObjectiveRequest & WithName(Aws::String &&value)
CreateServiceLevelObjectiveRequest & WithDescription(const char *value)
CreateServiceLevelObjectiveRequest & WithSliConfig(const ServiceLevelIndicatorConfig &value)
CreateServiceLevelObjectiveRequest & WithDescription(Aws::String &&value)
CreateServiceLevelObjectiveRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceLevelObjectiveRequest & WithTags(const Aws::Vector< Tag > &value)
void SetRequestBasedSliConfig(const RequestBasedServiceLevelIndicatorConfig &value)
CreateServiceLevelObjectiveRequest & WithName(const Aws::String &value)
const RequestBasedServiceLevelIndicatorConfig & GetRequestBasedSliConfig() const
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector