AWS SDK for C++  0.14.3
AWS SDK for C++
ValidationWarning.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  ValidationWarning& 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 ValidationWarning& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline ValidationWarning& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline ValidationWarning& WithId(const char* value) { SetId(value); return *this;}
81 
85  inline const Aws::Vector<Aws::String>& GetWarnings() const{ return m_warnings; }
86 
90  inline void SetWarnings(const Aws::Vector<Aws::String>& value) { m_warningsHasBeenSet = true; m_warnings = value; }
91 
95  inline void SetWarnings(Aws::Vector<Aws::String>&& value) { m_warningsHasBeenSet = true; m_warnings = value; }
96 
100  inline ValidationWarning& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
101 
105  inline ValidationWarning& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(value); return *this;}
106 
110  inline ValidationWarning& AddWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
111 
115  inline ValidationWarning& AddWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
116 
120  inline ValidationWarning& AddWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
121 
122  private:
123  Aws::String m_id;
124  bool m_idHasBeenSet;
125  Aws::Vector<Aws::String> m_warnings;
126  bool m_warningsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace DataPipeline
131 } // namespace Aws
ValidationWarning & WithId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ValidationWarning & WithId(const char *value)
void SetWarnings(const Aws::Vector< Aws::String > &value)
ValidationWarning & WithWarnings(const Aws::Vector< Aws::String > &value)
#define AWS_DATAPIPELINE_API
ValidationWarning & AddWarnings(const Aws::String &value)
ValidationWarning & AddWarnings(Aws::String &&value)
void SetWarnings(Aws::Vector< Aws::String > &&value)
ValidationWarning & AddWarnings(const char *value)
const Aws::Vector< Aws::String > & GetWarnings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetId(const Aws::String &value)
ValidationWarning & WithWarnings(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).
ValidationWarning & WithId(Aws::String &&value)