/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about a task scheduled during an execution.See
* Also:
AWS
* API Reference
The service name of the resource in a task state.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The service name of the resource in a task state.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The service name of the resource in a task state.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The service name of the resource in a task state.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The service name of the resource in a task state.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The service name of the resource in a task state.
*/ inline TaskScheduledEventDetails& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The service name of the resource in a task state.
*/ inline TaskScheduledEventDetails& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The service name of the resource in a task state.
*/ inline TaskScheduledEventDetails& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *The action of the resource called by a task state.
*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *The action of the resource called by a task state.
*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *The action of the resource called by a task state.
*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *The action of the resource called by a task state.
*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *The action of the resource called by a task state.
*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *The action of the resource called by a task state.
*/ inline TaskScheduledEventDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *The action of the resource called by a task state.
*/ inline TaskScheduledEventDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *The action of the resource called by a task state.
*/ inline TaskScheduledEventDetails& WithResource(const char* value) { SetResource(value); return *this;} /** *The region of the scheduled task
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The region of the scheduled task
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The region of the scheduled task
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The region of the scheduled task
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The region of the scheduled task
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The region of the scheduled task
*/ inline TaskScheduledEventDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The region of the scheduled task
*/ inline TaskScheduledEventDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The region of the scheduled task
*/ inline TaskScheduledEventDetails& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline const Aws::String& GetParameters() const{ return m_parameters; } /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); } /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline TaskScheduledEventDetails& WithParameters(const Aws::String& value) { SetParameters(value); return *this;} /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline TaskScheduledEventDetails& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;} /** *The JSON data passed to the resource referenced in a task state. Length * constraints apply to the payload size, and are expressed as bytes in UTF-8 * encoding.
*/ inline TaskScheduledEventDetails& WithParameters(const char* value) { SetParameters(value); return *this;} /** *The maximum allowed duration of the task.
*/ inline long long GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } /** *The maximum allowed duration of the task.
*/ inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } /** *The maximum allowed duration of the task.
*/ inline void SetTimeoutInSeconds(long long value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } /** *The maximum allowed duration of the task.
*/ inline TaskScheduledEventDetails& WithTimeoutInSeconds(long long value) { SetTimeoutInSeconds(value); return *this;} /** *The maximum allowed duration between two heartbeats for the task.
*/ inline long long GetHeartbeatInSeconds() const{ return m_heartbeatInSeconds; } /** *The maximum allowed duration between two heartbeats for the task.
*/ inline bool HeartbeatInSecondsHasBeenSet() const { return m_heartbeatInSecondsHasBeenSet; } /** *The maximum allowed duration between two heartbeats for the task.
*/ inline void SetHeartbeatInSeconds(long long value) { m_heartbeatInSecondsHasBeenSet = true; m_heartbeatInSeconds = value; } /** *The maximum allowed duration between two heartbeats for the task.
*/ inline TaskScheduledEventDetails& WithHeartbeatInSeconds(long long value) { SetHeartbeatInSeconds(value); return *this;} /** *The credentials that Step Functions uses for the task.
*/ inline const TaskCredentials& GetTaskCredentials() const{ return m_taskCredentials; } /** *The credentials that Step Functions uses for the task.
*/ inline bool TaskCredentialsHasBeenSet() const { return m_taskCredentialsHasBeenSet; } /** *The credentials that Step Functions uses for the task.
*/ inline void SetTaskCredentials(const TaskCredentials& value) { m_taskCredentialsHasBeenSet = true; m_taskCredentials = value; } /** *The credentials that Step Functions uses for the task.
*/ inline void SetTaskCredentials(TaskCredentials&& value) { m_taskCredentialsHasBeenSet = true; m_taskCredentials = std::move(value); } /** *The credentials that Step Functions uses for the task.
*/ inline TaskScheduledEventDetails& WithTaskCredentials(const TaskCredentials& value) { SetTaskCredentials(value); return *this;} /** *The credentials that Step Functions uses for the task.
*/ inline TaskScheduledEventDetails& WithTaskCredentials(TaskCredentials&& value) { SetTaskCredentials(std::move(value)); return *this;} private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_parameters; bool m_parametersHasBeenSet = false; long long m_timeoutInSeconds; bool m_timeoutInSecondsHasBeenSet = false; long long m_heartbeatInSeconds; bool m_heartbeatInSecondsHasBeenSet = false; TaskCredentials m_taskCredentials; bool m_taskCredentialsHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws