AWS SDK for C++  1.9.17
AWS SDK for C++
CognitoStreams.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 CognitoSync
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetStreamName() const{ return m_streamName; }
46 
51  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
52 
57  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
58 
63  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
64 
69  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
70 
75  inline CognitoStreams& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
76 
81  inline CognitoStreams& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
82 
87  inline CognitoStreams& WithStreamName(const char* value) { SetStreamName(value); return *this;}
88 
89 
95  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
96 
102  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 
109  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
110 
116  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
117 
123  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
124 
130  inline CognitoStreams& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
131 
137  inline CognitoStreams& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
138 
144  inline CognitoStreams& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
145 
146 
153  inline const StreamingStatus& GetStreamingStatus() const{ return m_streamingStatus; }
154 
161  inline bool StreamingStatusHasBeenSet() const { return m_streamingStatusHasBeenSet; }
162 
169  inline void SetStreamingStatus(const StreamingStatus& value) { m_streamingStatusHasBeenSet = true; m_streamingStatus = value; }
170 
177  inline void SetStreamingStatus(StreamingStatus&& value) { m_streamingStatusHasBeenSet = true; m_streamingStatus = std::move(value); }
178 
185  inline CognitoStreams& WithStreamingStatus(const StreamingStatus& value) { SetStreamingStatus(value); return *this;}
186 
193  inline CognitoStreams& WithStreamingStatus(StreamingStatus&& value) { SetStreamingStatus(std::move(value)); return *this;}
194 
195  private:
196 
197  Aws::String m_streamName;
198  bool m_streamNameHasBeenSet;
199 
200  Aws::String m_roleArn;
201  bool m_roleArnHasBeenSet;
202 
203  StreamingStatus m_streamingStatus;
204  bool m_streamingStatusHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace CognitoSync
209 } // namespace Aws
Aws::CognitoSync::Model::CognitoStreams::SetStreamingStatus
void SetStreamingStatus(StreamingStatus &&value)
Definition: CognitoStreams.h:177
Aws::CognitoSync::Model::CognitoStreams::SetRoleArn
void SetRoleArn(const char *value)
Definition: CognitoStreams.h:123
Aws::CognitoSync::Model::CognitoStreams::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CognitoStreams.h:109
StreamingStatus.h
Aws::CognitoSync::Model::CognitoStreams::SetStreamName
void SetStreamName(const char *value)
Definition: CognitoStreams.h:69
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::CognitoStreams::WithRoleArn
CognitoStreams & WithRoleArn(const Aws::String &value)
Definition: CognitoStreams.h:130
Aws::CognitoSync::Model::CognitoStreams::StreamingStatusHasBeenSet
bool StreamingStatusHasBeenSet() const
Definition: CognitoStreams.h:161
Aws::CognitoSync::Model::CognitoStreams::SetStreamingStatus
void SetStreamingStatus(const StreamingStatus &value)
Definition: CognitoStreams.h:169
Aws::CognitoSync::Model::CognitoStreams::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CognitoSync::Model::CognitoStreams::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CognitoStreams.h:102
Aws::CognitoSync::Model::CognitoStreams::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CognitoStreams.h:95
Aws::CognitoSync::Model::CognitoStreams::WithStreamName
CognitoStreams & WithStreamName(const Aws::String &value)
Definition: CognitoStreams.h:75
Aws::CognitoSync::Model::CognitoStreams::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: CognitoStreams.h:63
Aws::CognitoSync::Model::CognitoStreams::WithStreamingStatus
CognitoStreams & WithStreamingStatus(const StreamingStatus &value)
Definition: CognitoStreams.h:185
Aws::CognitoSync::Model::CognitoStreams::WithRoleArn
CognitoStreams & WithRoleArn(Aws::String &&value)
Definition: CognitoStreams.h:137
Aws::CognitoSync::Model::CognitoStreams::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: CognitoStreams.h:51
Aws::CognitoSync::Model::CognitoStreams::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: CognitoStreams.h:57
Aws::CognitoSync::Model::CognitoStreams::WithRoleArn
CognitoStreams & WithRoleArn(const char *value)
Definition: CognitoStreams.h:144
Aws::CognitoSync::Model::CognitoStreams::CognitoStreams
CognitoStreams(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::CognitoStreams::WithStreamingStatus
CognitoStreams & WithStreamingStatus(StreamingStatus &&value)
Definition: CognitoStreams.h:193
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CognitoSync::Model::CognitoStreams::WithStreamName
CognitoStreams & WithStreamName(Aws::String &&value)
Definition: CognitoStreams.h:81
Aws::CognitoSync::Model::CognitoStreams::CognitoStreams
CognitoStreams()
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::CognitoStreams::GetStreamName
const Aws::String & GetStreamName() const
Definition: CognitoStreams.h:45
Aws::CognitoSync::Model::StreamingStatus
StreamingStatus
Definition: StreamingStatus.h:17
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::CognitoSync::Model::CognitoStreams::GetStreamingStatus
const StreamingStatus & GetStreamingStatus() const
Definition: CognitoStreams.h:153
Aws::CognitoSync::Model::CognitoStreams
Definition: CognitoStreams.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoSync::Model::CognitoStreams::operator=
CognitoStreams & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::CognitoStreams::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CognitoStreams.h:116
Aws::CognitoSync::Model::CognitoStreams::WithStreamName
CognitoStreams & WithStreamName(const char *value)
Definition: CognitoStreams.h:87