AWS SDK for C++  0.14.3
AWS SDK for C++
CognitoStreams.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CognitoSync
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  CognitoStreams& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetStreamName() const{ return m_streamName; }
50 
55  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
56 
61  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
62 
67  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
68 
73  inline CognitoStreams& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
74 
79  inline CognitoStreams& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
80 
85  inline CognitoStreams& WithStreamName(const char* value) { SetStreamName(value); return *this;}
86 
92  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
93 
99  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 
106  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
107 
113  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
114 
120  inline CognitoStreams& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
121 
127  inline CognitoStreams& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
128 
134  inline CognitoStreams& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135 
142  inline const StreamingStatus& GetStreamingStatus() const{ return m_streamingStatus; }
143 
150  inline void SetStreamingStatus(const StreamingStatus& value) { m_streamingStatusHasBeenSet = true; m_streamingStatus = value; }
151 
158  inline void SetStreamingStatus(StreamingStatus&& value) { m_streamingStatusHasBeenSet = true; m_streamingStatus = value; }
159 
166  inline CognitoStreams& WithStreamingStatus(const StreamingStatus& value) { SetStreamingStatus(value); return *this;}
167 
174  inline CognitoStreams& WithStreamingStatus(StreamingStatus&& value) { SetStreamingStatus(value); return *this;}
175 
176  private:
177  Aws::String m_streamName;
178  bool m_streamNameHasBeenSet;
179  Aws::String m_roleArn;
180  bool m_roleArnHasBeenSet;
181  StreamingStatus m_streamingStatus;
182  bool m_streamingStatusHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace CognitoSync
187 } // 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)
const Aws::String & GetStreamName() const
CognitoStreams & WithStreamingStatus(StreamingStatus &&value)
const StreamingStatus & GetStreamingStatus() 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
void SetStreamingStatus(const StreamingStatus &value)
JSON (JavaScript Object Notation).
const Aws::String & GetRoleArn() const
void SetRoleArn(Aws::String &&value)