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/datasync/DataSync_EXPORTS.h> 8 #include <aws/datasync/DataSyncRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace DataSync 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>ListTaskExecutions</p><p><h3>See Also:</h3> <a 21 * href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutionsRequest">AWS 22 * API Reference</a></p> 23 */ 24 class AWS_DATASYNC_API ListTaskExecutionsRequest : public DataSyncRequest 25 { 26 public: 27 ListTaskExecutionsRequest(); 28 29 // Service request name is the Operation name which will send this request out, 30 // each operation should has unique request name, so that we can get operation's name from this request. 31 // Note: this is not true for response, multiple operations may have the same response name, 32 // so we can not get operation's name from response. GetServiceRequestName()33 inline virtual const char* GetServiceRequestName() const override { return "ListTaskExecutions"; } 34 35 Aws::String SerializePayload() const override; 36 37 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 38 39 40 /** 41 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 42 */ GetTaskArn()43 inline const Aws::String& GetTaskArn() const{ return m_taskArn; } 44 45 /** 46 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 47 */ TaskArnHasBeenSet()48 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; } 49 50 /** 51 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 52 */ SetTaskArn(const Aws::String & value)53 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; } 54 55 /** 56 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 57 */ SetTaskArn(Aws::String && value)58 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); } 59 60 /** 61 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 62 */ SetTaskArn(const char * value)63 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); } 64 65 /** 66 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 67 */ WithTaskArn(const Aws::String & value)68 inline ListTaskExecutionsRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} 69 70 /** 71 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 72 */ WithTaskArn(Aws::String && value)73 inline ListTaskExecutionsRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} 74 75 /** 76 * <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p> 77 */ WithTaskArn(const char * value)78 inline ListTaskExecutionsRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} 79 80 81 /** 82 * <p>The maximum number of executed tasks to list.</p> 83 */ GetMaxResults()84 inline int GetMaxResults() const{ return m_maxResults; } 85 86 /** 87 * <p>The maximum number of executed tasks to list.</p> 88 */ MaxResultsHasBeenSet()89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 90 91 /** 92 * <p>The maximum number of executed tasks to list.</p> 93 */ SetMaxResults(int value)94 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 95 96 /** 97 * <p>The maximum number of executed tasks to list.</p> 98 */ WithMaxResults(int value)99 inline ListTaskExecutionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 100 101 102 /** 103 * <p>An opaque string that indicates the position at which to begin the next list 104 * of the executed tasks.</p> 105 */ GetNextToken()106 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 107 108 /** 109 * <p>An opaque string that indicates the position at which to begin the next list 110 * of the executed tasks.</p> 111 */ NextTokenHasBeenSet()112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 113 114 /** 115 * <p>An opaque string that indicates the position at which to begin the next list 116 * of the executed tasks.</p> 117 */ SetNextToken(const Aws::String & value)118 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 119 120 /** 121 * <p>An opaque string that indicates the position at which to begin the next list 122 * of the executed tasks.</p> 123 */ SetNextToken(Aws::String && value)124 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 125 126 /** 127 * <p>An opaque string that indicates the position at which to begin the next list 128 * of the executed tasks.</p> 129 */ SetNextToken(const char * value)130 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 131 132 /** 133 * <p>An opaque string that indicates the position at which to begin the next list 134 * of the executed tasks.</p> 135 */ WithNextToken(const Aws::String & value)136 inline ListTaskExecutionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 137 138 /** 139 * <p>An opaque string that indicates the position at which to begin the next list 140 * of the executed tasks.</p> 141 */ WithNextToken(Aws::String && value)142 inline ListTaskExecutionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 143 144 /** 145 * <p>An opaque string that indicates the position at which to begin the next list 146 * of the executed tasks.</p> 147 */ WithNextToken(const char * value)148 inline ListTaskExecutionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 149 150 private: 151 152 Aws::String m_taskArn; 153 bool m_taskArnHasBeenSet; 154 155 int m_maxResults; 156 bool m_maxResultsHasBeenSet; 157 158 Aws::String m_nextToken; 159 bool m_nextTokenHasBeenSet; 160 }; 161 162 } // namespace Model 163 } // namespace DataSync 164 } // namespace Aws 165