AWS SDK for C++  0.12.9
AWS SDK for C++
Resource.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
16 #include <aws/ecs/ECS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECS
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Resource();
41  Resource(const Aws::Utils::Json::JsonValue& jsonValue);
42  Resource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
62 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
73  inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
79  inline Resource& WithName(Aws::String&& value) { SetName(value); return *this;}
80 
85  inline Resource& WithName(const char* value) { SetName(value); return *this;}
86 
91  inline const Aws::String& GetType() const{ return m_type; }
92 
97  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
98 
103  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
104 
109  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
110 
115  inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
116 
121  inline Resource& WithType(Aws::String&& value) { SetType(value); return *this;}
122 
127  inline Resource& WithType(const char* value) { SetType(value); return *this;}
128 
133  inline double GetDoubleValue() const{ return m_doubleValue; }
134 
139  inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
140 
145  inline Resource& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
146 
151  inline long long GetLongValue() const{ return m_longValue; }
152 
157  inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
158 
163  inline Resource& WithLongValue(long long value) { SetLongValue(value); return *this;}
164 
169  inline long GetIntegerValue() const{ return m_integerValue; }
170 
175  inline void SetIntegerValue(long value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
176 
181  inline Resource& WithIntegerValue(long value) { SetIntegerValue(value); return *this;}
182 
187  inline const Aws::Vector<Aws::String>& GetStringSetValue() const{ return m_stringSetValue; }
188 
193  inline void SetStringSetValue(const Aws::Vector<Aws::String>& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = value; }
194 
199  inline void SetStringSetValue(Aws::Vector<Aws::String>&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = value; }
200 
205  inline Resource& WithStringSetValue(const Aws::Vector<Aws::String>& value) { SetStringSetValue(value); return *this;}
206 
211  inline Resource& WithStringSetValue(Aws::Vector<Aws::String>&& value) { SetStringSetValue(value); return *this;}
212 
217  inline Resource& AddStringSetValue(const Aws::String& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
218 
223  inline Resource& AddStringSetValue(Aws::String&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
224 
229  inline Resource& AddStringSetValue(const char* value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
230 
231  private:
232  Aws::String m_name;
233  bool m_nameHasBeenSet;
234  Aws::String m_type;
235  bool m_typeHasBeenSet;
236  double m_doubleValue;
237  bool m_doubleValueHasBeenSet;
238  long long m_longValue;
239  bool m_longValueHasBeenSet;
240  long m_integerValue;
241  bool m_integerValueHasBeenSet;
242  Aws::Vector<Aws::String> m_stringSetValue;
243  bool m_stringSetValueHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace ECS
248 } // namespace Aws
Resource & WithType(const Aws::String &value)
Definition: Resource.h:115
Resource & WithName(const char *value)
Definition: Resource.h:85
Resource & WithStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:205
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
Resource & AddStringSetValue(Aws::String &&value)
Definition: Resource.h:223
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Resource & WithLongValue(long long value)
Definition: Resource.h:163
void SetType(const char *value)
Definition: Resource.h:109
const Aws::String & GetName() const
Definition: Resource.h:49
void SetLongValue(long long value)
Definition: Resource.h:157
void SetIntegerValue(long value)
Definition: Resource.h:175
long long GetLongValue() const
Definition: Resource.h:151
void SetStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:193
Resource & AddStringSetValue(const char *value)
Definition: Resource.h:229
void SetName(Aws::String &&value)
Definition: Resource.h:61
void SetStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:199
long GetIntegerValue() const
Definition: Resource.h:169
Resource & WithDoubleValue(double value)
Definition: Resource.h:145
void SetType(Aws::String &&value)
Definition: Resource.h:103
Resource & WithType(Aws::String &&value)
Definition: Resource.h:121
void SetName(const Aws::String &value)
Definition: Resource.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(const Aws::String &value)
Definition: Resource.h:97
const Aws::String & GetType() const
Definition: Resource.h:91
Resource & WithName(const Aws::String &value)
Definition: Resource.h:73
Resource & WithName(Aws::String &&value)
Definition: Resource.h:79
Resource & AddStringSetValue(const Aws::String &value)
Definition: Resource.h:217
void SetDoubleValue(double value)
Definition: Resource.h:139
const Aws::Vector< Aws::String > & GetStringSetValue() const
Definition: Resource.h:187
Resource & WithIntegerValue(long value)
Definition: Resource.h:181
Resource & WithType(const char *value)
Definition: Resource.h:127
double GetDoubleValue() const
Definition: Resource.h:133
JSON (JavaScript Object Notation).
void SetName(const char *value)
Definition: Resource.h:67
Resource & WithStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:211