AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskScheduledEventDetails.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/states/model/TaskCredentials.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SFN
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SFN_API TaskScheduledEventDetails() = default;
40
41
43
46 inline const Aws::String& GetResourceType() const { return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 template<typename ResourceTypeT = Aws::String>
49 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
50 template<typename ResourceTypeT = Aws::String>
51 TaskScheduledEventDetails& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
62 template<typename ResourceT = Aws::String>
63 TaskScheduledEventDetails& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRegion() const { return m_region; }
71 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
72 template<typename RegionT = Aws::String>
73 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
74 template<typename RegionT = Aws::String>
75 TaskScheduledEventDetails& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
77
79
84 inline const Aws::String& GetParameters() const { return m_parameters; }
85 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
86 template<typename ParametersT = Aws::String>
87 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
88 template<typename ParametersT = Aws::String>
89 TaskScheduledEventDetails& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
91
93
96 inline long long GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
97 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
98 inline void SetTimeoutInSeconds(long long value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
99 inline TaskScheduledEventDetails& WithTimeoutInSeconds(long long value) { SetTimeoutInSeconds(value); return *this;}
101
103
106 inline long long GetHeartbeatInSeconds() const { return m_heartbeatInSeconds; }
107 inline bool HeartbeatInSecondsHasBeenSet() const { return m_heartbeatInSecondsHasBeenSet; }
108 inline void SetHeartbeatInSeconds(long long value) { m_heartbeatInSecondsHasBeenSet = true; m_heartbeatInSeconds = value; }
109 inline TaskScheduledEventDetails& WithHeartbeatInSeconds(long long value) { SetHeartbeatInSeconds(value); return *this;}
111
113
116 inline const TaskCredentials& GetTaskCredentials() const { return m_taskCredentials; }
117 inline bool TaskCredentialsHasBeenSet() const { return m_taskCredentialsHasBeenSet; }
118 template<typename TaskCredentialsT = TaskCredentials>
119 void SetTaskCredentials(TaskCredentialsT&& value) { m_taskCredentialsHasBeenSet = true; m_taskCredentials = std::forward<TaskCredentialsT>(value); }
120 template<typename TaskCredentialsT = TaskCredentials>
121 TaskScheduledEventDetails& WithTaskCredentials(TaskCredentialsT&& value) { SetTaskCredentials(std::forward<TaskCredentialsT>(value)); return *this;}
123 private:
124
125 Aws::String m_resourceType;
126 bool m_resourceTypeHasBeenSet = false;
127
128 Aws::String m_resource;
129 bool m_resourceHasBeenSet = false;
130
131 Aws::String m_region;
132 bool m_regionHasBeenSet = false;
133
134 Aws::String m_parameters;
135 bool m_parametersHasBeenSet = false;
136
137 long long m_timeoutInSeconds{0};
138 bool m_timeoutInSecondsHasBeenSet = false;
139
140 long long m_heartbeatInSeconds{0};
141 bool m_heartbeatInSecondsHasBeenSet = false;
142
143 TaskCredentials m_taskCredentials;
144 bool m_taskCredentialsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SFN
149} // 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