AWS SDK for C++  0.12.9
AWS SDK for C++
SeverityLevel.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace Support
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  SeverityLevel();
42  SeverityLevel& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::String& GetCode() const{ return m_code; }
51 
57  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
58 
64  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
65 
71  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
72 
78  inline SeverityLevel& WithCode(const Aws::String& value) { SetCode(value); return *this;}
79 
85  inline SeverityLevel& WithCode(Aws::String&& value) { SetCode(value); return *this;}
86 
92  inline SeverityLevel& WithCode(const char* value) { SetCode(value); return *this;}
93 
98  inline const Aws::String& GetName() const{ return m_name; }
99 
104  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
105 
110  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
111 
116  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
117 
122  inline SeverityLevel& WithName(const Aws::String& value) { SetName(value); return *this;}
123 
128  inline SeverityLevel& WithName(Aws::String&& value) { SetName(value); return *this;}
129 
134  inline SeverityLevel& WithName(const char* value) { SetName(value); return *this;}
135 
136  private:
137  Aws::String m_code;
138  bool m_codeHasBeenSet;
139  Aws::String m_name;
140  bool m_nameHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace Support
145 } // namespace Aws
SeverityLevel & WithCode(const Aws::String &value)
Definition: SeverityLevel.h:78
SeverityLevel & WithCode(Aws::String &&value)
Definition: SeverityLevel.h:85
const Aws::String & GetName() const
Definition: SeverityLevel.h:98
SeverityLevel & WithName(const Aws::String &value)
SeverityLevel & WithName(const char *value)
SeverityLevel & WithName(Aws::String &&value)
void SetName(Aws::String &&value)
#define AWS_SUPPORT_API
void SetName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetCode() const
Definition: SeverityLevel.h:50
void SetCode(const Aws::String &value)
Definition: SeverityLevel.h:57
void SetCode(Aws::String &&value)
Definition: SeverityLevel.h:64
void SetCode(const char *value)
Definition: SeverityLevel.h:71
void SetName(const Aws::String &value)
JSON (JavaScript Object Notation).
SeverityLevel & WithCode(const char *value)
Definition: SeverityLevel.h:92