AWS SDK for C++  1.9.155
AWS SDK for C++
Session.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
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 ECS
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetSessionId() const{ return m_sessionId; }
44 
48  inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
49 
53  inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
54 
58  inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
59 
63  inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
64 
68  inline Session& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
69 
73  inline Session& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
74 
78  inline Session& WithSessionId(const char* value) { SetSessionId(value); return *this;}
79 
80 
85  inline const Aws::String& GetStreamUrl() const{ return m_streamUrl; }
86 
91  inline bool StreamUrlHasBeenSet() const { return m_streamUrlHasBeenSet; }
92 
97  inline void SetStreamUrl(const Aws::String& value) { m_streamUrlHasBeenSet = true; m_streamUrl = value; }
98 
103  inline void SetStreamUrl(Aws::String&& value) { m_streamUrlHasBeenSet = true; m_streamUrl = std::move(value); }
104 
109  inline void SetStreamUrl(const char* value) { m_streamUrlHasBeenSet = true; m_streamUrl.assign(value); }
110 
115  inline Session& WithStreamUrl(const Aws::String& value) { SetStreamUrl(value); return *this;}
116 
121  inline Session& WithStreamUrl(Aws::String&& value) { SetStreamUrl(std::move(value)); return *this;}
122 
127  inline Session& WithStreamUrl(const char* value) { SetStreamUrl(value); return *this;}
128 
129 
134  inline const Aws::String& GetTokenValue() const{ return m_tokenValue; }
135 
140  inline bool TokenValueHasBeenSet() const { return m_tokenValueHasBeenSet; }
141 
146  inline void SetTokenValue(const Aws::String& value) { m_tokenValueHasBeenSet = true; m_tokenValue = value; }
147 
152  inline void SetTokenValue(Aws::String&& value) { m_tokenValueHasBeenSet = true; m_tokenValue = std::move(value); }
153 
158  inline void SetTokenValue(const char* value) { m_tokenValueHasBeenSet = true; m_tokenValue.assign(value); }
159 
164  inline Session& WithTokenValue(const Aws::String& value) { SetTokenValue(value); return *this;}
165 
170  inline Session& WithTokenValue(Aws::String&& value) { SetTokenValue(std::move(value)); return *this;}
171 
176  inline Session& WithTokenValue(const char* value) { SetTokenValue(value); return *this;}
177 
178  private:
179 
180  Aws::String m_sessionId;
181  bool m_sessionIdHasBeenSet;
182 
183  Aws::String m_streamUrl;
184  bool m_streamUrlHasBeenSet;
185 
186  Aws::String m_tokenValue;
187  bool m_tokenValueHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace ECS
192 } // namespace Aws
Aws::ECS::Model::Session::TokenValueHasBeenSet
bool TokenValueHasBeenSet() const
Definition: Session.h:140
Aws::ECS::Model::Session::WithStreamUrl
Session & WithStreamUrl(const char *value)
Definition: Session.h:127
Aws::ECS::Model::Session::StreamUrlHasBeenSet
bool StreamUrlHasBeenSet() const
Definition: Session.h:91
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Session::SetStreamUrl
void SetStreamUrl(const char *value)
Definition: Session.h:109
Aws::ECS::Model::Session::WithTokenValue
Session & WithTokenValue(const Aws::String &value)
Definition: Session.h:164
Aws::ECS::Model::Session::SetStreamUrl
void SetStreamUrl(const Aws::String &value)
Definition: Session.h:97
Aws::ECS::Model::Session::Session
Session()
Aws::ECS::Model::Session::WithSessionId
Session & WithSessionId(const char *value)
Definition: Session.h:78
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Session::SetSessionId
void SetSessionId(const Aws::String &value)
Definition: Session.h:53
Aws::ECS::Model::Session::SetSessionId
void SetSessionId(const char *value)
Definition: Session.h:63
Aws::ECS::Model::Session::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Session::SetTokenValue
void SetTokenValue(const char *value)
Definition: Session.h:158
Aws::ECS::Model::Session::GetStreamUrl
const Aws::String & GetStreamUrl() const
Definition: Session.h:85
Aws::ECS::Model::Session::GetTokenValue
const Aws::String & GetTokenValue() const
Definition: Session.h:134
Aws::ECS::Model::Session::WithSessionId
Session & WithSessionId(Aws::String &&value)
Definition: Session.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Session::WithTokenValue
Session & WithTokenValue(Aws::String &&value)
Definition: Session.h:170
Aws::ECS::Model::Session::WithStreamUrl
Session & WithStreamUrl(const Aws::String &value)
Definition: Session.h:115
Aws::ECS::Model::Session::WithTokenValue
Session & WithTokenValue(const char *value)
Definition: Session.h:176
Aws::ECS::Model::Session::WithStreamUrl
Session & WithStreamUrl(Aws::String &&value)
Definition: Session.h:121
Aws::ECS::Model::Session::SessionIdHasBeenSet
bool SessionIdHasBeenSet() const
Definition: Session.h:48
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::Session
Definition: Session.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Session::WithSessionId
Session & WithSessionId(const Aws::String &value)
Definition: Session.h:68
Aws::ECS::Model::Session::SetTokenValue
void SetTokenValue(Aws::String &&value)
Definition: Session.h:152
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Session::GetSessionId
const Aws::String & GetSessionId() const
Definition: Session.h:43
Aws::ECS::Model::Session::SetStreamUrl
void SetStreamUrl(Aws::String &&value)
Definition: Session.h:103
Aws::ECS::Model::Session::SetSessionId
void SetSessionId(Aws::String &&value)
Definition: Session.h:58
Aws::ECS::Model::Session::SetTokenValue
void SetTokenValue(const Aws::String &value)
Definition: Session.h:146
Aws::ECS::Model::Session::Session
Session(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Session::operator=
Session & operator=(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h