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/networkmanager/NetworkManager_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 NetworkManager 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Describes a validation exception for a field.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ValidationExceptionField">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_NETWORKMANAGER_API ValidationExceptionField 32 { 33 public: 34 ValidationExceptionField(); 35 ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue); 36 ValidationExceptionField& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The name of the field.</p> 42 */ GetName()43 inline const Aws::String& GetName() const{ return m_name; } 44 45 /** 46 * <p>The name of the field.</p> 47 */ NameHasBeenSet()48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 49 50 /** 51 * <p>The name of the field.</p> 52 */ SetName(const Aws::String & value)53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 54 55 /** 56 * <p>The name of the field.</p> 57 */ SetName(Aws::String && value)58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 59 60 /** 61 * <p>The name of the field.</p> 62 */ SetName(const char * value)63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 64 65 /** 66 * <p>The name of the field.</p> 67 */ WithName(const Aws::String & value)68 inline ValidationExceptionField& WithName(const Aws::String& value) { SetName(value); return *this;} 69 70 /** 71 * <p>The name of the field.</p> 72 */ WithName(Aws::String && value)73 inline ValidationExceptionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 74 75 /** 76 * <p>The name of the field.</p> 77 */ WithName(const char * value)78 inline ValidationExceptionField& WithName(const char* value) { SetName(value); return *this;} 79 80 81 /** 82 * <p>The message for the field.</p> 83 */ GetMessage()84 inline const Aws::String& GetMessage() const{ return m_message; } 85 86 /** 87 * <p>The message for the field.</p> 88 */ MessageHasBeenSet()89 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 90 91 /** 92 * <p>The message for the field.</p> 93 */ SetMessage(const Aws::String & value)94 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 95 96 /** 97 * <p>The message for the field.</p> 98 */ SetMessage(Aws::String && value)99 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 100 101 /** 102 * <p>The message for the field.</p> 103 */ SetMessage(const char * value)104 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 105 106 /** 107 * <p>The message for the field.</p> 108 */ WithMessage(const Aws::String & value)109 inline ValidationExceptionField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 110 111 /** 112 * <p>The message for the field.</p> 113 */ WithMessage(Aws::String && value)114 inline ValidationExceptionField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 115 116 /** 117 * <p>The message for the field.</p> 118 */ WithMessage(const char * value)119 inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;} 120 121 private: 122 123 Aws::String m_name; 124 bool m_nameHasBeenSet; 125 126 Aws::String m_message; 127 bool m_messageHasBeenSet; 128 }; 129 130 } // namespace Model 131 } // namespace NetworkManager 132 } // namespace Aws 133