AWS SDK for C++  1.9.108
AWS SDK for C++
ValidationExceptionField.h
Go to the documentation of this file.
1 
6 #pragma once
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 GreengrassV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ValidationExceptionField& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ValidationExceptionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline ValidationExceptionField& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetMessage() const{ return m_message; }
86 
90  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 
95  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
96 
100  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
101 
105  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
106 
110  inline ValidationExceptionField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
111 
115  inline ValidationExceptionField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
120  inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;}
121 
122  private:
123 
124  Aws::String m_name;
125  bool m_nameHasBeenSet;
126 
127  Aws::String m_message;
128  bool m_messageHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GreengrassV2
133 } // namespace Aws
Aws::GreengrassV2::Model::ValidationExceptionField::WithMessage
ValidationExceptionField & WithMessage(const Aws::String &value)
Definition: ValidationExceptionField.h:110
Aws::GreengrassV2::Model::ValidationExceptionField::GetName
const Aws::String & GetName() const
Definition: ValidationExceptionField.h:44
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ValidationExceptionField::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::ValidationExceptionField::SetMessage
void SetMessage(const Aws::String &value)
Definition: ValidationExceptionField.h:95
Aws::GreengrassV2::Model::ValidationExceptionField::SetMessage
void SetMessage(const char *value)
Definition: ValidationExceptionField.h:105
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ValidationExceptionField::SetName
void SetName(const char *value)
Definition: ValidationExceptionField.h:64
Aws::GreengrassV2::Model::ValidationExceptionField::SetMessage
void SetMessage(Aws::String &&value)
Definition: ValidationExceptionField.h:100
Aws::GreengrassV2::Model::ValidationExceptionField::ValidationExceptionField
ValidationExceptionField()
Aws::GreengrassV2::Model::ValidationExceptionField::ValidationExceptionField
ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ValidationExceptionField
Definition: ValidationExceptionField.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ValidationExceptionField::WithMessage
ValidationExceptionField & WithMessage(const char *value)
Definition: ValidationExceptionField.h:120
Aws::GreengrassV2::Model::ValidationExceptionField::SetName
void SetName(const Aws::String &value)
Definition: ValidationExceptionField.h:54
Aws::GreengrassV2::Model::ValidationExceptionField::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ValidationExceptionField.h:49
Aws::GreengrassV2::Model::ValidationExceptionField::SetName
void SetName(Aws::String &&value)
Definition: ValidationExceptionField.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ValidationExceptionField::operator=
ValidationExceptionField & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ValidationExceptionField::WithName
ValidationExceptionField & WithName(const char *value)
Definition: ValidationExceptionField.h:79
Aws::GreengrassV2::Model::ValidationExceptionField::WithName
ValidationExceptionField & WithName(const Aws::String &value)
Definition: ValidationExceptionField.h:69
Aws::GreengrassV2::Model::ValidationExceptionField::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ValidationExceptionField.h:90
Aws::GreengrassV2::Model::ValidationExceptionField::WithName
ValidationExceptionField & WithName(Aws::String &&value)
Definition: ValidationExceptionField.h:74
Aws::GreengrassV2::Model::ValidationExceptionField::WithMessage
ValidationExceptionField & WithMessage(Aws::String &&value)
Definition: ValidationExceptionField.h:115
Aws::GreengrassV2::Model::ValidationExceptionField::GetMessage
const Aws::String & GetMessage() const
Definition: ValidationExceptionField.h:85