AWS SDK for C++  1.8.95
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:
37  CognitoStreams& operator=(Aws::Utils::Json::JsonView jsonValue);
38  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetStreamName(Aws::String &&value)
void SetStreamingStatus(StreamingStatus &&value)
void SetRoleArn(const Aws::String &value)
CognitoStreams & WithStreamName(const Aws::String &value)
CognitoStreams & WithRoleArn(const Aws::String &value)
CognitoStreams & WithRoleArn(Aws::String &&value)
CognitoStreams & WithRoleArn(const char *value)
void SetStreamName(const char *value)
CognitoStreams & WithStreamName(const char *value)
CognitoStreams & WithStreamingStatus(StreamingStatus &&value)
const Aws::String & GetStreamName() const
CognitoStreams & WithStreamingStatus(const StreamingStatus &value)
CognitoStreams & WithStreamName(Aws::String &&value)
void SetStreamName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_COGNITOSYNC_API
const Aws::String & GetRoleArn() const
const StreamingStatus & GetStreamingStatus() const
void SetStreamingStatus(const StreamingStatus &value)
void SetRoleArn(Aws::String &&value)