197 lines
7.7 KiB
C++
197 lines
7.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/swf/SWF_EXPORTS.h>
|
|
#include <aws/swf/model/ActivityTaskTimeoutType.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SWF
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides the details of the <code>ActivityTaskTimedOut</code>
|
|
* event.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/ActivityTaskTimedOutEventAttributes">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SWF_API ActivityTaskTimedOutEventAttributes
|
|
{
|
|
public:
|
|
ActivityTaskTimedOutEventAttributes();
|
|
ActivityTaskTimedOutEventAttributes(Aws::Utils::Json::JsonView jsonValue);
|
|
ActivityTaskTimedOutEventAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline const ActivityTaskTimeoutType& GetTimeoutType() const{ return m_timeoutType; }
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline bool TimeoutTypeHasBeenSet() const { return m_timeoutTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline void SetTimeoutType(const ActivityTaskTimeoutType& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; }
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline void SetTimeoutType(ActivityTaskTimeoutType&& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(const ActivityTaskTimeoutType& value) { SetTimeoutType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The type of the timeout that caused this event.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(ActivityTaskTimeoutType&& value) { SetTimeoutType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when
|
|
* this activity task was scheduled. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline long long GetScheduledEventId() const{ return m_scheduledEventId; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when
|
|
* this activity task was scheduled. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when
|
|
* this activity task was scheduled. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when
|
|
* this activity task was scheduled. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this
|
|
* activity task was started. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline long long GetStartedEventId() const{ return m_startedEventId; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this
|
|
* activity task was started. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this
|
|
* activity task was started. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this
|
|
* activity task was started. This information can be useful for diagnosing
|
|
* problems by tracing back the chain of events leading up to this event.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetDetails() const{ return m_details; }
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Contains the content of the <code>details</code> parameter for the last call
|
|
* made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p>
|
|
*/
|
|
inline ActivityTaskTimedOutEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;}
|
|
|
|
private:
|
|
|
|
ActivityTaskTimeoutType m_timeoutType;
|
|
bool m_timeoutTypeHasBeenSet;
|
|
|
|
long long m_scheduledEventId;
|
|
bool m_scheduledEventIdHasBeenSet;
|
|
|
|
long long m_startedEventId;
|
|
bool m_startedEventIdHasBeenSet;
|
|
|
|
Aws::String m_details;
|
|
bool m_detailsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SWF
|
|
} // namespace Aws
|