AWS SDK for C++  0.12.9
AWS SDK for C++
Diagnostics.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodeDeploy
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Diagnostics();
42  Diagnostics(const Aws::Utils::Json::JsonValue& jsonValue);
43  Diagnostics& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
55  inline const LifecycleErrorCode& GetErrorCode() const{ return m_errorCode; }
56 
66  inline void SetErrorCode(const LifecycleErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
67 
77  inline void SetErrorCode(LifecycleErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
78 
88  inline Diagnostics& WithErrorCode(const LifecycleErrorCode& value) { SetErrorCode(value); return *this;}
89 
99  inline Diagnostics& WithErrorCode(LifecycleErrorCode&& value) { SetErrorCode(value); return *this;}
100 
104  inline const Aws::String& GetScriptName() const{ return m_scriptName; }
105 
109  inline void SetScriptName(const Aws::String& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; }
110 
114  inline void SetScriptName(Aws::String&& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; }
115 
119  inline void SetScriptName(const char* value) { m_scriptNameHasBeenSet = true; m_scriptName.assign(value); }
120 
124  inline Diagnostics& WithScriptName(const Aws::String& value) { SetScriptName(value); return *this;}
125 
129  inline Diagnostics& WithScriptName(Aws::String&& value) { SetScriptName(value); return *this;}
130 
134  inline Diagnostics& WithScriptName(const char* value) { SetScriptName(value); return *this;}
135 
139  inline const Aws::String& GetMessage() const{ return m_message; }
140 
144  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
145 
149  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
150 
154  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
155 
159  inline Diagnostics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
160 
164  inline Diagnostics& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
165 
169  inline Diagnostics& WithMessage(const char* value) { SetMessage(value); return *this;}
170 
175  inline const Aws::String& GetLogTail() const{ return m_logTail; }
176 
181  inline void SetLogTail(const Aws::String& value) { m_logTailHasBeenSet = true; m_logTail = value; }
182 
187  inline void SetLogTail(Aws::String&& value) { m_logTailHasBeenSet = true; m_logTail = value; }
188 
193  inline void SetLogTail(const char* value) { m_logTailHasBeenSet = true; m_logTail.assign(value); }
194 
199  inline Diagnostics& WithLogTail(const Aws::String& value) { SetLogTail(value); return *this;}
200 
205  inline Diagnostics& WithLogTail(Aws::String&& value) { SetLogTail(value); return *this;}
206 
211  inline Diagnostics& WithLogTail(const char* value) { SetLogTail(value); return *this;}
212 
213  private:
214  LifecycleErrorCode m_errorCode;
215  bool m_errorCodeHasBeenSet;
216  Aws::String m_scriptName;
217  bool m_scriptNameHasBeenSet;
218  Aws::String m_message;
219  bool m_messageHasBeenSet;
220  Aws::String m_logTail;
221  bool m_logTailHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace CodeDeploy
226 } // namespace Aws
Diagnostics & WithMessage(const Aws::String &value)
Definition: Diagnostics.h:159
void SetLogTail(const Aws::String &value)
Definition: Diagnostics.h:181
Diagnostics & WithLogTail(const char *value)
Definition: Diagnostics.h:211
const Aws::String & GetScriptName() const
Definition: Diagnostics.h:104
void SetLogTail(Aws::String &&value)
Definition: Diagnostics.h:187
Diagnostics & WithScriptName(const char *value)
Definition: Diagnostics.h:134
void SetMessage(Aws::String &&value)
Definition: Diagnostics.h:149
Diagnostics & WithMessage(const char *value)
Definition: Diagnostics.h:169
Diagnostics & WithScriptName(const Aws::String &value)
Definition: Diagnostics.h:124
void SetErrorCode(LifecycleErrorCode &&value)
Definition: Diagnostics.h:77
const Aws::String & GetMessage() const
Definition: Diagnostics.h:139
Diagnostics & WithErrorCode(const LifecycleErrorCode &value)
Definition: Diagnostics.h:88
void SetMessage(const char *value)
Definition: Diagnostics.h:154
void SetScriptName(const char *value)
Definition: Diagnostics.h:119
Diagnostics & WithLogTail(const Aws::String &value)
Definition: Diagnostics.h:199
void SetErrorCode(const LifecycleErrorCode &value)
Definition: Diagnostics.h:66
#define AWS_CODEDEPLOY_API
Diagnostics & WithScriptName(Aws::String &&value)
Definition: Diagnostics.h:129
const LifecycleErrorCode & GetErrorCode() const
Definition: Diagnostics.h:55
void SetScriptName(const Aws::String &value)
Definition: Diagnostics.h:109
const Aws::String & GetLogTail() const
Definition: Diagnostics.h:175
Diagnostics & WithMessage(Aws::String &&value)
Definition: Diagnostics.h:164
void SetScriptName(Aws::String &&value)
Definition: Diagnostics.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLogTail(const char *value)
Definition: Diagnostics.h:193
void SetMessage(const Aws::String &value)
Definition: Diagnostics.h:144
Diagnostics & WithErrorCode(LifecycleErrorCode &&value)
Definition: Diagnostics.h:99
Diagnostics & WithLogTail(Aws::String &&value)
Definition: Diagnostics.h:205
JSON (JavaScript Object Notation).