1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/swf/SWF_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace SWF 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Provides the details of the <code>DecisionTaskStarted</code> 28 * event.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/DecisionTaskStartedEventAttributes">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_SWF_API DecisionTaskStartedEventAttributes 33 { 34 public: 35 DecisionTaskStartedEventAttributes(); 36 DecisionTaskStartedEventAttributes(Aws::Utils::Json::JsonView jsonValue); 37 DecisionTaskStartedEventAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>Identity of the decider making the request. This enables diagnostic tracing 43 * when problems arise. The form of this identity is user defined.</p> 44 */ GetIdentity()45 inline const Aws::String& GetIdentity() const{ return m_identity; } 46 47 /** 48 * <p>Identity of the decider making the request. This enables diagnostic tracing 49 * when problems arise. The form of this identity is user defined.</p> 50 */ IdentityHasBeenSet()51 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; } 52 53 /** 54 * <p>Identity of the decider making the request. This enables diagnostic tracing 55 * when problems arise. The form of this identity is user defined.</p> 56 */ SetIdentity(const Aws::String & value)57 inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; } 58 59 /** 60 * <p>Identity of the decider making the request. This enables diagnostic tracing 61 * when problems arise. The form of this identity is user defined.</p> 62 */ SetIdentity(Aws::String && value)63 inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); } 64 65 /** 66 * <p>Identity of the decider making the request. This enables diagnostic tracing 67 * when problems arise. The form of this identity is user defined.</p> 68 */ SetIdentity(const char * value)69 inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); } 70 71 /** 72 * <p>Identity of the decider making the request. This enables diagnostic tracing 73 * when problems arise. The form of this identity is user defined.</p> 74 */ WithIdentity(const Aws::String & value)75 inline DecisionTaskStartedEventAttributes& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;} 76 77 /** 78 * <p>Identity of the decider making the request. This enables diagnostic tracing 79 * when problems arise. The form of this identity is user defined.</p> 80 */ WithIdentity(Aws::String && value)81 inline DecisionTaskStartedEventAttributes& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;} 82 83 /** 84 * <p>Identity of the decider making the request. This enables diagnostic tracing 85 * when problems arise. The form of this identity is user defined.</p> 86 */ WithIdentity(const char * value)87 inline DecisionTaskStartedEventAttributes& WithIdentity(const char* value) { SetIdentity(value); return *this;} 88 89 90 /** 91 * <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when 92 * this decision task was scheduled. This information can be useful for diagnosing 93 * problems by tracing back the chain of events leading up to this event.</p> 94 */ GetScheduledEventId()95 inline long long GetScheduledEventId() const{ return m_scheduledEventId; } 96 97 /** 98 * <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when 99 * this decision task was scheduled. This information can be useful for diagnosing 100 * problems by tracing back the chain of events leading up to this event.</p> 101 */ ScheduledEventIdHasBeenSet()102 inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; } 103 104 /** 105 * <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when 106 * this decision task was scheduled. This information can be useful for diagnosing 107 * problems by tracing back the chain of events leading up to this event.</p> 108 */ SetScheduledEventId(long long value)109 inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; } 110 111 /** 112 * <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when 113 * this decision task was scheduled. This information can be useful for diagnosing 114 * problems by tracing back the chain of events leading up to this event.</p> 115 */ WithScheduledEventId(long long value)116 inline DecisionTaskStartedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;} 117 118 private: 119 120 Aws::String m_identity; 121 bool m_identityHasBeenSet; 122 123 long long m_scheduledEventId; 124 bool m_scheduledEventIdHasBeenSet; 125 }; 126 127 } // namespace Model 128 } // namespace SWF 129 } // namespace Aws 130