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/machinelearning/MachineLearning_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 MachineLearning 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>A second request to use or change an object was not allowed. This can result 28 * from retrying a request using a parameter that was not present in the original 29 * request.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/machinelearning-2014-12-12/IdempotentParameterMismatchException">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_MACHINELEARNING_API IdempotentParameterMismatchException 34 { 35 public: 36 IdempotentParameterMismatchException(); 37 IdempotentParameterMismatchException(Aws::Utils::Json::JsonView jsonValue); 38 IdempotentParameterMismatchException& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 GetMessage()43 inline const Aws::String& GetMessage() const{ return m_message; } 44 45 MessageHasBeenSet()46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 47 48 SetMessage(const Aws::String & value)49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 50 51 SetMessage(Aws::String && value)52 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 53 54 SetMessage(const char * value)55 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 56 57 WithMessage(const Aws::String & value)58 inline IdempotentParameterMismatchException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 59 60 WithMessage(Aws::String && value)61 inline IdempotentParameterMismatchException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 62 63 WithMessage(const char * value)64 inline IdempotentParameterMismatchException& WithMessage(const char* value) { SetMessage(value); return *this;} 65 66 67 GetCode()68 inline int GetCode() const{ return m_code; } 69 70 CodeHasBeenSet()71 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } 72 73 SetCode(int value)74 inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; } 75 76 WithCode(int value)77 inline IdempotentParameterMismatchException& WithCode(int value) { SetCode(value); return *this;} 78 79 private: 80 81 Aws::String m_message; 82 bool m_messageHasBeenSet; 83 84 int m_code; 85 bool m_codeHasBeenSet; 86 }; 87 88 } // namespace Model 89 } // namespace MachineLearning 90 } // namespace Aws 91