AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
Scheduler.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pcs/PCS_EXPORTS.h>
9#include <aws/pcs/model/SchedulerType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PCS {
21namespace Model {
22
29class Scheduler {
30 public:
31 AWS_PCS_API Scheduler() = default;
32 AWS_PCS_API Scheduler(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline SchedulerType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(SchedulerType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
63 inline const Aws::String& GetVersion() const { return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 template <typename VersionT = Aws::String>
66 void SetVersion(VersionT&& value) {
67 m_versionHasBeenSet = true;
68 m_version = std::forward<VersionT>(value);
69 }
70 template <typename VersionT = Aws::String>
71 Scheduler& WithVersion(VersionT&& value) {
72 SetVersion(std::forward<VersionT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::String m_version;
80 bool m_typeHasBeenSet = false;
81 bool m_versionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace PCS
86} // namespace Aws
void SetVersion(VersionT &&value)
Definition Scheduler.h:66
Scheduler & WithVersion(VersionT &&value)
Definition Scheduler.h:71
Scheduler & WithType(SchedulerType value)
Definition Scheduler.h:46
AWS_PCS_API Scheduler & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(SchedulerType value)
Definition Scheduler.h:42
AWS_PCS_API Scheduler()=default
bool TypeHasBeenSet() const
Definition Scheduler.h:41
SchedulerType GetType() const
Definition Scheduler.h:40
bool VersionHasBeenSet() const
Definition Scheduler.h:64
AWS_PCS_API Scheduler(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVersion() const
Definition Scheduler.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue