AWS SDK for C++  1.9.108
AWS SDK for C++
OutputContext.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace LexModelBuildingService
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline OutputContext& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline OutputContext& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline OutputContext& WithName(const char* value) { SetName(value); return *this;}
80 
81 
87  inline int GetTimeToLiveInSeconds() const{ return m_timeToLiveInSeconds; }
88 
94  inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
95 
101  inline void SetTimeToLiveInSeconds(int value) { m_timeToLiveInSecondsHasBeenSet = true; m_timeToLiveInSeconds = value; }
102 
108  inline OutputContext& WithTimeToLiveInSeconds(int value) { SetTimeToLiveInSeconds(value); return *this;}
109 
110 
116  inline int GetTurnsToLive() const{ return m_turnsToLive; }
117 
123  inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
124 
130  inline void SetTurnsToLive(int value) { m_turnsToLiveHasBeenSet = true; m_turnsToLive = value; }
131 
137  inline OutputContext& WithTurnsToLive(int value) { SetTurnsToLive(value); return *this;}
138 
139  private:
140 
141  Aws::String m_name;
142  bool m_nameHasBeenSet;
143 
144  int m_timeToLiveInSeconds;
145  bool m_timeToLiveInSecondsHasBeenSet;
146 
147  int m_turnsToLive;
148  bool m_turnsToLiveHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace LexModelBuildingService
153 } // namespace Aws
Aws::LexModelBuildingService::Model::OutputContext::WithName
OutputContext & WithName(const Aws::String &value)
Definition: OutputContext.h:69
Aws::LexModelBuildingService::Model::OutputContext::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OutputContext.h:49
Aws::LexModelBuildingService::Model::OutputContext::GetName
const Aws::String & GetName() const
Definition: OutputContext.h:44
Aws::LexModelBuildingService::Model::OutputContext
Definition: OutputContext.h:33
Aws::LexModelBuildingService::Model::OutputContext::operator=
OutputContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::LexModelBuildingService::Model::OutputContext::WithName
OutputContext & WithName(Aws::String &&value)
Definition: OutputContext.h:74
Aws::LexModelBuildingService::Model::OutputContext::SetName
void SetName(Aws::String &&value)
Definition: OutputContext.h:59
Aws::LexModelBuildingService::Model::OutputContext::TimeToLiveInSecondsHasBeenSet
bool TimeToLiveInSecondsHasBeenSet() const
Definition: OutputContext.h:94
LexModelBuildingService_EXPORTS.h
Aws::LexModelBuildingService::Model::OutputContext::SetName
void SetName(const Aws::String &value)
Definition: OutputContext.h:54
Aws::LexModelBuildingService::Model::OutputContext::GetTurnsToLive
int GetTurnsToLive() const
Definition: OutputContext.h:116
Aws::LexModelBuildingService::Model::OutputContext::SetTimeToLiveInSeconds
void SetTimeToLiveInSeconds(int value)
Definition: OutputContext.h:101
Aws::LexModelBuildingService::Model::OutputContext::SetName
void SetName(const char *value)
Definition: OutputContext.h:64
Aws::LexModelBuildingService::Model::OutputContext::GetTimeToLiveInSeconds
int GetTimeToLiveInSeconds() const
Definition: OutputContext.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::LexModelBuildingService::Model::OutputContext::WithTurnsToLive
OutputContext & WithTurnsToLive(int value)
Definition: OutputContext.h:137
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::LexModelBuildingService::Model::OutputContext::WithName
OutputContext & WithName(const char *value)
Definition: OutputContext.h:79
AWS_LEXMODELBUILDINGSERVICE_API
#define AWS_LEXMODELBUILDINGSERVICE_API
Definition: LexModelBuildingService_EXPORTS.h:28
Aws::LexModelBuildingService::Model::OutputContext::TurnsToLiveHasBeenSet
bool TurnsToLiveHasBeenSet() const
Definition: OutputContext.h:123
Aws::LexModelBuildingService::Model::OutputContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::LexModelBuildingService::Model::OutputContext::SetTurnsToLive
void SetTurnsToLive(int value)
Definition: OutputContext.h:130
Aws::LexModelBuildingService::Model::OutputContext::WithTimeToLiveInSeconds
OutputContext & WithTimeToLiveInSeconds(int value)
Definition: OutputContext.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexModelBuildingService::Model::OutputContext::OutputContext
OutputContext()
Aws::LexModelBuildingService::Model::OutputContext::OutputContext
OutputContext(Aws::Utils::Json::JsonView jsonValue)