AWS SDK for C++  1.8.95
AWS SDK for C++
CreateMonitoringScheduleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "CreateMonitoringSchedule"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetMonitoringScheduleName() const{ return m_monitoringScheduleName; }
45 
50  inline bool MonitoringScheduleNameHasBeenSet() const { return m_monitoringScheduleNameHasBeenSet; }
51 
56  inline void SetMonitoringScheduleName(const Aws::String& value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName = value; }
57 
62  inline void SetMonitoringScheduleName(Aws::String&& value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName = std::move(value); }
63 
68  inline void SetMonitoringScheduleName(const char* value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName.assign(value); }
69 
74  inline CreateMonitoringScheduleRequest& WithMonitoringScheduleName(const Aws::String& value) { SetMonitoringScheduleName(value); return *this;}
75 
80  inline CreateMonitoringScheduleRequest& WithMonitoringScheduleName(Aws::String&& value) { SetMonitoringScheduleName(std::move(value)); return *this;}
81 
86  inline CreateMonitoringScheduleRequest& WithMonitoringScheduleName(const char* value) { SetMonitoringScheduleName(value); return *this;}
87 
88 
93  inline const MonitoringScheduleConfig& GetMonitoringScheduleConfig() const{ return m_monitoringScheduleConfig; }
94 
99  inline bool MonitoringScheduleConfigHasBeenSet() const { return m_monitoringScheduleConfigHasBeenSet; }
100 
105  inline void SetMonitoringScheduleConfig(const MonitoringScheduleConfig& value) { m_monitoringScheduleConfigHasBeenSet = true; m_monitoringScheduleConfig = value; }
106 
111  inline void SetMonitoringScheduleConfig(MonitoringScheduleConfig&& value) { m_monitoringScheduleConfigHasBeenSet = true; m_monitoringScheduleConfig = std::move(value); }
112 
117  inline CreateMonitoringScheduleRequest& WithMonitoringScheduleConfig(const MonitoringScheduleConfig& value) { SetMonitoringScheduleConfig(value); return *this;}
118 
123  inline CreateMonitoringScheduleRequest& WithMonitoringScheduleConfig(MonitoringScheduleConfig&& value) { SetMonitoringScheduleConfig(std::move(value)); return *this;}
124 
125 
132  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
133 
140  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 
148  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
149 
156  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
157 
164  inline CreateMonitoringScheduleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
165 
172  inline CreateMonitoringScheduleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
173 
180  inline CreateMonitoringScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
181 
188  inline CreateMonitoringScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
189 
190  private:
191 
192  Aws::String m_monitoringScheduleName;
193  bool m_monitoringScheduleNameHasBeenSet;
194 
195  MonitoringScheduleConfig m_monitoringScheduleConfig;
196  bool m_monitoringScheduleConfigHasBeenSet;
197 
198  Aws::Vector<Tag> m_tags;
199  bool m_tagsHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace SageMaker
204 } // namespace Aws
#define AWS_SAGEMAKER_API
void SetMonitoringScheduleConfig(const MonitoringScheduleConfig &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateMonitoringScheduleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateMonitoringScheduleRequest & WithMonitoringScheduleName(const Aws::String &value)
CreateMonitoringScheduleRequest & WithMonitoringScheduleName(Aws::String &&value)
CreateMonitoringScheduleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateMonitoringScheduleRequest & WithMonitoringScheduleName(const char *value)
const MonitoringScheduleConfig & GetMonitoringScheduleConfig() const
CreateMonitoringScheduleRequest & WithMonitoringScheduleConfig(const MonitoringScheduleConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMonitoringScheduleRequest & AddTags(const Tag &value)
CreateMonitoringScheduleRequest & WithMonitoringScheduleConfig(MonitoringScheduleConfig &&value)