AWS SDK for C++  1.9.104
AWS SDK for C++
InternalServerErrorException.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 GuardDuty
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetMessage() const{ return m_message; }
44 
48  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 
53  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
54 
58  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
59 
63  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 
68  inline InternalServerErrorException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
69 
73  inline InternalServerErrorException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
74 
78  inline InternalServerErrorException& WithMessage(const char* value) { SetMessage(value); return *this;}
79 
80 
84  inline const Aws::String& GetType() const{ return m_type; }
85 
89  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 
94  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
95 
99  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
100 
104  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
105 
109  inline InternalServerErrorException& WithType(const Aws::String& value) { SetType(value); return *this;}
110 
114  inline InternalServerErrorException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
115 
119  inline InternalServerErrorException& WithType(const char* value) { SetType(value); return *this;}
120 
121  private:
122 
123  Aws::String m_message;
124  bool m_messageHasBeenSet;
125 
126  Aws::String m_type;
127  bool m_typeHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace GuardDuty
132 } // namespace Aws
Aws::GuardDuty::Model::InternalServerErrorException::SetType
void SetType(const char *value)
Definition: InternalServerErrorException.h:104
Aws::GuardDuty::Model::InternalServerErrorException::WithType
InternalServerErrorException & WithType(const char *value)
Definition: InternalServerErrorException.h:119
Aws::GuardDuty::Model::InternalServerErrorException::SetType
void SetType(Aws::String &&value)
Definition: InternalServerErrorException.h:99
Aws::GuardDuty::Model::InternalServerErrorException
Definition: InternalServerErrorException.h:32
Aws::GuardDuty::Model::InternalServerErrorException::WithMessage
InternalServerErrorException & WithMessage(Aws::String &&value)
Definition: InternalServerErrorException.h:73
Aws::GuardDuty::Model::InternalServerErrorException::SetMessage
void SetMessage(const char *value)
Definition: InternalServerErrorException.h:63
Aws::GuardDuty::Model::InternalServerErrorException::GetMessage
const Aws::String & GetMessage() const
Definition: InternalServerErrorException.h:43
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::InternalServerErrorException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InternalServerErrorException.h:48
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::InternalServerErrorException::WithType
InternalServerErrorException & WithType(Aws::String &&value)
Definition: InternalServerErrorException.h:114
Aws::GuardDuty::Model::InternalServerErrorException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::InternalServerErrorException::WithMessage
InternalServerErrorException & WithMessage(const Aws::String &value)
Definition: InternalServerErrorException.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::InternalServerErrorException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InternalServerErrorException.h:89
Aws::GuardDuty::Model::InternalServerErrorException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InternalServerErrorException.h:58
Aws::GuardDuty::Model::InternalServerErrorException::SetType
void SetType(const Aws::String &value)
Definition: InternalServerErrorException.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::InternalServerErrorException::InternalServerErrorException
InternalServerErrorException()
Aws::GuardDuty::Model::InternalServerErrorException::WithType
InternalServerErrorException & WithType(const Aws::String &value)
Definition: InternalServerErrorException.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::InternalServerErrorException::WithMessage
InternalServerErrorException & WithMessage(const char *value)
Definition: InternalServerErrorException.h:78
Aws::GuardDuty::Model::InternalServerErrorException::operator=
InternalServerErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::InternalServerErrorException::InternalServerErrorException
InternalServerErrorException(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::InternalServerErrorException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InternalServerErrorException.h:53
Aws::GuardDuty::Model::InternalServerErrorException::GetType
const Aws::String & GetType() const
Definition: InternalServerErrorException.h:84