AWS SDK for C++  0.12.9
AWS SDK for C++
ValidationError.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 DataPipeline
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  ValidationError& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline ValidationError& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline ValidationError& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline ValidationError& WithId(const char* value) { SetId(value); return *this;}
81 
85  inline const Aws::Vector<Aws::String>& GetErrors() const{ return m_errors; }
86 
90  inline void SetErrors(const Aws::Vector<Aws::String>& value) { m_errorsHasBeenSet = true; m_errors = value; }
91 
95  inline void SetErrors(Aws::Vector<Aws::String>&& value) { m_errorsHasBeenSet = true; m_errors = value; }
96 
100  inline ValidationError& WithErrors(const Aws::Vector<Aws::String>& value) { SetErrors(value); return *this;}
101 
105  inline ValidationError& WithErrors(Aws::Vector<Aws::String>&& value) { SetErrors(value); return *this;}
106 
110  inline ValidationError& AddErrors(const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
111 
115  inline ValidationError& AddErrors(Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
116 
120  inline ValidationError& AddErrors(const char* value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
121 
122  private:
123  Aws::String m_id;
124  bool m_idHasBeenSet;
125  Aws::Vector<Aws::String> m_errors;
126  bool m_errorsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace DataPipeline
131 } // namespace Aws
void SetErrors(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetErrors() const
const Aws::String & GetId() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetId(const Aws::String &value)
ValidationError & AddErrors(const Aws::String &value)
ValidationError & WithId(const Aws::String &value)
ValidationError & WithId(Aws::String &&value)
ValidationError & WithId(const char *value)
ValidationError & AddErrors(Aws::String &&value)
#define AWS_DATAPIPELINE_API
ValidationError & WithErrors(const Aws::Vector< Aws::String > &value)
ValidationError & AddErrors(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ValidationError & WithErrors(Aws::Vector< Aws::String > &&value)
void SetErrors(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).