AWS SDK for C++  0.14.3
AWS SDK for C++
ParameterObject.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DataPipeline
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ParameterObject& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline ParameterObject& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline ParameterObject& WithId(Aws::String&& value) { SetId(value); return *this;}
75 
79  inline ParameterObject& WithId(const char* value) { SetId(value); return *this;}
80 
84  inline const Aws::Vector<ParameterAttribute>& GetAttributes() const{ return m_attributes; }
85 
89  inline void SetAttributes(const Aws::Vector<ParameterAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
90 
94  inline void SetAttributes(Aws::Vector<ParameterAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
95 
99  inline ParameterObject& WithAttributes(const Aws::Vector<ParameterAttribute>& value) { SetAttributes(value); return *this;}
100 
104  inline ParameterObject& WithAttributes(Aws::Vector<ParameterAttribute>&& value) { SetAttributes(value); return *this;}
105 
109  inline ParameterObject& AddAttributes(const ParameterAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
110 
114  inline ParameterObject& AddAttributes(ParameterAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
115 
116  private:
117  Aws::String m_id;
118  bool m_idHasBeenSet;
119  Aws::Vector<ParameterAttribute> m_attributes;
120  bool m_attributesHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace DataPipeline
125 } // namespace Aws
const Aws::Vector< ParameterAttribute > & GetAttributes() const
const Aws::String & GetId() const
void SetAttributes(Aws::Vector< ParameterAttribute > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ParameterObject & WithId(const Aws::String &value)
ParameterObject & WithAttributes(const Aws::Vector< ParameterAttribute > &value)
void SetAttributes(const Aws::Vector< ParameterAttribute > &value)
ParameterObject & AddAttributes(ParameterAttribute &&value)
ParameterObject & WithId(Aws::String &&value)
void SetId(const Aws::String &value)
#define AWS_DATAPIPELINE_API
ParameterObject & AddAttributes(const ParameterAttribute &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ParameterObject & WithId(const char *value)
ParameterObject & WithAttributes(Aws::Vector< ParameterAttribute > &&value)
JSON (JavaScript Object Notation).