/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cognito-sync-2014-06-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CognitoSync.Model { /// /// Configuration options for configure Cognito streams. /// public partial class CognitoStreams { private string _roleArn; private StreamingStatus _streamingStatus; private string _streamName; /// /// Gets and sets the property RoleArn. The ARN of the role Amazon Cognito can assume /// in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) /// to invoke PutRecord on your Cognito stream. /// [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property StreamingStatus. Status of the Cognito streams. Valid values /// are: /// /// ENABLED - Streaming of updates to identity pool is enabled. /// /// /// /// DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also /// fail if StreamingStatus is DISABLED. /// /// public StreamingStatus StreamingStatus { get { return this._streamingStatus; } set { this._streamingStatus = value; } } // Check to see if StreamingStatus property is set internal bool IsSetStreamingStatus() { return this._streamingStatus != null; } /// /// Gets and sets the property StreamName. The name of the Cognito stream to receive updates. /// This stream must be in the developers account and in the same region as the identity /// pool. /// [AWSProperty(Min=1, Max=128)] public string StreamName { get { return this._streamName; } set { this._streamName = value; } } // Check to see if StreamName property is set internal bool IsSetStreamName() { return this._streamName != null; } } }