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/pinpoint/Pinpoint_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 Pinpoint
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Provides information about an API request or response.</p><p><h3>See
28    * Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PayloadTooLargeException">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API PayloadTooLargeException
33   {
34   public:
35     PayloadTooLargeException();
36     PayloadTooLargeException(Aws::Utils::Json::JsonView jsonValue);
37     PayloadTooLargeException& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The message that's returned from the API.</p>
43      */
GetMessage()44     inline const Aws::String& GetMessage() const{ return m_message; }
45 
46     /**
47      * <p>The message that's returned from the API.</p>
48      */
MessageHasBeenSet()49     inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 
51     /**
52      * <p>The message that's returned from the API.</p>
53      */
SetMessage(const Aws::String & value)54     inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
55 
56     /**
57      * <p>The message that's returned from the API.</p>
58      */
SetMessage(Aws::String && value)59     inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
60 
61     /**
62      * <p>The message that's returned from the API.</p>
63      */
SetMessage(const char * value)64     inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 
66     /**
67      * <p>The message that's returned from the API.</p>
68      */
WithMessage(const Aws::String & value)69     inline PayloadTooLargeException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
70 
71     /**
72      * <p>The message that's returned from the API.</p>
73      */
WithMessage(Aws::String && value)74     inline PayloadTooLargeException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
75 
76     /**
77      * <p>The message that's returned from the API.</p>
78      */
WithMessage(const char * value)79     inline PayloadTooLargeException& WithMessage(const char* value) { SetMessage(value); return *this;}
80 
81 
82     /**
83      * <p>The unique identifier for the request or response.</p>
84      */
GetRequestID()85     inline const Aws::String& GetRequestID() const{ return m_requestID; }
86 
87     /**
88      * <p>The unique identifier for the request or response.</p>
89      */
RequestIDHasBeenSet()90     inline bool RequestIDHasBeenSet() const { return m_requestIDHasBeenSet; }
91 
92     /**
93      * <p>The unique identifier for the request or response.</p>
94      */
SetRequestID(const Aws::String & value)95     inline void SetRequestID(const Aws::String& value) { m_requestIDHasBeenSet = true; m_requestID = value; }
96 
97     /**
98      * <p>The unique identifier for the request or response.</p>
99      */
SetRequestID(Aws::String && value)100     inline void SetRequestID(Aws::String&& value) { m_requestIDHasBeenSet = true; m_requestID = std::move(value); }
101 
102     /**
103      * <p>The unique identifier for the request or response.</p>
104      */
SetRequestID(const char * value)105     inline void SetRequestID(const char* value) { m_requestIDHasBeenSet = true; m_requestID.assign(value); }
106 
107     /**
108      * <p>The unique identifier for the request or response.</p>
109      */
WithRequestID(const Aws::String & value)110     inline PayloadTooLargeException& WithRequestID(const Aws::String& value) { SetRequestID(value); return *this;}
111 
112     /**
113      * <p>The unique identifier for the request or response.</p>
114      */
WithRequestID(Aws::String && value)115     inline PayloadTooLargeException& WithRequestID(Aws::String&& value) { SetRequestID(std::move(value)); return *this;}
116 
117     /**
118      * <p>The unique identifier for the request or response.</p>
119      */
WithRequestID(const char * value)120     inline PayloadTooLargeException& WithRequestID(const char* value) { SetRequestID(value); return *this;}
121 
122   private:
123 
124     Aws::String m_message;
125     bool m_messageHasBeenSet;
126 
127     Aws::String m_requestID;
128     bool m_requestIDHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace Pinpoint
133 } // namespace Aws
134