AWS SDK for C++  0.14.3
AWS SDK for C++
WorkflowExecutionCancelRequestedEventAttributes.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/swf/SWF_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace SWF
30 {
31 namespace Model
32 {
33 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const WorkflowExecution& GetExternalWorkflowExecution() const{ return m_externalWorkflowExecution; }
50 
54  inline void SetExternalWorkflowExecution(const WorkflowExecution& value) { m_externalWorkflowExecutionHasBeenSet = true; m_externalWorkflowExecution = value; }
55 
59  inline void SetExternalWorkflowExecution(WorkflowExecution&& value) { m_externalWorkflowExecutionHasBeenSet = true; m_externalWorkflowExecution = value; }
60 
64  inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalWorkflowExecution(const WorkflowExecution& value) { SetExternalWorkflowExecution(value); return *this;}
65 
69  inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalWorkflowExecution(WorkflowExecution&& value) { SetExternalWorkflowExecution(value); return *this;}
70 
79  inline long long GetExternalInitiatedEventId() const{ return m_externalInitiatedEventId; }
80 
89  inline void SetExternalInitiatedEventId(long long value) { m_externalInitiatedEventIdHasBeenSet = true; m_externalInitiatedEventId = value; }
90 
99  inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalInitiatedEventId(long long value) { SetExternalInitiatedEventId(value); return *this;}
100 
107  inline const WorkflowExecutionCancelRequestedCause& GetCause() const{ return m_cause; }
108 
115  inline void SetCause(const WorkflowExecutionCancelRequestedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
116 
123  inline void SetCause(WorkflowExecutionCancelRequestedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
124 
132 
140 
141  private:
142  WorkflowExecution m_externalWorkflowExecution;
143  bool m_externalWorkflowExecutionHasBeenSet;
144  long long m_externalInitiatedEventId;
145  bool m_externalInitiatedEventIdHasBeenSet;
147  bool m_causeHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace SWF
152 } // namespace Aws
WorkflowExecutionCancelRequestedEventAttributes & WithCause(WorkflowExecutionCancelRequestedCause &&value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
WorkflowExecutionCancelRequestedEventAttributes & WithExternalWorkflowExecution(WorkflowExecution &&value)
WorkflowExecutionCancelRequestedEventAttributes & WithExternalWorkflowExecution(const WorkflowExecution &value)
WorkflowExecutionCancelRequestedEventAttributes & WithExternalInitiatedEventId(long long value)
WorkflowExecutionCancelRequestedEventAttributes & WithCause(const WorkflowExecutionCancelRequestedCause &value)
JSON (JavaScript Object Notation).