AWS SDK for C++  1.9.66
AWS SDK for C++
Text.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AlexaForBusiness
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Text();
39 
40 
44  inline const Locale& GetLocale() const{ return m_locale; }
45 
49  inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
50 
54  inline void SetLocale(const Locale& value) { m_localeHasBeenSet = true; m_locale = value; }
55 
59  inline void SetLocale(Locale&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
60 
64  inline Text& WithLocale(const Locale& value) { SetLocale(value); return *this;}
65 
69  inline Text& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetValue() const{ return m_value; }
76 
80  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 
85  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
86 
90  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
91 
95  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
96 
100  inline Text& WithValue(const Aws::String& value) { SetValue(value); return *this;}
101 
105  inline Text& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
106 
110  inline Text& WithValue(const char* value) { SetValue(value); return *this;}
111 
112  private:
113 
114  Locale m_locale;
115  bool m_localeHasBeenSet;
116 
117  Aws::String m_value;
118  bool m_valueHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace AlexaForBusiness
123 } // namespace Aws
Aws::AlexaForBusiness::Model::Text::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AlexaForBusiness::Model::Text::GetValue
const Aws::String & GetValue() const
Definition: Text.h:75
Aws::AlexaForBusiness::Model::Text::operator=
Text & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Text::Text
Text(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Text::SetValue
void SetValue(const Aws::String &value)
Definition: Text.h:85
Aws::AlexaForBusiness::Model::Text::LocaleHasBeenSet
bool LocaleHasBeenSet() const
Definition: Text.h:49
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::Text::SetValue
void SetValue(Aws::String &&value)
Definition: Text.h:90
Aws::AlexaForBusiness::Model::Text::WithValue
Text & WithValue(const Aws::String &value)
Definition: Text.h:100
Aws::AlexaForBusiness::Model::Text::Text
Text()
Locale.h
Aws::AlexaForBusiness::Model::Text::WithLocale
Text & WithLocale(const Locale &value)
Definition: Text.h:64
Aws::AlexaForBusiness::Model::Text::WithLocale
Text & WithLocale(Locale &&value)
Definition: Text.h:69
Aws::AlexaForBusiness::Model::Text::SetValue
void SetValue(const char *value)
Definition: Text.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AlexaForBusiness::Model::Text
Definition: Text.h:33
Aws::AlexaForBusiness::Model::Locale
Locale
Definition: Locale.h:17
Aws::AlexaForBusiness::Model::Text::SetLocale
void SetLocale(Locale &&value)
Definition: Text.h:59
Aws::AlexaForBusiness::Model::Text::WithValue
Text & WithValue(const char *value)
Definition: Text.h:110
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::Text::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Text.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::Text::SetLocale
void SetLocale(const Locale &value)
Definition: Text.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::Text::WithValue
Text & WithValue(Aws::String &&value)
Definition: Text.h:105
Aws::AlexaForBusiness::Model::Text::GetLocale
const Locale & GetLocale() const
Definition: Text.h:44