AWS SDK for C++  0.12.9
AWS SDK for C++
PutTargetsResultEntry.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 CloudWatchEvents
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  PutTargetsResultEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetTargetId() const{ return m_targetId; }
48 
52  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
53 
57  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
58 
62  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
63 
67  inline PutTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
68 
72  inline PutTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(value); return *this;}
73 
77  inline PutTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;}
78 
83  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
84 
89  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
90 
95  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
96 
101  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
102 
107  inline PutTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
108 
113  inline PutTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(value); return *this;}
114 
119  inline PutTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
120 
125  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
126 
131  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
132 
137  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
138 
143  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
144 
149  inline PutTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
150 
155  inline PutTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(value); return *this;}
156 
161  inline PutTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
162 
163  private:
164  Aws::String m_targetId;
165  bool m_targetIdHasBeenSet;
166  Aws::String m_errorCode;
167  bool m_errorCodeHasBeenSet;
168  Aws::String m_errorMessage;
169  bool m_errorMessageHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace CloudWatchEvents
174 } // namespace Aws
#define AWS_CLOUDWATCHEVENTS_API
PutTargetsResultEntry & WithErrorCode(Aws::String &&value)
void SetErrorCode(const Aws::String &value)
const Aws::String & GetErrorMessage() const
PutTargetsResultEntry & WithErrorCode(const Aws::String &value)
PutTargetsResultEntry & WithErrorMessage(const char *value)
void SetTargetId(Aws::String &&value)
void SetErrorMessage(const char *value)
PutTargetsResultEntry & WithTargetId(const char *value)
PutTargetsResultEntry & WithTargetId(const Aws::String &value)
PutTargetsResultEntry & WithErrorCode(const char *value)
void SetTargetId(const Aws::String &value)
void SetErrorMessage(Aws::String &&value)
PutTargetsResultEntry & WithErrorMessage(const Aws::String &value)
const Aws::String & GetErrorCode() const
void SetErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetTargetId() const
void SetErrorCode(Aws::String &&value)
void SetTargetId(const char *value)
PutTargetsResultEntry & WithErrorMessage(Aws::String &&value)
PutTargetsResultEntry & WithTargetId(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetErrorCode(const char *value)