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/swf/SWFRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/swf/model/WorkflowExecution.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace SWF 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_SWF_API DescribeWorkflowExecutionRequest : public SWFRequest 23 { 24 public: 25 DescribeWorkflowExecutionRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "DescribeWorkflowExecution"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The name of the domain containing the workflow execution.</p> 40 */ GetDomain()41 inline const Aws::String& GetDomain() const{ return m_domain; } 42 43 /** 44 * <p>The name of the domain containing the workflow execution.</p> 45 */ DomainHasBeenSet()46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } 47 48 /** 49 * <p>The name of the domain containing the workflow execution.</p> 50 */ SetDomain(const Aws::String & value)51 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } 52 53 /** 54 * <p>The name of the domain containing the workflow execution.</p> 55 */ SetDomain(Aws::String && value)56 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } 57 58 /** 59 * <p>The name of the domain containing the workflow execution.</p> 60 */ SetDomain(const char * value)61 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } 62 63 /** 64 * <p>The name of the domain containing the workflow execution.</p> 65 */ WithDomain(const Aws::String & value)66 inline DescribeWorkflowExecutionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} 67 68 /** 69 * <p>The name of the domain containing the workflow execution.</p> 70 */ WithDomain(Aws::String && value)71 inline DescribeWorkflowExecutionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} 72 73 /** 74 * <p>The name of the domain containing the workflow execution.</p> 75 */ WithDomain(const char * value)76 inline DescribeWorkflowExecutionRequest& WithDomain(const char* value) { SetDomain(value); return *this;} 77 78 79 /** 80 * <p>The workflow execution to describe.</p> 81 */ GetExecution()82 inline const WorkflowExecution& GetExecution() const{ return m_execution; } 83 84 /** 85 * <p>The workflow execution to describe.</p> 86 */ ExecutionHasBeenSet()87 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; } 88 89 /** 90 * <p>The workflow execution to describe.</p> 91 */ SetExecution(const WorkflowExecution & value)92 inline void SetExecution(const WorkflowExecution& value) { m_executionHasBeenSet = true; m_execution = value; } 93 94 /** 95 * <p>The workflow execution to describe.</p> 96 */ SetExecution(WorkflowExecution && value)97 inline void SetExecution(WorkflowExecution&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); } 98 99 /** 100 * <p>The workflow execution to describe.</p> 101 */ WithExecution(const WorkflowExecution & value)102 inline DescribeWorkflowExecutionRequest& WithExecution(const WorkflowExecution& value) { SetExecution(value); return *this;} 103 104 /** 105 * <p>The workflow execution to describe.</p> 106 */ WithExecution(WorkflowExecution && value)107 inline DescribeWorkflowExecutionRequest& WithExecution(WorkflowExecution&& value) { SetExecution(std::move(value)); return *this;} 108 109 private: 110 111 Aws::String m_domain; 112 bool m_domainHasBeenSet; 113 114 WorkflowExecution m_execution; 115 bool m_executionHasBeenSet; 116 }; 117 118 } // namespace Model 119 } // namespace SWF 120 } // namespace Aws 121