AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkerScheduleResult.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/deadline/model/DesiredWorkerStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/deadline/model/AssignedSession.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace deadline
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DEADLINE_API UpdateWorkerScheduleResult();
37
38
40
43 inline const Aws::Map<Aws::String, AssignedSession>& GetAssignedSessions() const{ return m_assignedSessions; }
44 inline void SetAssignedSessions(const Aws::Map<Aws::String, AssignedSession>& value) { m_assignedSessions = value; }
45 inline void SetAssignedSessions(Aws::Map<Aws::String, AssignedSession>&& value) { m_assignedSessions = std::move(value); }
48 inline UpdateWorkerScheduleResult& AddAssignedSessions(const Aws::String& key, const AssignedSession& value) { m_assignedSessions.emplace(key, value); return *this; }
49 inline UpdateWorkerScheduleResult& AddAssignedSessions(Aws::String&& key, const AssignedSession& value) { m_assignedSessions.emplace(std::move(key), value); return *this; }
50 inline UpdateWorkerScheduleResult& AddAssignedSessions(const Aws::String& key, AssignedSession&& value) { m_assignedSessions.emplace(key, std::move(value)); return *this; }
51 inline UpdateWorkerScheduleResult& AddAssignedSessions(Aws::String&& key, AssignedSession&& value) { m_assignedSessions.emplace(std::move(key), std::move(value)); return *this; }
52 inline UpdateWorkerScheduleResult& AddAssignedSessions(const char* key, AssignedSession&& value) { m_assignedSessions.emplace(key, std::move(value)); return *this; }
53 inline UpdateWorkerScheduleResult& AddAssignedSessions(const char* key, const AssignedSession& value) { m_assignedSessions.emplace(key, value); return *this; }
55
57
60 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetCancelSessionActions() const{ return m_cancelSessionActions; }
61 inline void SetCancelSessionActions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_cancelSessionActions = value; }
62 inline void SetCancelSessionActions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_cancelSessionActions = std::move(value); }
65 inline UpdateWorkerScheduleResult& AddCancelSessionActions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_cancelSessionActions.emplace(key, value); return *this; }
66 inline UpdateWorkerScheduleResult& AddCancelSessionActions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_cancelSessionActions.emplace(std::move(key), value); return *this; }
67 inline UpdateWorkerScheduleResult& AddCancelSessionActions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_cancelSessionActions.emplace(key, std::move(value)); return *this; }
68 inline UpdateWorkerScheduleResult& AddCancelSessionActions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_cancelSessionActions.emplace(std::move(key), std::move(value)); return *this; }
69 inline UpdateWorkerScheduleResult& AddCancelSessionActions(const char* key, Aws::Vector<Aws::String>&& value) { m_cancelSessionActions.emplace(key, std::move(value)); return *this; }
70 inline UpdateWorkerScheduleResult& AddCancelSessionActions(const char* key, const Aws::Vector<Aws::String>& value) { m_cancelSessionActions.emplace(key, value); return *this; }
72
74
77 inline const DesiredWorkerStatus& GetDesiredWorkerStatus() const{ return m_desiredWorkerStatus; }
78 inline void SetDesiredWorkerStatus(const DesiredWorkerStatus& value) { m_desiredWorkerStatus = value; }
79 inline void SetDesiredWorkerStatus(DesiredWorkerStatus&& value) { m_desiredWorkerStatus = std::move(value); }
83
85
88 inline int GetUpdateIntervalSeconds() const{ return m_updateIntervalSeconds; }
89 inline void SetUpdateIntervalSeconds(int value) { m_updateIntervalSeconds = value; }
92
94
95 inline const Aws::String& GetRequestId() const{ return m_requestId; }
96 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
97 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
98 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
99 inline UpdateWorkerScheduleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
100 inline UpdateWorkerScheduleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
101 inline UpdateWorkerScheduleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
103 private:
104
106
108
109 DesiredWorkerStatus m_desiredWorkerStatus;
110
111 int m_updateIntervalSeconds;
112
113 Aws::String m_requestId;
114 };
115
116} // namespace Model
117} // namespace deadline
118} // namespace Aws
void SetCancelSessionActions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
AWS_DEADLINE_API UpdateWorkerScheduleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAssignedSessions(Aws::Map< Aws::String, AssignedSession > &&value)
UpdateWorkerScheduleResult & AddCancelSessionActions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
AWS_DEADLINE_API UpdateWorkerScheduleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateWorkerScheduleResult & WithAssignedSessions(Aws::Map< Aws::String, AssignedSession > &&value)
UpdateWorkerScheduleResult & WithRequestId(Aws::String &&value)
UpdateWorkerScheduleResult & AddAssignedSessions(const char *key, AssignedSession &&value)
UpdateWorkerScheduleResult & AddAssignedSessions(Aws::String &&key, const AssignedSession &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetCancelSessionActions() const
UpdateWorkerScheduleResult & AddCancelSessionActions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
void SetDesiredWorkerStatus(const DesiredWorkerStatus &value)
UpdateWorkerScheduleResult & AddAssignedSessions(const char *key, const AssignedSession &value)
UpdateWorkerScheduleResult & AddAssignedSessions(const Aws::String &key, const AssignedSession &value)
const DesiredWorkerStatus & GetDesiredWorkerStatus() const
UpdateWorkerScheduleResult & WithDesiredWorkerStatus(DesiredWorkerStatus &&value)
UpdateWorkerScheduleResult & WithDesiredWorkerStatus(const DesiredWorkerStatus &value)
UpdateWorkerScheduleResult & WithUpdateIntervalSeconds(int value)
UpdateWorkerScheduleResult & AddAssignedSessions(const Aws::String &key, AssignedSession &&value)
const Aws::Map< Aws::String, AssignedSession > & GetAssignedSessions() const
UpdateWorkerScheduleResult & AddCancelSessionActions(const char *key, const Aws::Vector< Aws::String > &value)
UpdateWorkerScheduleResult & WithCancelSessionActions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
UpdateWorkerScheduleResult & WithAssignedSessions(const Aws::Map< Aws::String, AssignedSession > &value)
UpdateWorkerScheduleResult & AddCancelSessionActions(const char *key, Aws::Vector< Aws::String > &&value)
UpdateWorkerScheduleResult & AddAssignedSessions(Aws::String &&key, AssignedSession &&value)
void SetCancelSessionActions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
UpdateWorkerScheduleResult & WithRequestId(const Aws::String &value)
UpdateWorkerScheduleResult & AddCancelSessionActions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetAssignedSessions(const Aws::Map< Aws::String, AssignedSession > &value)
UpdateWorkerScheduleResult & WithCancelSessionActions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
UpdateWorkerScheduleResult & AddCancelSessionActions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
UpdateWorkerScheduleResult & WithRequestId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue