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/ssm/SSM_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 SSM
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The inventory item size has exceeded the size limit.</p><p><h3>See Also:</h3>
28    * <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ItemSizeLimitExceededException">AWS
30    * API Reference</a></p>
31    */
32   class AWS_SSM_API ItemSizeLimitExceededException
33   {
34   public:
35     ItemSizeLimitExceededException();
36     ItemSizeLimitExceededException(Aws::Utils::Json::JsonView jsonValue);
37     ItemSizeLimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41 
GetTypeName()42     inline const Aws::String& GetTypeName() const{ return m_typeName; }
43 
44 
TypeNameHasBeenSet()45     inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
46 
47 
SetTypeName(const Aws::String & value)48     inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
49 
50 
SetTypeName(Aws::String && value)51     inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
52 
53 
SetTypeName(const char * value)54     inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
55 
56 
WithTypeName(const Aws::String & value)57     inline ItemSizeLimitExceededException& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
58 
59 
WithTypeName(Aws::String && value)60     inline ItemSizeLimitExceededException& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
61 
62 
WithTypeName(const char * value)63     inline ItemSizeLimitExceededException& WithTypeName(const char* value) { SetTypeName(value); return *this;}
64 
65 
66 
GetMessage()67     inline const Aws::String& GetMessage() const{ return m_message; }
68 
69 
MessageHasBeenSet()70     inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 
72 
SetMessage(const Aws::String & value)73     inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 
75 
SetMessage(Aws::String && value)76     inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
77 
78 
SetMessage(const char * value)79     inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 
81 
WithMessage(const Aws::String & value)82     inline ItemSizeLimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 
84 
WithMessage(Aws::String && value)85     inline ItemSizeLimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 
87 
WithMessage(const char * value)88     inline ItemSizeLimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
89 
90   private:
91 
92     Aws::String m_typeName;
93     bool m_typeNameHasBeenSet;
94 
95     Aws::String m_message;
96     bool m_messageHasBeenSet;
97   };
98 
99 } // namespace Model
100 } // namespace SSM
101 } // namespace Aws
102