AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TaskScheduledEventDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/states/SFN_EXPORTS.h>
9#include <aws/states/model/TaskCredentials.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SFN {
21namespace Model {
22
30 public:
31 AWS_SFN_API TaskScheduledEventDetails() = default;
35
37
40 inline const Aws::String& GetResourceType() const { return m_resourceType; }
41 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
42 template <typename ResourceTypeT = Aws::String>
43 void SetResourceType(ResourceTypeT&& value) {
44 m_resourceTypeHasBeenSet = true;
45 m_resourceType = std::forward<ResourceTypeT>(value);
46 }
47 template <typename ResourceTypeT = Aws::String>
49 SetResourceType(std::forward<ResourceTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResource() const { return m_resource; }
59 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
60 template <typename ResourceT = Aws::String>
61 void SetResource(ResourceT&& value) {
62 m_resourceHasBeenSet = true;
63 m_resource = std::forward<ResourceT>(value);
64 }
65 template <typename ResourceT = Aws::String>
67 SetResource(std::forward<ResourceT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template <typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) {
80 m_regionHasBeenSet = true;
81 m_region = std::forward<RegionT>(value);
82 }
83 template <typename RegionT = Aws::String>
85 SetRegion(std::forward<RegionT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetParameters() const { return m_parameters; }
97 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
98 template <typename ParametersT = Aws::String>
99 void SetParameters(ParametersT&& value) {
100 m_parametersHasBeenSet = true;
101 m_parameters = std::forward<ParametersT>(value);
102 }
103 template <typename ParametersT = Aws::String>
105 SetParameters(std::forward<ParametersT>(value));
106 return *this;
107 }
109
111
114 inline long long GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
115 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
116 inline void SetTimeoutInSeconds(long long value) {
117 m_timeoutInSecondsHasBeenSet = true;
118 m_timeoutInSeconds = value;
119 }
121 SetTimeoutInSeconds(value);
122 return *this;
123 }
125
127
130 inline long long GetHeartbeatInSeconds() const { return m_heartbeatInSeconds; }
131 inline bool HeartbeatInSecondsHasBeenSet() const { return m_heartbeatInSecondsHasBeenSet; }
132 inline void SetHeartbeatInSeconds(long long value) {
133 m_heartbeatInSecondsHasBeenSet = true;
134 m_heartbeatInSeconds = value;
135 }
138 return *this;
139 }
141
143
146 inline const TaskCredentials& GetTaskCredentials() const { return m_taskCredentials; }
147 inline bool TaskCredentialsHasBeenSet() const { return m_taskCredentialsHasBeenSet; }
148 template <typename TaskCredentialsT = TaskCredentials>
149 void SetTaskCredentials(TaskCredentialsT&& value) {
150 m_taskCredentialsHasBeenSet = true;
151 m_taskCredentials = std::forward<TaskCredentialsT>(value);
152 }
153 template <typename TaskCredentialsT = TaskCredentials>
155 SetTaskCredentials(std::forward<TaskCredentialsT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_resourceType;
161
162 Aws::String m_resource;
163
164 Aws::String m_region;
165
166 Aws::String m_parameters;
167
168 long long m_timeoutInSeconds{0};
169
170 long long m_heartbeatInSeconds{0};
171
172 TaskCredentials m_taskCredentials;
173 bool m_resourceTypeHasBeenSet = false;
174 bool m_resourceHasBeenSet = false;
175 bool m_regionHasBeenSet = false;
176 bool m_parametersHasBeenSet = false;
177 bool m_timeoutInSecondsHasBeenSet = false;
178 bool m_heartbeatInSecondsHasBeenSet = false;
179 bool m_taskCredentialsHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace SFN
184} // namespace Aws
TaskScheduledEventDetails & WithResource(ResourceT &&value)
TaskScheduledEventDetails & WithParameters(ParametersT &&value)
TaskScheduledEventDetails & WithHeartbeatInSeconds(long long value)
TaskScheduledEventDetails & WithResourceType(ResourceTypeT &&value)
TaskScheduledEventDetails & WithRegion(RegionT &&value)
TaskScheduledEventDetails & WithTaskCredentials(TaskCredentialsT &&value)
TaskScheduledEventDetails & WithTimeoutInSeconds(long long value)
AWS_SFN_API TaskScheduledEventDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SFN_API TaskScheduledEventDetails()=default
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API TaskScheduledEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue