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/ivs/IVS_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 IVS
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Error related to a specific channel, specified by its ARN.</p><p><h3>See
28    * Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/BatchError">AWS API
30    * Reference</a></p>
31    */
32   class AWS_IVS_API BatchError
33   {
34   public:
35     BatchError();
36     BatchError(Aws::Utils::Json::JsonView jsonValue);
37     BatchError& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>Channel ARN.</p>
43      */
GetArn()44     inline const Aws::String& GetArn() const{ return m_arn; }
45 
46     /**
47      * <p>Channel ARN.</p>
48      */
ArnHasBeenSet()49     inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 
51     /**
52      * <p>Channel ARN.</p>
53      */
SetArn(const Aws::String & value)54     inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
56     /**
57      * <p>Channel ARN.</p>
58      */
SetArn(Aws::String && value)59     inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 
61     /**
62      * <p>Channel ARN.</p>
63      */
SetArn(const char * value)64     inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
66     /**
67      * <p>Channel ARN.</p>
68      */
WithArn(const Aws::String & value)69     inline BatchError& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
71     /**
72      * <p>Channel ARN.</p>
73      */
WithArn(Aws::String && value)74     inline BatchError& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 
76     /**
77      * <p>Channel ARN.</p>
78      */
WithArn(const char * value)79     inline BatchError& WithArn(const char* value) { SetArn(value); return *this;}
80 
81 
82     /**
83      * <p>Error code.</p>
84      */
GetCode()85     inline const Aws::String& GetCode() const{ return m_code; }
86 
87     /**
88      * <p>Error code.</p>
89      */
CodeHasBeenSet()90     inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
91 
92     /**
93      * <p>Error code.</p>
94      */
SetCode(const Aws::String & value)95     inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
96 
97     /**
98      * <p>Error code.</p>
99      */
SetCode(Aws::String && value)100     inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
101 
102     /**
103      * <p>Error code.</p>
104      */
SetCode(const char * value)105     inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
106 
107     /**
108      * <p>Error code.</p>
109      */
WithCode(const Aws::String & value)110     inline BatchError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
111 
112     /**
113      * <p>Error code.</p>
114      */
WithCode(Aws::String && value)115     inline BatchError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
116 
117     /**
118      * <p>Error code.</p>
119      */
WithCode(const char * value)120     inline BatchError& WithCode(const char* value) { SetCode(value); return *this;}
121 
122 
123     /**
124      * <p>Error message, determined by the application.</p>
125      */
GetMessage()126     inline const Aws::String& GetMessage() const{ return m_message; }
127 
128     /**
129      * <p>Error message, determined by the application.</p>
130      */
MessageHasBeenSet()131     inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
132 
133     /**
134      * <p>Error message, determined by the application.</p>
135      */
SetMessage(const Aws::String & value)136     inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
137 
138     /**
139      * <p>Error message, determined by the application.</p>
140      */
SetMessage(Aws::String && value)141     inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
142 
143     /**
144      * <p>Error message, determined by the application.</p>
145      */
SetMessage(const char * value)146     inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
147 
148     /**
149      * <p>Error message, determined by the application.</p>
150      */
WithMessage(const Aws::String & value)151     inline BatchError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
152 
153     /**
154      * <p>Error message, determined by the application.</p>
155      */
WithMessage(Aws::String && value)156     inline BatchError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
157 
158     /**
159      * <p>Error message, determined by the application.</p>
160      */
WithMessage(const char * value)161     inline BatchError& WithMessage(const char* value) { SetMessage(value); return *this;}
162 
163   private:
164 
165     Aws::String m_arn;
166     bool m_arnHasBeenSet;
167 
168     Aws::String m_code;
169     bool m_codeHasBeenSet;
170 
171     Aws::String m_message;
172     bool m_messageHasBeenSet;
173   };
174 
175 } // namespace Model
176 } // namespace IVS
177 } // namespace Aws
178