AWS SDK for C++  0.14.3
AWS SDK for C++
LocalizeTextRequest.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
21 
22 namespace Aws
23 {
24 namespace Inspector
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::Vector<LocalizedText>& GetLocalizedTexts() const{ return m_localizedTexts; }
43 
47  inline void SetLocalizedTexts(const Aws::Vector<LocalizedText>& value) { m_localizedTextsHasBeenSet = true; m_localizedTexts = value; }
48 
52  inline void SetLocalizedTexts(Aws::Vector<LocalizedText>&& value) { m_localizedTextsHasBeenSet = true; m_localizedTexts = value; }
53 
57  inline LocalizeTextRequest& WithLocalizedTexts(const Aws::Vector<LocalizedText>& value) { SetLocalizedTexts(value); return *this;}
58 
62  inline LocalizeTextRequest& WithLocalizedTexts(Aws::Vector<LocalizedText>&& value) { SetLocalizedTexts(value); return *this;}
63 
67  inline LocalizeTextRequest& AddLocalizedTexts(const LocalizedText& value) { m_localizedTextsHasBeenSet = true; m_localizedTexts.push_back(value); return *this; }
68 
72  inline LocalizeTextRequest& AddLocalizedTexts(LocalizedText&& value) { m_localizedTextsHasBeenSet = true; m_localizedTexts.push_back(value); return *this; }
73 
77  inline const Aws::String& GetLocale() const{ return m_locale; }
78 
82  inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
83 
87  inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = value; }
88 
92  inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
93 
97  inline LocalizeTextRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
98 
102  inline LocalizeTextRequest& WithLocale(Aws::String&& value) { SetLocale(value); return *this;}
103 
107  inline LocalizeTextRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
108 
109  private:
110  Aws::Vector<LocalizedText> m_localizedTexts;
111  bool m_localizedTextsHasBeenSet;
112  Aws::String m_locale;
113  bool m_localeHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace Inspector
118 } // namespace Aws
void SetLocalizedTexts(const Aws::Vector< LocalizedText > &value)
const Aws::Vector< LocalizedText > & GetLocalizedTexts() const
#define AWS_INSPECTOR_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
LocalizeTextRequest & WithLocale(Aws::String &&value)
void SetLocale(const Aws::String &value)
LocalizeTextRequest & WithLocalizedTexts(const Aws::Vector< LocalizedText > &value)
LocalizeTextRequest & WithLocalizedTexts(Aws::Vector< LocalizedText > &&value)
LocalizeTextRequest & WithLocale(const Aws::String &value)
LocalizeTextRequest & AddLocalizedTexts(LocalizedText &&value)
LocalizeTextRequest & AddLocalizedTexts(const LocalizedText &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LocalizeTextRequest & WithLocale(const char *value)
void SetLocalizedTexts(Aws::Vector< LocalizedText > &&value)
JSON (JavaScript Object Notation).