AWS SDK for C++  1.8.152
AWS SDK for C++
InvalidParameterException.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 DirectoryService
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline InvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline InvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline InvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
65 
66  inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 
68 
69  inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
70 
71 
72  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
73 
74 
75  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
76 
77 
78  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
79 
80 
81  inline InvalidParameterException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 
83 
84  inline InvalidParameterException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 
86 
87  inline InvalidParameterException& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 
89  private:
90 
91  Aws::String m_message;
92  bool m_messageHasBeenSet;
93 
94  Aws::String m_requestId;
95  bool m_requestIdHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace DirectoryService
100 } // namespace Aws
Aws::DirectoryService::Model::InvalidParameterException::WithRequestId
InvalidParameterException & WithRequestId(const Aws::String &value)
Definition: InvalidParameterException.h:81
Aws::DirectoryService::Model::InvalidParameterException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidParameterException.h:47
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::InvalidParameterException::SetRequestId
void SetRequestId(const char *value)
Definition: InvalidParameterException.h:78
Aws::DirectoryService::Model::InvalidParameterException::operator=
InvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::InvalidParameterException::RequestIdHasBeenSet
bool RequestIdHasBeenSet() const
Definition: InvalidParameterException.h:69
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::InvalidParameterException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidParameterException.h:44
Aws::DirectoryService::Model::InvalidParameterException::SetMessage
void SetMessage(const char *value)
Definition: InvalidParameterException.h:53
Aws::DirectoryService::Model::InvalidParameterException::WithMessage
InvalidParameterException & WithMessage(Aws::String &&value)
Definition: InvalidParameterException.h:59
Aws::DirectoryService::Model::InvalidParameterException
Definition: InvalidParameterException.h:32
Aws::DirectoryService::Model::InvalidParameterException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::InvalidParameterException::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: InvalidParameterException.h:72
Aws::DirectoryService::Model::InvalidParameterException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidParameterException.h:50
Aws::DirectoryService::Model::InvalidParameterException::WithMessage
InvalidParameterException & WithMessage(const char *value)
Definition: InvalidParameterException.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::DirectoryService::Model::InvalidParameterException::WithMessage
InvalidParameterException & WithMessage(const Aws::String &value)
Definition: InvalidParameterException.h:56
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::InvalidParameterException::WithRequestId
InvalidParameterException & WithRequestId(Aws::String &&value)
Definition: InvalidParameterException.h:84
Aws::DirectoryService::Model::InvalidParameterException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidParameterException.h:41
Aws::DirectoryService::Model::InvalidParameterException::WithRequestId
InvalidParameterException & WithRequestId(const char *value)
Definition: InvalidParameterException.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::InvalidParameterException::InvalidParameterException
InvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::InvalidParameterException::InvalidParameterException
InvalidParameterException()
Aws::DirectoryService::Model::InvalidParameterException::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: InvalidParameterException.h:75
Aws::DirectoryService::Model::InvalidParameterException::GetRequestId
const Aws::String & GetRequestId() const
Definition: InvalidParameterException.h:66