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/frauddetector/FraudDetector_EXPORTS.h> 8 #include <aws/frauddetector/FraudDetectorRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace FraudDetector 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_FRAUDDETECTOR_API DescribeDetectorRequest : public FraudDetectorRequest 22 { 23 public: 24 DescribeDetectorRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "DescribeDetector"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The detector ID.</p> 39 */ GetDetectorId()40 inline const Aws::String& GetDetectorId() const{ return m_detectorId; } 41 42 /** 43 * <p>The detector ID.</p> 44 */ DetectorIdHasBeenSet()45 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } 46 47 /** 48 * <p>The detector ID.</p> 49 */ SetDetectorId(const Aws::String & value)50 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } 51 52 /** 53 * <p>The detector ID.</p> 54 */ SetDetectorId(Aws::String && value)55 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } 56 57 /** 58 * <p>The detector ID.</p> 59 */ SetDetectorId(const char * value)60 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } 61 62 /** 63 * <p>The detector ID.</p> 64 */ WithDetectorId(const Aws::String & value)65 inline DescribeDetectorRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} 66 67 /** 68 * <p>The detector ID.</p> 69 */ WithDetectorId(Aws::String && value)70 inline DescribeDetectorRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} 71 72 /** 73 * <p>The detector ID.</p> 74 */ WithDetectorId(const char * value)75 inline DescribeDetectorRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} 76 77 78 /** 79 * <p>The next token from the previous response.</p> 80 */ GetNextToken()81 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 82 83 /** 84 * <p>The next token from the previous response.</p> 85 */ NextTokenHasBeenSet()86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 87 88 /** 89 * <p>The next token from the previous response.</p> 90 */ SetNextToken(const Aws::String & value)91 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 92 93 /** 94 * <p>The next token from the previous response.</p> 95 */ SetNextToken(Aws::String && value)96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 97 98 /** 99 * <p>The next token from the previous response.</p> 100 */ SetNextToken(const char * value)101 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 102 103 /** 104 * <p>The next token from the previous response.</p> 105 */ WithNextToken(const Aws::String & value)106 inline DescribeDetectorRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 107 108 /** 109 * <p>The next token from the previous response.</p> 110 */ WithNextToken(Aws::String && value)111 inline DescribeDetectorRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 112 113 /** 114 * <p>The next token from the previous response.</p> 115 */ WithNextToken(const char * value)116 inline DescribeDetectorRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 117 118 119 /** 120 * <p>The maximum number of results to return for the request.</p> 121 */ GetMaxResults()122 inline int GetMaxResults() const{ return m_maxResults; } 123 124 /** 125 * <p>The maximum number of results to return for the request.</p> 126 */ MaxResultsHasBeenSet()127 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 128 129 /** 130 * <p>The maximum number of results to return for the request.</p> 131 */ SetMaxResults(int value)132 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 133 134 /** 135 * <p>The maximum number of results to return for the request.</p> 136 */ WithMaxResults(int value)137 inline DescribeDetectorRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 138 139 private: 140 141 Aws::String m_detectorId; 142 bool m_detectorIdHasBeenSet; 143 144 Aws::String m_nextToken; 145 bool m_nextTokenHasBeenSet; 146 147 int m_maxResults; 148 bool m_maxResultsHasBeenSet; 149 }; 150 151 } // namespace Model 152 } // namespace FraudDetector 153 } // namespace Aws 154