AWS SDK for C++  0.12.9
AWS SDK for C++
LocalizedText.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 Inspector
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  LocalizedText();
44  LocalizedText& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const LocalizedTextKey& GetKey() const{ return m_key; }
51 
55  inline void SetKey(const LocalizedTextKey& value) { m_keyHasBeenSet = true; m_key = value; }
56 
60  inline void SetKey(LocalizedTextKey&& value) { m_keyHasBeenSet = true; m_key = value; }
61 
65  inline LocalizedText& WithKey(const LocalizedTextKey& value) { SetKey(value); return *this;}
66 
70  inline LocalizedText& WithKey(LocalizedTextKey&& value) { SetKey(value); return *this;}
71 
76  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
77 
82  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
83 
88  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
89 
94  inline LocalizedText& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
95 
100  inline LocalizedText& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
101 
106  inline LocalizedText& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
107 
112  inline LocalizedText& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
113 
114  private:
115  LocalizedTextKey m_key;
116  bool m_keyHasBeenSet;
117  Aws::Vector<Parameter> m_parameters;
118  bool m_parametersHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace Inspector
123 } // namespace Aws
LocalizedText & WithParameters(const Aws::Vector< Parameter > &value)
Definition: LocalizedText.h:94
#define AWS_INSPECTOR_API
LocalizedText & WithKey(const LocalizedTextKey &value)
Definition: LocalizedText.h:65
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetParameters(const Aws::Vector< Parameter > &value)
Definition: LocalizedText.h:82
LocalizedText & WithKey(LocalizedTextKey &&value)
Definition: LocalizedText.h:70
void SetKey(const LocalizedTextKey &value)
Definition: LocalizedText.h:55
void SetParameters(Aws::Vector< Parameter > &&value)
Definition: LocalizedText.h:88
const LocalizedTextKey & GetKey() const
Definition: LocalizedText.h:50
LocalizedText & AddParameters(const Parameter &value)
void SetKey(LocalizedTextKey &&value)
Definition: LocalizedText.h:60
LocalizedText & AddParameters(Parameter &&value)
LocalizedText & WithParameters(Aws::Vector< Parameter > &&value)
JSON (JavaScript Object Notation).
const Aws::Vector< Parameter > & GetParameters() const
Definition: LocalizedText.h:76