repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The client is permanently forbidden from making the request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ForbiddenException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new ForbiddenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ForbiddenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ForbiddenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ForbiddenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ForbiddenException
/// </summary>
/// <param name="innerException"></param>
public ForbiddenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ForbiddenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ForbiddenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ForbiddenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ForbiddenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ForbiddenException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ForbiddenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the GetChannelMembershipPreferences operation.
/// Gets the membership preferences of an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>
/// for the specified channel. A user or a bot must be a member of the channel and own
/// the membership in order to retrieve membership preferences. Users or bots in the <code>AppInstanceAdmin</code>
/// and channel moderator roles can't retrieve preferences for other users or bots. Banned
/// users or bots can't retrieve membership preferences for the channel from which they
/// are banned.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class GetChannelMembershipPreferencesRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _memberArn;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MemberArn.
/// <para>
/// The <code>AppInstanceUserArn</code> of the member retrieving the preferences.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string MemberArn
{
get { return this._memberArn; }
set { this._memberArn = value; }
}
// Check to see if MemberArn property is set
internal bool IsSetMemberArn()
{
return this._memberArn != null;
}
}
}
| 113 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the GetChannelMembershipPreferences operation.
/// </summary>
public partial class GetChannelMembershipPreferencesResponse : AmazonWebServiceResponse
{
private string _channelArn;
private Identity _member;
private ChannelMembershipPreferences _preferences;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property Member.
/// <para>
/// The details of a user.
/// </para>
/// </summary>
public Identity Member
{
get { return this._member; }
set { this._member = value; }
}
// Check to see if Member property is set
internal bool IsSetMember()
{
return this._member != null;
}
/// <summary>
/// Gets and sets the property Preferences.
/// <para>
/// The channel membership preferences for an <code>AppInstanceUser</code> .
/// </para>
/// </summary>
public ChannelMembershipPreferences Preferences
{
get { return this._preferences; }
set { this._preferences = value; }
}
// Check to see if Preferences property is set
internal bool IsSetPreferences()
{
return this._preferences != null;
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the GetChannelMessage operation.
/// Gets the full details of a channel message.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class GetChannelMessageRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _messageId;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID of the message.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// <note>
/// <para>
/// Only required when getting messages in a SubChannel that the user belongs to.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 133 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the GetChannelMessage operation.
/// </summary>
public partial class GetChannelMessageResponse : AmazonWebServiceResponse
{
private ChannelMessage _channelMessage;
/// <summary>
/// Gets and sets the property ChannelMessage.
/// <para>
/// The details of and content in the message.
/// </para>
/// </summary>
public ChannelMessage ChannelMessage
{
get { return this._channelMessage; }
set { this._channelMessage = value; }
}
// Check to see if ChannelMessage property is set
internal bool IsSetChannelMessage()
{
return this._channelMessage != null;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the GetChannelMessageStatus operation.
/// Gets message status for a specified <code>messageId</code>. Use this API to determine
/// the intermediate status of messages going through channel flow processing. The API
/// provides an alternative to retrieving message status if the event was not received
/// because a client wasn't connected to a websocket.
///
///
/// <para>
/// Messages can have any one of these statuses.
/// </para>
/// <dl> <dt>SENT</dt> <dd>
/// <para>
/// Message processed successfully
/// </para>
/// </dd> <dt>PENDING</dt> <dd>
/// <para>
/// Ongoing processing
/// </para>
/// </dd> <dt>FAILED</dt> <dd>
/// <para>
/// Processing failed
/// </para>
/// </dd> <dt>DENIED</dt> <dd>
/// <para>
/// Message denied by the processor
/// </para>
/// </dd> </dl> <note> <ul> <li>
/// <para>
/// This API does not return statuses for denied messages, because we don't store them
/// once the processor denies them.
/// </para>
/// </li> <li>
/// <para>
/// Only the message sender can invoke this API.
/// </para>
/// </li> <li>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial class GetChannelMessageStatusRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _messageId;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The <code>AppInstanceUserArn</code> of the user making the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID of the message.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// <note>
/// <para>
/// Only required when getting message status in a SubChannel that the user belongs to.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 164 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the GetChannelMessageStatus operation.
/// </summary>
public partial class GetChannelMessageStatusResponse : AmazonWebServiceResponse
{
private ChannelMessageStatusStructure _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The message status and details.
/// </para>
/// </summary>
public ChannelMessageStatusStructure Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the GetMessagingSessionEndpoint operation.
/// The details of the endpoint for the messaging session.
/// </summary>
public partial class GetMessagingSessionEndpointRequest : AmazonChimeSDKMessagingRequest
{
}
}
| 39 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the GetMessagingSessionEndpoint operation.
/// </summary>
public partial class GetMessagingSessionEndpointResponse : AmazonWebServiceResponse
{
private MessagingSessionEndpoint _endpoint;
/// <summary>
/// Gets and sets the property Endpoint.
/// <para>
/// The endpoint returned in the response.
/// </para>
/// </summary>
public MessagingSessionEndpoint Endpoint
{
get { return this._endpoint; }
set { this._endpoint = value; }
}
// Check to see if Endpoint property is set
internal bool IsSetEndpoint()
{
return this._endpoint != null;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the GetMessagingStreamingConfigurations operation.
/// Retrieves the data streaming configuration for an <code>AppInstance</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/streaming-export.html">Streaming
/// messaging data</a> in the <i>Amazon Chime SDK Developer Guide</i>.
/// </summary>
public partial class GetMessagingStreamingConfigurationsRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceArn;
/// <summary>
/// Gets and sets the property AppInstanceArn.
/// <para>
/// The ARN of the streaming configurations.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string AppInstanceArn
{
get { return this._appInstanceArn; }
set { this._appInstanceArn = value; }
}
// Check to see if AppInstanceArn property is set
internal bool IsSetAppInstanceArn()
{
return this._appInstanceArn != null;
}
}
}
| 61 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the GetMessagingStreamingConfigurations operation.
/// </summary>
public partial class GetMessagingStreamingConfigurationsResponse : AmazonWebServiceResponse
{
private List<StreamingConfiguration> _streamingConfigurations = new List<StreamingConfiguration>();
/// <summary>
/// Gets and sets the property StreamingConfigurations.
/// <para>
/// The streaming settings.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2)]
public List<StreamingConfiguration> StreamingConfigurations
{
get { return this._streamingConfigurations; }
set { this._streamingConfigurations = value; }
}
// Check to see if StreamingConfigurations property is set
internal bool IsSetStreamingConfigurations()
{
return this._streamingConfigurations != null && this._streamingConfigurations.Count > 0;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The details of a user or bot.
/// </summary>
public partial class Identity
{
private string _arn;
private string _name;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN in an Identity.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name in an Identity.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Stores metadata about a Lambda processor.
/// </summary>
public partial class LambdaConfiguration
{
private InvocationType _invocationType;
private string _resourceArn;
/// <summary>
/// Gets and sets the property InvocationType.
/// <para>
/// Controls how the Lambda function is invoked.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public InvocationType InvocationType
{
get { return this._invocationType; }
set { this._invocationType = value; }
}
// Check to see if InvocationType property is set
internal bool IsSetInvocationType()
{
return this._invocationType != null;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The ARN of the Lambda message processing function.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=15, Max=2048)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelBans operation.
/// Lists all the users and bots banned from a particular channel.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelBansRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of bans that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested bans are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelBans operation.
/// </summary>
public partial class ListChannelBansResponse : AmazonWebServiceResponse
{
private string _channelArn;
private List<ChannelBanSummary> _channelBans = new List<ChannelBanSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChannelBans.
/// <para>
/// The information for each requested ban.
/// </para>
/// </summary>
public List<ChannelBanSummary> ChannelBans
{
get { return this._channelBans; }
set { this._channelBans = value; }
}
// Check to see if ChannelBans property is set
internal bool IsSetChannelBans()
{
return this._channelBans != null && this._channelBans.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested bans are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelFlows operation.
/// Returns a paginated lists of all the channel flows created under a single Chime. This
/// is a developer API.
/// </summary>
public partial class ListChannelFlowsRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceArn;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppInstanceArn.
/// <para>
/// The ARN of the app instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string AppInstanceArn
{
get { return this._appInstanceArn; }
set { this._appInstanceArn = value; }
}
// Check to see if AppInstanceArn property is set
internal bool IsSetAppInstanceArn()
{
return this._appInstanceArn != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channel flows that you want to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channel flows are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 100 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelFlows operation.
/// </summary>
public partial class ListChannelFlowsResponse : AmazonWebServiceResponse
{
private List<ChannelFlowSummary> _channelFlows = new List<ChannelFlowSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelFlows.
/// <para>
/// The information about each channel flow.
/// </para>
/// </summary>
public List<ChannelFlowSummary> ChannelFlows
{
get { return this._channelFlows; }
set { this._channelFlows = value; }
}
// Check to see if ChannelFlows property is set
internal bool IsSetChannelFlows()
{
return this._channelFlows != null && this._channelFlows.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelMembershipsForAppInstanceUser operation.
/// Lists all channels that an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>
/// is a part of. Only an <code>AppInstanceAdmin</code> can call the API with a user ARN
/// that is not their own.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelMembershipsForAppInstanceUserRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceUserArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppInstanceUserArn.
/// <para>
/// The ARN of the user or bot.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string AppInstanceUserArn
{
get { return this._appInstanceUserArn; }
set { this._appInstanceUserArn = value; }
}
// Check to see if AppInstanceUserArn property is set
internal bool IsSetAppInstanceUserArn()
{
return this._appInstanceUserArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of users that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API requests until the number of channel memberships
/// is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 131 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelMembershipsForAppInstanceUser operation.
/// </summary>
public partial class ListChannelMembershipsForAppInstanceUserResponse : AmazonWebServiceResponse
{
private List<ChannelMembershipForAppInstanceUserSummary> _channelMemberships = new List<ChannelMembershipForAppInstanceUserSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelMemberships.
/// <para>
/// The information for the requested channel memberships.
/// </para>
/// </summary>
public List<ChannelMembershipForAppInstanceUserSummary> ChannelMemberships
{
get { return this._channelMemberships; }
set { this._channelMemberships = value; }
}
// Check to see if ChannelMemberships property is set
internal bool IsSetChannelMemberships()
{
return this._channelMemberships != null && this._channelMemberships.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested users are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelMemberships operation.
/// Lists all channel memberships in a channel.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// <para>
/// If you want to list the channels to which a specific app instance user belongs, see
/// the <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_messaging-chime_ListChannelMembershipsForAppInstanceUser.html">ListChannelMembershipsForAppInstanceUser</a>
/// API.
/// </para>
/// </summary>
public partial class ListChannelMembershipsRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
private string _subChannelId;
private ChannelMembershipType _type;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The maximum number of channel memberships that you want returned.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channel memberships that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channel memberships are
/// returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// <note>
/// <para>
/// Only required when listing a user's memberships in a particular sub-channel of an
/// elastic channel.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The membership type of a user, <code>DEFAULT</code> or <code>HIDDEN</code>. Default
/// members are returned as part of <code>ListChannelMemberships</code> if no type is
/// specified. Hidden members are only returned if the type filter in <code>ListChannelMemberships</code>
/// equals <code>HIDDEN</code>.
/// </para>
/// </summary>
public ChannelMembershipType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 182 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelMemberships operation.
/// </summary>
public partial class ListChannelMembershipsResponse : AmazonWebServiceResponse
{
private string _channelArn;
private List<ChannelMembershipSummary> _channelMemberships = new List<ChannelMembershipSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChannelMemberships.
/// <para>
/// The information for the requested channel memberships.
/// </para>
/// </summary>
public List<ChannelMembershipSummary> ChannelMemberships
{
get { return this._channelMemberships; }
set { this._channelMemberships = value; }
}
// Check to see if ChannelMemberships property is set
internal bool IsSetChannelMemberships()
{
return this._channelMemberships != null && this._channelMemberships.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channel memberships are
/// returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelMessages operation.
/// List all the messages in a channel. Returns a paginated list of <code>ChannelMessages</code>.
/// By default, sorted by creation timestamp in descending order.
///
/// <note>
/// <para>
/// Redacted messages appear in the results as empty, since they are only redacted, not
/// deleted. Deleted messages do not appear in the results. This action always returns
/// the latest version of an edited message.
/// </para>
///
/// <para>
/// Also, the <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN
/// of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the
/// API call as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelMessagesRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
private DateTime? _notAfter;
private DateTime? _notBefore;
private SortOrder _sortOrder;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of messages that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested messages are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property NotAfter.
/// <para>
/// The final or ending time stamp for your requested messages.
/// </para>
/// </summary>
public DateTime NotAfter
{
get { return this._notAfter.GetValueOrDefault(); }
set { this._notAfter = value; }
}
// Check to see if NotAfter property is set
internal bool IsSetNotAfter()
{
return this._notAfter.HasValue;
}
/// <summary>
/// Gets and sets the property NotBefore.
/// <para>
/// The initial or starting time stamp for your requested messages.
/// </para>
/// </summary>
public DateTime NotBefore
{
get { return this._notBefore.GetValueOrDefault(); }
set { this._notBefore = value; }
}
// Check to see if NotBefore property is set
internal bool IsSetNotBefore()
{
return this._notBefore.HasValue;
}
/// <summary>
/// Gets and sets the property SortOrder.
/// <para>
/// The order in which you want messages sorted. Default is Descending, based on time
/// created.
/// </para>
/// </summary>
public SortOrder SortOrder
{
get { return this._sortOrder; }
set { this._sortOrder = value; }
}
// Check to see if SortOrder property is set
internal bool IsSetSortOrder()
{
return this._sortOrder != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// <note>
/// <para>
/// Only required when listing the messages in a SubChannel that the user belongs to.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 218 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelMessages operation.
/// </summary>
public partial class ListChannelMessagesResponse : AmazonWebServiceResponse
{
private string _channelArn;
private List<ChannelMessageSummary> _channelMessages = new List<ChannelMessageSummary>();
private string _nextToken;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel containing the requested messages.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChannelMessages.
/// <para>
/// The information about, and content of, each requested message.
/// </para>
/// </summary>
public List<ChannelMessageSummary> ChannelMessages
{
get { return this._channelMessages; }
set { this._channelMessages = value; }
}
// Check to see if ChannelMessages property is set
internal bool IsSetChannelMessages()
{
return this._channelMessages != null && this._channelMessages.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested messages are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelModerators operation.
/// Lists all the moderators for a channel.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelModeratorsRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of moderators that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested moderators are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelModerators operation.
/// </summary>
public partial class ListChannelModeratorsResponse : AmazonWebServiceResponse
{
private string _channelArn;
private List<ChannelModeratorSummary> _channelModerators = new List<ChannelModeratorSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChannelModerators.
/// <para>
/// The information about and names of each moderator.
/// </para>
/// </summary>
public List<ChannelModeratorSummary> ChannelModerators
{
get { return this._channelModerators; }
set { this._channelModerators = value; }
}
// Check to see if ChannelModerators property is set
internal bool IsSetChannelModerators()
{
return this._channelModerators != null && this._channelModerators.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested moderators are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelsAssociatedWithChannelFlow operation.
/// Lists all channels associated with a specified channel flow. You can associate a channel
/// flow with multiple channels, but you can only associate a channel with one channel
/// flow. This is a developer API.
/// </summary>
public partial class ListChannelsAssociatedWithChannelFlowRequest : AmazonChimeSDKMessagingRequest
{
private string _channelFlowArn;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelFlowArn.
/// <para>
/// The ARN of the channel flow.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelFlowArn
{
get { return this._channelFlowArn; }
set { this._channelFlowArn = value; }
}
// Check to see if ChannelFlowArn property is set
internal bool IsSetChannelFlowArn()
{
return this._channelFlowArn != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channels that you want to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelsAssociatedWithChannelFlow operation.
/// </summary>
public partial class ListChannelsAssociatedWithChannelFlowResponse : AmazonWebServiceResponse
{
private List<ChannelAssociatedWithFlowSummary> _channels = new List<ChannelAssociatedWithFlowSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Channels.
/// <para>
/// The information about each channel.
/// </para>
/// </summary>
public List<ChannelAssociatedWithFlowSummary> Channels
{
get { return this._channels; }
set { this._channels = value; }
}
// Check to see if Channels property is set
internal bool IsSetChannels()
{
return this._channels != null && this._channels.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannelsModeratedByAppInstanceUser operation.
/// A list of the channels moderated by an <code>AppInstanceUser</code>.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelsModeratedByAppInstanceUserRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceUserArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppInstanceUserArn.
/// <para>
/// The ARN of the user or bot in the moderated channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string AppInstanceUserArn
{
get { return this._appInstanceUserArn; }
set { this._appInstanceUserArn = value; }
}
// Check to see if AppInstanceUserArn property is set
internal bool IsSetAppInstanceUserArn()
{
return this._appInstanceUserArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channels in the request.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API requests until the number of channels moderated
/// by the user is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 129 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannelsModeratedByAppInstanceUser operation.
/// </summary>
public partial class ListChannelsModeratedByAppInstanceUserResponse : AmazonWebServiceResponse
{
private List<ChannelModeratedByAppInstanceUserSummary> _channels = new List<ChannelModeratedByAppInstanceUserSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Channels.
/// <para>
/// The moderated channels in the request.
/// </para>
/// </summary>
public List<ChannelModeratedByAppInstanceUserSummary> Channels
{
get { return this._channels; }
set { this._channels = value; }
}
// Check to see if Channels property is set
internal bool IsSetChannels()
{
return this._channels != null && this._channels.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API requests until the number of channels moderated
/// by the user is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListChannels operation.
/// Lists all Channels created under a single Chime App as a paginated list. You can specify
/// filters to narrow results.
///
/// <p class="title"> <b>Functionality & restrictions</b>
/// </para>
/// <ul> <li>
/// <para>
/// Use privacy = <code>PUBLIC</code> to retrieve all public channels in the account.
/// </para>
/// </li> <li>
/// <para>
/// Only an <code>AppInstanceAdmin</code> can set privacy = <code>PRIVATE</code> to list
/// the private channels in an account.
/// </para>
/// </li> </ul> <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class ListChannelsRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
private ChannelPrivacy _privacy;
/// <summary>
/// Gets and sets the property AppInstanceArn.
/// <para>
/// The ARN of the <code>AppInstance</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string AppInstanceArn
{
get { return this._appInstanceArn; }
set { this._appInstanceArn = value; }
}
// Check to see if AppInstanceArn property is set
internal bool IsSetAppInstanceArn()
{
return this._appInstanceArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channels that you want to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Privacy.
/// <para>
/// The privacy setting. <code>PUBLIC</code> retrieves all the public channels. <code>PRIVATE</code>
/// retrieves private channels. Only an <code>AppInstanceAdmin</code> can retrieve private
/// channels.
/// </para>
/// </summary>
public ChannelPrivacy Privacy
{
get { return this._privacy; }
set { this._privacy = value; }
}
// Check to see if Privacy property is set
internal bool IsSetPrivacy()
{
return this._privacy != null;
}
}
}
| 161 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListChannels operation.
/// </summary>
public partial class ListChannelsResponse : AmazonWebServiceResponse
{
private List<ChannelSummary> _channels = new List<ChannelSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Channels.
/// <para>
/// The information about each channel.
/// </para>
/// </summary>
public List<ChannelSummary> Channels
{
get { return this._channels; }
set { this._channels = value; }
}
// Check to see if Channels property is set
internal bool IsSetChannels()
{
return this._channels != null && this._channels.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API requests until the number of channels is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListSubChannels operation.
/// Lists all the SubChannels in an elastic channel when given a channel ID. Available
/// only to the app instance admins and channel moderators of elastic channels.
/// </summary>
public partial class ListSubChannelsRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of elastic channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The <code>AppInstanceUserArn</code> of the user making the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of sub-channels that you want to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested sub-channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListSubChannels operation.
/// </summary>
public partial class ListSubChannelsResponse : AmazonWebServiceResponse
{
private string _channelArn;
private string _nextToken;
private List<SubChannelSummary> _subChannels = new List<SubChannelSummary>();
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of elastic channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token passed by previous API calls until all requested sub-channels are returned.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property SubChannels.
/// <para>
/// The information about each sub-channel.
/// </para>
/// </summary>
public List<SubChannelSummary> SubChannels
{
get { return this._subChannels; }
set { this._subChannels = value; }
}
// Check to see if SubChannels property is set
internal bool IsSetSubChannels()
{
return this._subChannels != null && this._subChannels.Count > 0;
}
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Lists the tags applied to an Amazon Chime SDK messaging resource.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonChimeSDKMessagingRequest
{
private string _resourceARN;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tag key-value pairs.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// A list of message attribute values.
/// </summary>
public partial class MessageAttributeValue
{
private List<string> _stringValues = new List<string>();
/// <summary>
/// Gets and sets the property StringValues.
/// <para>
/// The strings in a message attribute value.
/// </para>
/// </summary>
public List<string> StringValues
{
get { return this._stringValues; }
set { this._stringValues = value; }
}
// Check to see if StringValues property is set
internal bool IsSetStringValues()
{
return this._stringValues != null && this._stringValues.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The websocket endpoint used to connect to Amazon Chime SDK messaging.
/// </summary>
public partial class MessagingSessionEndpoint
{
private string _url;
/// <summary>
/// Gets and sets the property Url.
/// <para>
/// The endpoint to which you establish a websocket connection.
/// </para>
/// </summary>
[AWSProperty(Max=4096)]
public string Url
{
get { return this._url; }
set { this._url = value; }
}
// Check to see if Url property is set
internal bool IsSetUrl()
{
return this._url != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// One or more of the resources in the request does not exist in the system.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotFoundException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new NotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotFoundException
/// </summary>
/// <param name="innerException"></param>
public NotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the NotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected NotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The information about a processor in a channel flow.
/// </summary>
public partial class Processor
{
private ProcessorConfiguration _configuration;
private int? _executionOrder;
private FallbackAction _fallbackAction;
private string _name;
/// <summary>
/// Gets and sets the property Configuration.
/// <para>
/// The information about the type of processor and its identifier.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ProcessorConfiguration Configuration
{
get { return this._configuration; }
set { this._configuration = value; }
}
// Check to see if Configuration property is set
internal bool IsSetConfiguration()
{
return this._configuration != null;
}
/// <summary>
/// Gets and sets the property ExecutionOrder.
/// <para>
/// The sequence in which processors run. If you have multiple processors in a channel
/// flow, message processing goes through each processor in the sequence. The value determines
/// the sequence. At this point, we support only 1 processor within a flow.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=3)]
public int ExecutionOrder
{
get { return this._executionOrder.GetValueOrDefault(); }
set { this._executionOrder = value; }
}
// Check to see if ExecutionOrder property is set
internal bool IsSetExecutionOrder()
{
return this._executionOrder.HasValue;
}
/// <summary>
/// Gets and sets the property FallbackAction.
/// <para>
/// Determines whether to continue with message processing or stop it in cases where communication
/// with a processor fails. If a processor has a fallback action of <code>ABORT</code>
/// and communication with it fails, the processor sets the message status to <code>FAILED</code>
/// and does not send the message to any recipients. Note that if the last processor in
/// the channel flow sequence has a fallback action of <code>CONTINUE</code> and communication
/// with the processor fails, then the message is considered processed and sent to recipients
/// of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FallbackAction FallbackAction
{
get { return this._fallbackAction; }
set { this._fallbackAction = value; }
}
// Check to see if FallbackAction property is set
internal bool IsSetFallbackAction()
{
return this._fallbackAction != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the channel flow.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
}
| 126 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// A processor's metadata.
/// </summary>
public partial class ProcessorConfiguration
{
private LambdaConfiguration _lambda;
/// <summary>
/// Gets and sets the property Lambda.
/// <para>
/// Indicates that the processor is of type Lambda.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public LambdaConfiguration Lambda
{
get { return this._lambda; }
set { this._lambda = value; }
}
// Check to see if Lambda property is set
internal bool IsSetLambda()
{
return this._lambda != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The push notification configuration of the message.
/// </summary>
public partial class PushNotificationConfiguration
{
private string _body;
private string _title;
private PushNotificationType _type;
/// <summary>
/// Gets and sets the property Body.
/// <para>
/// The body of the push notification.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=150)]
public string Body
{
get { return this._body; }
set { this._body = value; }
}
// Check to see if Body property is set
internal bool IsSetBody()
{
return this._body != null;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// The title of the push notification.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// Enum value that indicates the type of the push notification for a message. <code>DEFAULT</code>:
/// Normal mobile push notification. <code>VOIP</code>: VOIP mobile push notification.
/// </para>
/// </summary>
public PushNotificationType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The channel membership preferences for push notification.
/// </summary>
public partial class PushNotificationPreferences
{
private AllowNotifications _allowNotifications;
private string _filterRule;
/// <summary>
/// Gets and sets the property AllowNotifications.
/// <para>
/// Enum value that indicates which push notifications to send to the requested member
/// of a channel. <code>ALL</code> sends all push notifications, <code>NONE</code> sends
/// no push notifications, <code>FILTERED</code> sends only filtered push notifications.
///
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AllowNotifications AllowNotifications
{
get { return this._allowNotifications; }
set { this._allowNotifications = value; }
}
// Check to see if AllowNotifications property is set
internal bool IsSetAllowNotifications()
{
return this._allowNotifications != null;
}
/// <summary>
/// Gets and sets the property FilterRule.
/// <para>
/// The simple JSON object used to send a subset of a push notification to the requested
/// member.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1)]
public string FilterRule
{
get { return this._filterRule; }
set { this._filterRule = value; }
}
// Check to see if FilterRule property is set
internal bool IsSetFilterRule()
{
return this._filterRule != null;
}
}
}
| 82 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the PutChannelExpirationSettings operation.
/// Sets the number of days before the channel is automatically deleted.
///
/// <note> <ul> <li>
/// <para>
/// A background process deletes expired channels within 6 hours of expiration. Actual
/// deletion times may vary.
/// </para>
/// </li> <li>
/// <para>
/// Expired channels that have not yet been deleted appear as active, and you can update
/// their expiration settings. The system honors the new settings.
/// </para>
/// </li> <li>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial class PutChannelExpirationSettingsRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private ExpirationSettings _expirationSettings;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property ExpirationSettings.
/// <para>
/// Settings that control the interval after which a channel is deleted.
/// </para>
/// </summary>
public ExpirationSettings ExpirationSettings
{
get { return this._expirationSettings; }
set { this._expirationSettings = value; }
}
// Check to see if ExpirationSettings property is set
internal bool IsSetExpirationSettings()
{
return this._expirationSettings != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the PutChannelExpirationSettings operation.
/// </summary>
public partial class PutChannelExpirationSettingsResponse : AmazonWebServiceResponse
{
private string _channelArn;
private ExpirationSettings _expirationSettings;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The channel ARN.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ExpirationSettings.
/// <para>
/// Settings that control the interval after which a channel is deleted.
/// </para>
/// </summary>
public ExpirationSettings ExpirationSettings
{
get { return this._expirationSettings; }
set { this._expirationSettings = value; }
}
// Check to see if ExpirationSettings property is set
internal bool IsSetExpirationSettings()
{
return this._expirationSettings != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the PutChannelMembershipPreferences operation.
/// Sets the membership preferences of an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>
/// for the specified channel. The user or bot must be a member of the channel. Only the
/// user or bot who owns the membership can set preferences. Users or bots in the <code>AppInstanceAdmin</code>
/// and channel moderator roles can't set preferences for other users. Banned users or
/// bots can't set membership preferences for the channel from which they are banned.
///
/// <note>
/// <para>
/// The x-amz-chime-bearer request header is mandatory. Use the ARN of an <code>AppInstanceUser</code>
/// or <code>AppInstanceBot</code> that makes the API call as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class PutChannelMembershipPreferencesRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _memberArn;
private ChannelMembershipPreferences _preferences;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MemberArn.
/// <para>
/// The ARN of the member setting the preferences.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string MemberArn
{
get { return this._memberArn; }
set { this._memberArn = value; }
}
// Check to see if MemberArn property is set
internal bool IsSetMemberArn()
{
return this._memberArn != null;
}
/// <summary>
/// Gets and sets the property Preferences.
/// <para>
/// The channel membership preferences of an <code>AppInstanceUser</code> .
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ChannelMembershipPreferences Preferences
{
get { return this._preferences; }
set { this._preferences = value; }
}
// Check to see if Preferences property is set
internal bool IsSetPreferences()
{
return this._preferences != null;
}
}
}
| 131 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the PutChannelMembershipPreferences operation.
/// </summary>
public partial class PutChannelMembershipPreferencesResponse : AmazonWebServiceResponse
{
private string _channelArn;
private Identity _member;
private ChannelMembershipPreferences _preferences;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property Member.
/// <para>
/// The details of a user.
/// </para>
/// </summary>
public Identity Member
{
get { return this._member; }
set { this._member = value; }
}
// Check to see if Member property is set
internal bool IsSetMember()
{
return this._member != null;
}
/// <summary>
/// Gets and sets the property Preferences.
/// <para>
/// The ARN and metadata of the member being added.
/// </para>
/// </summary>
public ChannelMembershipPreferences Preferences
{
get { return this._preferences; }
set { this._preferences = value; }
}
// Check to see if Preferences property is set
internal bool IsSetPreferences()
{
return this._preferences != null;
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the PutMessagingStreamingConfigurations operation.
/// Sets the data streaming configuration for an <code>AppInstance</code>. For more information,
/// see <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/streaming-export.html">Streaming
/// messaging data</a> in the <i>Amazon Chime SDK Developer Guide</i>.
/// </summary>
public partial class PutMessagingStreamingConfigurationsRequest : AmazonChimeSDKMessagingRequest
{
private string _appInstanceArn;
private List<StreamingConfiguration> _streamingConfigurations = new List<StreamingConfiguration>();
/// <summary>
/// Gets and sets the property AppInstanceArn.
/// <para>
/// The ARN of the streaming configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string AppInstanceArn
{
get { return this._appInstanceArn; }
set { this._appInstanceArn = value; }
}
// Check to see if AppInstanceArn property is set
internal bool IsSetAppInstanceArn()
{
return this._appInstanceArn != null;
}
/// <summary>
/// Gets and sets the property StreamingConfigurations.
/// <para>
/// The streaming configurations.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2)]
public List<StreamingConfiguration> StreamingConfigurations
{
get { return this._streamingConfigurations; }
set { this._streamingConfigurations = value; }
}
// Check to see if StreamingConfigurations property is set
internal bool IsSetStreamingConfigurations()
{
return this._streamingConfigurations != null && this._streamingConfigurations.Count > 0;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the PutMessagingStreamingConfigurations operation.
/// </summary>
public partial class PutMessagingStreamingConfigurationsResponse : AmazonWebServiceResponse
{
private List<StreamingConfiguration> _streamingConfigurations = new List<StreamingConfiguration>();
/// <summary>
/// Gets and sets the property StreamingConfigurations.
/// <para>
/// The requested streaming configurations.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2)]
public List<StreamingConfiguration> StreamingConfigurations
{
get { return this._streamingConfigurations; }
set { this._streamingConfigurations = value; }
}
// Check to see if StreamingConfigurations property is set
internal bool IsSetStreamingConfigurations()
{
return this._streamingConfigurations != null && this._streamingConfigurations.Count > 0;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the RedactChannelMessage operation.
/// Redacts message content, but not metadata. The message exists in the back end, but
/// the action returns null content, and the state shows as redacted.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class RedactChannelMessageRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _messageId;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel containing the messages that you want to redact.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID of the message being redacted.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 129 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the RedactChannelMessage operation.
/// </summary>
public partial class RedactChannelMessageResponse : AmazonWebServiceResponse
{
private string _channelArn;
private string _messageId;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel containing the messages that you want to redact.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID of the message being redacted.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the response.
/// </para>
/// <note>
/// <para>
/// Only required when redacting messages in a SubChannel that the user belongs to.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The request exceeds the resource limit.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceLimitExceededException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new ResourceLimitExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceLimitExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceLimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceLimitExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceLimitExceededException
/// </summary>
/// <param name="innerException"></param>
public ResourceLimitExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceLimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceLimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceLimitExceededException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the SearchChannels operation.
/// Allows the <code>ChimeBearer</code> to search channels by channel members. Users or
/// bots can search across the channels that they belong to. Users in the <code>AppInstanceAdmin</code>
/// role can search across all channels.
///
///
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </summary>
public partial class SearchChannelsRequest : AmazonChimeSDKMessagingRequest
{
private string _chimeBearer;
private List<SearchField> _fields = new List<SearchField>();
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The <code>AppInstanceUserArn</code> of the user making the API call.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property Fields.
/// <para>
/// A list of the <code>Field</code> objects in the channel being searched.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=20)]
public List<SearchField> Fields
{
get { return this._fields; }
set { this._fields = value; }
}
// Check to see if Fields property is set
internal bool IsSetFields()
{
return this._fields != null && this._fields.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of channels that you want returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API requests until the number of channels is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the SearchChannels operation.
/// </summary>
public partial class SearchChannelsResponse : AmazonWebServiceResponse
{
private List<ChannelSummary> _channels = new List<ChannelSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Channels.
/// <para>
/// A list of the channels in the request.
/// </para>
/// </summary>
public List<ChannelSummary> Channels
{
get { return this._channels; }
set { this._channels = value; }
}
// Check to see if Channels property is set
internal bool IsSetChannels()
{
return this._channels != null && this._channels.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned from previous API responses until the number of channels is reached.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// A <code>Field</code> of the channel that you want to search.
/// </summary>
public partial class SearchField
{
private SearchFieldKey _key;
private SearchFieldOperator _operator;
private List<string> _values = new List<string>();
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// An <code>enum</code> value that indicates the key to search the channel on. <code>MEMBERS</code>
/// allows you to search channels based on memberships. You can use it with the <code>EQUALS</code>
/// operator to get channels whose memberships are equal to the specified values, and
/// with the <code>INCLUDES</code> operator to get channels whose memberships include
/// the specified values.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public SearchFieldKey Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Operator.
/// <para>
/// The operator used to compare field values, currently <code>EQUALS</code> or <code>INCLUDES</code>.
/// Use the <code>EQUALS</code> operator to find channels whose memberships equal the
/// specified values. Use the <code>INCLUDES</code> operator to find channels whose memberships
/// include the specified values.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public SearchFieldOperator Operator
{
get { return this._operator; }
set { this._operator = value; }
}
// Check to see if Operator property is set
internal bool IsSetOperator()
{
return this._operator != null;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// The values that you want to search for, a list of strings. The values must be <code>AppInstanceUserArns</code>
/// specified as a list of strings.
/// </para>
/// <note>
/// <para>
/// This operation isn't supported for <code>AppInstanceUsers</code> with large number
/// of memberships.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=20)]
public List<string> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
}
| 112 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the SendChannelMessage operation.
/// Sends a message to a particular channel that the member is a part of.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
///
/// <para>
/// Also, <code>STANDARD</code> messages can be up to 4KB in size and contain metadata.
/// Metadata is arbitrary, and you can use it in a variety of ways, such as containing
/// a link to an attachment.
/// </para>
///
/// <para>
/// <code>CONTROL</code> messages are limited to 30 bytes and do not contain metadata.
/// </para>
/// </note>
/// </summary>
public partial class SendChannelMessageRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _clientRequestToken;
private string _content;
private string _contentType;
private Dictionary<string, MessageAttributeValue> _messageAttributes = new Dictionary<string, MessageAttributeValue>();
private string _metadata;
private ChannelMessagePersistenceType _persistence;
private PushNotificationConfiguration _pushNotification;
private string _subChannelId;
private List<Target> _target = new List<Target>();
private ChannelMessageType _type;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property ClientRequestToken.
/// <para>
/// The <code>Idempotency</code> token for each client request.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=2, Max=64)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
/// <summary>
/// Gets and sets the property Content.
/// <para>
/// The content of the channel message.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1)]
public string Content
{
get { return this._content; }
set { this._content = value; }
}
// Check to see if Content property is set
internal bool IsSetContent()
{
return this._content != null;
}
/// <summary>
/// Gets and sets the property ContentType.
/// <para>
/// The content type of the channel message.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=45)]
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
/// <summary>
/// Gets and sets the property MessageAttributes.
/// <para>
/// The attributes for the message, used for message filtering along with a <code>FilterRule</code>
/// defined in the <code>PushNotificationPreferences</code>.
/// </para>
/// </summary>
public Dictionary<string, MessageAttributeValue> MessageAttributes
{
get { return this._messageAttributes; }
set { this._messageAttributes = value; }
}
// Check to see if MessageAttributes property is set
internal bool IsSetMessageAttributes()
{
return this._messageAttributes != null && this._messageAttributes.Count > 0;
}
/// <summary>
/// Gets and sets the property Metadata.
/// <para>
/// The optional metadata for each message.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=1024)]
public string Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
/// <summary>
/// Gets and sets the property Persistence.
/// <para>
/// Boolean that controls whether the message is persisted on the back end. Required.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ChannelMessagePersistenceType Persistence
{
get { return this._persistence; }
set { this._persistence = value; }
}
// Check to see if Persistence property is set
internal bool IsSetPersistence()
{
return this._persistence != null;
}
/// <summary>
/// Gets and sets the property PushNotification.
/// <para>
/// The push notification configuration of the message.
/// </para>
/// </summary>
public PushNotificationConfiguration PushNotification
{
get { return this._pushNotification; }
set { this._pushNotification = value; }
}
// Check to see if PushNotification property is set
internal bool IsSetPushNotification()
{
return this._pushNotification != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
/// <summary>
/// Gets and sets the property Target.
/// <para>
/// The target of a message. Must be a member of the channel, such as another user, a
/// bot, or the sender. Only the target and the sender can view targeted messages. Only
/// users who can see targeted messages can take actions on them. However, administrators
/// can delete targeted messages that they can’t see.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1)]
public List<Target> Target
{
get { return this._target; }
set { this._target = value; }
}
// Check to see if Target property is set
internal bool IsSetTarget()
{
return this._target != null && this._target.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of message, <code>STANDARD</code> or <code>CONTROL</code>.
/// </para>
///
/// <para>
/// <code>STANDARD</code> messages can be up to 4KB in size and contain metadata. Metadata
/// is arbitrary, and you can use it in a variety of ways, such as containing a link to
/// an attachment.
/// </para>
///
/// <para>
/// <code>CONTROL</code> messages are limited to 30 bytes and do not contain metadata.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ChannelMessageType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 310 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the SendChannelMessage operation.
/// </summary>
public partial class SendChannelMessageResponse : AmazonWebServiceResponse
{
private string _channelArn;
private string _messageId;
private ChannelMessageStatusStructure _status;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID string assigned to each message.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the channel message.
/// </para>
/// </summary>
public ChannelMessageStatusStructure Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The service encountered an unexpected error.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceFailureException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new ServiceFailureException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceFailureException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceFailureException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceFailureException
/// </summary>
/// <param name="innerException"></param>
public ServiceFailureException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ServiceFailureException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ServiceFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The service is currently unavailable.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceUnavailableException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new ServiceUnavailableException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceUnavailableException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceUnavailableException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="innerException"></param>
public ServiceUnavailableException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ServiceUnavailableException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The configuration for connecting a messaging stream to Amazon Kinesis.
/// </summary>
public partial class StreamingConfiguration
{
private MessagingDataType _dataType;
private string _resourceArn;
/// <summary>
/// Gets and sets the property DataType.
/// <para>
/// The data type of the configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MessagingDataType DataType
{
get { return this._dataType; }
set { this._dataType = value; }
}
// Check to see if DataType property is set
internal bool IsSetDataType()
{
return this._dataType != null;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The ARN of the resource in the configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Summary of the sub-channels associated with the elastic channel.
/// </summary>
public partial class SubChannelSummary
{
private int? _membershipCount;
private string _subChannelId;
/// <summary>
/// Gets and sets the property MembershipCount.
/// <para>
/// The number of members in a SubChannel.
/// </para>
/// </summary>
public int MembershipCount
{
get { return this._membershipCount.GetValueOrDefault(); }
set { this._membershipCount = value; }
}
// Check to see if MembershipCount property is set
internal bool IsSetMembershipCount()
{
return this._membershipCount.HasValue;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The unique ID of a SubChannel.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// A tag object containing a key-value pair.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The key in a tag.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value in a tag.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Applies the specified tags to the specified Amazon Chime SDK messaging resource.
/// </summary>
public partial class TagResourceRequest : AmazonChimeSDKMessagingRequest
{
private string _resourceARN;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The resource ARN.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tag key-value pairs.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the TagResource operation.
/// </summary>
public partial class TagResourceResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The target of a message, a sender, a user, or a bot. Only the target and the sender
/// can view targeted messages. Only users who can see targeted messages can take actions
/// on them. However, administrators can delete targeted messages that they can’t see.
/// </summary>
public partial class Target
{
private string _memberArn;
/// <summary>
/// Gets and sets the property MemberArn.
/// <para>
/// The ARN of the target channel member.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string MemberArn
{
get { return this._memberArn; }
set { this._memberArn = value; }
}
// Check to see if MemberArn property is set
internal bool IsSetMemberArn()
{
return this._memberArn != null;
}
}
}
| 60 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The client exceeded its request rate limit.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottledClientException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new ThrottledClientException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottledClientException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottledClientException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottledClientException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottledClientException
/// </summary>
/// <param name="innerException"></param>
public ThrottledClientException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottledClientException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottledClientException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottledClientException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottledClientException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ThrottledClientException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ThrottledClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// The client is not currently authorized to make the request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class UnauthorizedClientException : AmazonChimeSDKMessagingException
{
private ErrorCode _code;
/// <summary>
/// Constructs a new UnauthorizedClientException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public UnauthorizedClientException(string message)
: base(message) {}
/// <summary>
/// Construct instance of UnauthorizedClientException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public UnauthorizedClientException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of UnauthorizedClientException
/// </summary>
/// <param name="innerException"></param>
public UnauthorizedClientException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of UnauthorizedClientException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public UnauthorizedClientException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of UnauthorizedClientException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public UnauthorizedClientException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the UnauthorizedClientException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected UnauthorizedClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// Removes the specified tags from the specified Amazon Chime SDK messaging resource.
/// </summary>
public partial class UntagResourceRequest : AmazonChimeSDKMessagingRequest
{
private string _resourceARN;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The resource ARN.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// The tag keys.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the UntagResource operation.
/// </summary>
public partial class UntagResourceResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the UpdateChannelFlow operation.
/// Updates channel flow attributes. This is a developer API.
/// </summary>
public partial class UpdateChannelFlowRequest : AmazonChimeSDKMessagingRequest
{
private string _channelFlowArn;
private string _name;
private List<Processor> _processors = new List<Processor>();
/// <summary>
/// Gets and sets the property ChannelFlowArn.
/// <para>
/// The ARN of the channel flow.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelFlowArn
{
get { return this._channelFlowArn; }
set { this._channelFlowArn = value; }
}
// Check to see if ChannelFlowArn property is set
internal bool IsSetChannelFlowArn()
{
return this._channelFlowArn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the channel flow.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Processors.
/// <para>
/// Information about the processor Lambda functions
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=3)]
public List<Processor> Processors
{
get { return this._processors; }
set { this._processors = value; }
}
// Check to see if Processors property is set
internal bool IsSetProcessors()
{
return this._processors != null && this._processors.Count > 0;
}
}
}
| 99 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the UpdateChannelFlow operation.
/// </summary>
public partial class UpdateChannelFlowResponse : AmazonWebServiceResponse
{
private string _channelFlowArn;
/// <summary>
/// Gets and sets the property ChannelFlowArn.
/// <para>
/// The ARN of the channel flow.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelFlowArn
{
get { return this._channelFlowArn; }
set { this._channelFlowArn = value; }
}
// Check to see if ChannelFlowArn property is set
internal bool IsSetChannelFlowArn()
{
return this._channelFlowArn != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the UpdateChannelMessage operation.
/// Updates the content of a message.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class UpdateChannelMessageRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _content;
private string _contentType;
private string _messageId;
private string _metadata;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property Content.
/// <para>
/// The content of the channel message.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1)]
public string Content
{
get { return this._content; }
set { this._content = value; }
}
// Check to see if Content property is set
internal bool IsSetContent()
{
return this._content != null;
}
/// <summary>
/// Gets and sets the property ContentType.
/// <para>
/// The content type of the channel message.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=45)]
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID string of the message being updated.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property Metadata.
/// <para>
/// The metadata of the message being updated.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=1024)]
public string Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the request.
/// </para>
/// <note>
/// <para>
/// Only required when updating messages in a SubChannel that the user belongs to.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 193 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the UpdateChannelMessage operation.
/// </summary>
public partial class UpdateChannelMessageResponse : AmazonWebServiceResponse
{
private string _channelArn;
private string _messageId;
private ChannelMessageStatusStructure _status;
private string _subChannelId;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property MessageId.
/// <para>
/// The ID string of the message being updated.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the message update.
/// </para>
/// </summary>
public ChannelMessageStatusStructure Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property SubChannelId.
/// <para>
/// The ID of the SubChannel in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the UpdateChannelReadMarker operation.
/// The details of the time when a user last read messages in a channel.
///
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class UpdateChannelReadMarkerRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
}
}
| 88 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the UpdateChannelReadMarker operation.
/// </summary>
public partial class UpdateChannelReadMarkerResponse : AmazonWebServiceResponse
{
private string _channelArn;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// Container for the parameters to the UpdateChannel operation.
/// Update a channel's attributes.
///
///
/// <para>
/// <b>Restriction</b>: You can't change a channel's privacy.
/// </para>
/// <note>
/// <para>
/// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the ARN of the
/// <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call
/// as the value in the header.
/// </para>
/// </note>
/// </summary>
public partial class UpdateChannelRequest : AmazonChimeSDKMessagingRequest
{
private string _channelArn;
private string _chimeBearer;
private string _metadata;
private ChannelMode _mode;
private string _name;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
/// <summary>
/// Gets and sets the property ChimeBearer.
/// <para>
/// The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes
/// the API call.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=5, Max=1600)]
public string ChimeBearer
{
get { return this._chimeBearer; }
set { this._chimeBearer = value; }
}
// Check to see if ChimeBearer property is set
internal bool IsSetChimeBearer()
{
return this._chimeBearer != null;
}
/// <summary>
/// Gets and sets the property Metadata.
/// <para>
/// The metadata for the update request.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=1024)]
public string Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
/// <summary>
/// Gets and sets the property Mode.
/// <para>
/// The mode of the update request.
/// </para>
/// </summary>
public ChannelMode Mode
{
get { return this._mode; }
set { this._mode = value; }
}
// Check to see if Mode property is set
internal bool IsSetMode()
{
return this._mode != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the channel.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
}
| 151 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
/// <summary>
/// This is the response object from the UpdateChannel operation.
/// </summary>
public partial class UpdateChannelResponse : AmazonWebServiceResponse
{
private string _channelArn;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel.
/// </para>
/// </summary>
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AppInstanceUserMembershipSummary Object
/// </summary>
public class AppInstanceUserMembershipSummaryUnmarshaller : IUnmarshaller<AppInstanceUserMembershipSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceUserMembershipSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AppInstanceUserMembershipSummary IUnmarshaller<AppInstanceUserMembershipSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AppInstanceUserMembershipSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AppInstanceUserMembershipSummary unmarshalledObject = new AppInstanceUserMembershipSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ReadMarkerTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ReadMarkerTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubChannelId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SubChannelId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AppInstanceUserMembershipSummaryUnmarshaller _instance = new AppInstanceUserMembershipSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AppInstanceUserMembershipSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// AssociateChannelFlow Request Marshaller
/// </summary>
public class AssociateChannelFlowRequestMarshaller : IMarshaller<IRequest, AssociateChannelFlowRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AssociateChannelFlowRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AssociateChannelFlowRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMessaging");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-05-15";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetChannelArn())
throw new AmazonChimeSDKMessagingException("Request object does not have required field ChannelArn set");
request.AddPathResource("{channelArn}", StringUtils.FromString(publicRequest.ChannelArn));
request.ResourcePath = "/channels/{channelArn}/channel-flow";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetChannelFlowArn())
{
context.Writer.WritePropertyName("ChannelFlowArn");
context.Writer.Write(publicRequest.ChannelFlowArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetChimeBearer())
{
request.Headers["x-amz-chime-bearer"] = publicRequest.ChimeBearer;
}
return request;
}
private static AssociateChannelFlowRequestMarshaller _instance = new AssociateChannelFlowRequestMarshaller();
internal static AssociateChannelFlowRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AssociateChannelFlowRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 109 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AssociateChannelFlow operation
/// </summary>
public class AssociateChannelFlowResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
AssociateChannelFlowResponse response = new AssociateChannelFlowResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException"))
{
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
{
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException"))
{
return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
{
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException"))
{
return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException"))
{
return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonChimeSDKMessagingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AssociateChannelFlowResponseUnmarshaller _instance = new AssociateChannelFlowResponseUnmarshaller();
internal static AssociateChannelFlowResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AssociateChannelFlowResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BadRequestException Object
/// </summary>
public class BadRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<BadRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BadRequestException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public BadRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
BadRequestException unmarshalledObject = new BadRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BadRequestExceptionUnmarshaller _instance = new BadRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BadRequestExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 91 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchChannelMemberships Object
/// </summary>
public class BatchChannelMembershipsUnmarshaller : IUnmarshaller<BatchChannelMemberships, XmlUnmarshallerContext>, IUnmarshaller<BatchChannelMemberships, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchChannelMemberships IUnmarshaller<BatchChannelMemberships, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BatchChannelMemberships Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchChannelMemberships unmarshalledObject = new BatchChannelMemberships();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InvitedBy", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.InvitedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Members", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Identity, IdentityUnmarshaller>(IdentityUnmarshaller.Instance);
unmarshalledObject.Members = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubChannelId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SubChannelId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchChannelMembershipsUnmarshaller _instance = new BatchChannelMembershipsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchChannelMembershipsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchCreateChannelMembershipError Object
/// </summary>
public class BatchCreateChannelMembershipErrorUnmarshaller : IUnmarshaller<BatchCreateChannelMembershipError, XmlUnmarshallerContext>, IUnmarshaller<BatchCreateChannelMembershipError, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchCreateChannelMembershipError IUnmarshaller<BatchCreateChannelMembershipError, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BatchCreateChannelMembershipError Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchCreateChannelMembershipError unmarshalledObject = new BatchCreateChannelMembershipError();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ErrorCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ErrorMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MemberArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MemberArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchCreateChannelMembershipErrorUnmarshaller _instance = new BatchCreateChannelMembershipErrorUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchCreateChannelMembershipErrorUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchCreateChannelMembership Request Marshaller
/// </summary>
public class BatchCreateChannelMembershipRequestMarshaller : IMarshaller<IRequest, BatchCreateChannelMembershipRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((BatchCreateChannelMembershipRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchCreateChannelMembershipRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMessaging");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-05-15";
request.HttpMethod = "POST";
request.AddSubResource("operation", "batch-create");
if (!publicRequest.IsSetChannelArn())
throw new AmazonChimeSDKMessagingException("Request object does not have required field ChannelArn set");
request.AddPathResource("{channelArn}", StringUtils.FromString(publicRequest.ChannelArn));
request.ResourcePath = "/channels/{channelArn}/memberships";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMemberArns())
{
context.Writer.WritePropertyName("MemberArns");
context.Writer.WriteArrayStart();
foreach(var publicRequestMemberArnsListValue in publicRequest.MemberArns)
{
context.Writer.Write(publicRequestMemberArnsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetSubChannelId())
{
context.Writer.WritePropertyName("SubChannelId");
context.Writer.Write(publicRequest.SubChannelId);
}
if(publicRequest.IsSetType())
{
context.Writer.WritePropertyName("Type");
context.Writer.Write(publicRequest.Type);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetChimeBearer())
{
request.Headers["x-amz-chime-bearer"] = publicRequest.ChimeBearer;
}
return request;
}
private static BatchCreateChannelMembershipRequestMarshaller _instance = new BatchCreateChannelMembershipRequestMarshaller();
internal static BatchCreateChannelMembershipRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchCreateChannelMembershipRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchCreateChannelMembership operation
/// </summary>
public class BatchCreateChannelMembershipResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
BatchCreateChannelMembershipResponse response = new BatchCreateChannelMembershipResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BatchChannelMemberships", targetDepth))
{
var unmarshaller = BatchChannelMembershipsUnmarshaller.Instance;
response.BatchChannelMemberships = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Errors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<BatchCreateChannelMembershipError, BatchCreateChannelMembershipErrorUnmarshaller>(BatchCreateChannelMembershipErrorUnmarshaller.Instance);
response.Errors = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException"))
{
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
{
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException"))
{
return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLimitExceededException"))
{
return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
{
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException"))
{
return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException"))
{
return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonChimeSDKMessagingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static BatchCreateChannelMembershipResponseUnmarshaller _instance = new BatchCreateChannelMembershipResponseUnmarshaller();
internal static BatchCreateChannelMembershipResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchCreateChannelMembershipResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 144 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelAssociatedWithFlowSummary Object
/// </summary>
public class ChannelAssociatedWithFlowSummaryUnmarshaller : IUnmarshaller<ChannelAssociatedWithFlowSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelAssociatedWithFlowSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelAssociatedWithFlowSummary IUnmarshaller<ChannelAssociatedWithFlowSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelAssociatedWithFlowSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelAssociatedWithFlowSummary unmarshalledObject = new ChannelAssociatedWithFlowSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Metadata", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Metadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Mode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Mode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Privacy", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Privacy = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelAssociatedWithFlowSummaryUnmarshaller _instance = new ChannelAssociatedWithFlowSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelAssociatedWithFlowSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelBanSummary Object
/// </summary>
public class ChannelBanSummaryUnmarshaller : IUnmarshaller<ChannelBanSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelBanSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelBanSummary IUnmarshaller<ChannelBanSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelBanSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelBanSummary unmarshalledObject = new ChannelBanSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Member", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Member = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelBanSummaryUnmarshaller _instance = new ChannelBanSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelBanSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelBan Object
/// </summary>
public class ChannelBanUnmarshaller : IUnmarshaller<ChannelBan, XmlUnmarshallerContext>, IUnmarshaller<ChannelBan, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelBan IUnmarshaller<ChannelBan, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelBan Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelBan unmarshalledObject = new ChannelBan();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedBy", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Member", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Member = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelBanUnmarshaller _instance = new ChannelBanUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelBanUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// ChannelFlowCallback Request Marshaller
/// </summary>
public class ChannelFlowCallbackRequestMarshaller : IMarshaller<IRequest, ChannelFlowCallbackRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ChannelFlowCallbackRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ChannelFlowCallbackRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMessaging");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-05-15";
request.HttpMethod = "POST";
request.AddSubResource("operation", "channel-flow-callback");
if (!publicRequest.IsSetChannelArn())
throw new AmazonChimeSDKMessagingException("Request object does not have required field ChannelArn set");
request.AddPathResource("{channelArn}", StringUtils.FromString(publicRequest.ChannelArn));
request.ResourcePath = "/channels/{channelArn}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCallbackId())
{
context.Writer.WritePropertyName("CallbackId");
context.Writer.Write(publicRequest.CallbackId);
}
else if(!(publicRequest.IsSetCallbackId()))
{
context.Writer.WritePropertyName("CallbackId");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetChannelMessage())
{
context.Writer.WritePropertyName("ChannelMessage");
context.Writer.WriteObjectStart();
var marshaller = ChannelMessageCallbackMarshaller.Instance;
marshaller.Marshall(publicRequest.ChannelMessage, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetDeleteResource())
{
context.Writer.WritePropertyName("DeleteResource");
context.Writer.Write(publicRequest.DeleteResource);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ChannelFlowCallbackRequestMarshaller _instance = new ChannelFlowCallbackRequestMarshaller();
internal static ChannelFlowCallbackRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelFlowCallbackRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelFlowCallback operation
/// </summary>
public class ChannelFlowCallbackResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ChannelFlowCallbackResponse response = new ChannelFlowCallbackResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CallbackId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CallbackId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException"))
{
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
{
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
{
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException"))
{
return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException"))
{
return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonChimeSDKMessagingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ChannelFlowCallbackResponseUnmarshaller _instance = new ChannelFlowCallbackResponseUnmarshaller();
internal static ChannelFlowCallbackResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelFlowCallbackResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 140 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelFlowSummary Object
/// </summary>
public class ChannelFlowSummaryUnmarshaller : IUnmarshaller<ChannelFlowSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelFlowSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelFlowSummary IUnmarshaller<ChannelFlowSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelFlowSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelFlowSummary unmarshalledObject = new ChannelFlowSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelFlowArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelFlowArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Processors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Processor, ProcessorUnmarshaller>(ProcessorUnmarshaller.Instance);
unmarshalledObject.Processors = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelFlowSummaryUnmarshaller _instance = new ChannelFlowSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelFlowSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelFlow Object
/// </summary>
public class ChannelFlowUnmarshaller : IUnmarshaller<ChannelFlow, XmlUnmarshallerContext>, IUnmarshaller<ChannelFlow, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelFlow IUnmarshaller<ChannelFlow, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelFlow Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelFlow unmarshalledObject = new ChannelFlow();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelFlowArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelFlowArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastUpdatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Processors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Processor, ProcessorUnmarshaller>(ProcessorUnmarshaller.Instance);
unmarshalledObject.Processors = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelFlowUnmarshaller _instance = new ChannelFlowUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelFlowUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMembershipForAppInstanceUserSummary Object
/// </summary>
public class ChannelMembershipForAppInstanceUserSummaryUnmarshaller : IUnmarshaller<ChannelMembershipForAppInstanceUserSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelMembershipForAppInstanceUserSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMembershipForAppInstanceUserSummary IUnmarshaller<ChannelMembershipForAppInstanceUserSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMembershipForAppInstanceUserSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMembershipForAppInstanceUserSummary unmarshalledObject = new ChannelMembershipForAppInstanceUserSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AppInstanceUserMembershipSummary", targetDepth))
{
var unmarshaller = AppInstanceUserMembershipSummaryUnmarshaller.Instance;
unmarshalledObject.AppInstanceUserMembershipSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ChannelSummary", targetDepth))
{
var unmarshaller = ChannelSummaryUnmarshaller.Instance;
unmarshalledObject.ChannelSummary = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMembershipForAppInstanceUserSummaryUnmarshaller _instance = new ChannelMembershipForAppInstanceUserSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMembershipForAppInstanceUserSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// ChannelMembershipPreferences Marshaller
/// </summary>
public class ChannelMembershipPreferencesMarshaller : IRequestMarshaller<ChannelMembershipPreferences, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ChannelMembershipPreferences requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPushNotifications())
{
context.Writer.WritePropertyName("PushNotifications");
context.Writer.WriteObjectStart();
var marshaller = PushNotificationPreferencesMarshaller.Instance;
marshaller.Marshall(requestObject.PushNotifications, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ChannelMembershipPreferencesMarshaller Instance = new ChannelMembershipPreferencesMarshaller();
}
}
| 67 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMembershipPreferences Object
/// </summary>
public class ChannelMembershipPreferencesUnmarshaller : IUnmarshaller<ChannelMembershipPreferences, XmlUnmarshallerContext>, IUnmarshaller<ChannelMembershipPreferences, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMembershipPreferences IUnmarshaller<ChannelMembershipPreferences, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMembershipPreferences Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMembershipPreferences unmarshalledObject = new ChannelMembershipPreferences();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("PushNotifications", targetDepth))
{
var unmarshaller = PushNotificationPreferencesUnmarshaller.Instance;
unmarshalledObject.PushNotifications = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMembershipPreferencesUnmarshaller _instance = new ChannelMembershipPreferencesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMembershipPreferencesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMembershipSummary Object
/// </summary>
public class ChannelMembershipSummaryUnmarshaller : IUnmarshaller<ChannelMembershipSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelMembershipSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMembershipSummary IUnmarshaller<ChannelMembershipSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMembershipSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMembershipSummary unmarshalledObject = new ChannelMembershipSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Member", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Member = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMembershipSummaryUnmarshaller _instance = new ChannelMembershipSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMembershipSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMembership Object
/// </summary>
public class ChannelMembershipUnmarshaller : IUnmarshaller<ChannelMembership, XmlUnmarshallerContext>, IUnmarshaller<ChannelMembership, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMembership IUnmarshaller<ChannelMembership, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMembership Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMembership unmarshalledObject = new ChannelMembership();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InvitedBy", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.InvitedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastUpdatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Member", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Member = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubChannelId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SubChannelId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMembershipUnmarshaller _instance = new ChannelMembershipUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMembershipUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// ChannelMessageCallback Marshaller
/// </summary>
public class ChannelMessageCallbackMarshaller : IRequestMarshaller<ChannelMessageCallback, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ChannelMessageCallback requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetContent())
{
context.Writer.WritePropertyName("Content");
context.Writer.Write(requestObject.Content);
}
if(requestObject.IsSetContentType())
{
context.Writer.WritePropertyName("ContentType");
context.Writer.Write(requestObject.ContentType);
}
if(requestObject.IsSetMessageAttributes())
{
context.Writer.WritePropertyName("MessageAttributes");
context.Writer.WriteObjectStart();
foreach (var requestObjectMessageAttributesKvp in requestObject.MessageAttributes)
{
context.Writer.WritePropertyName(requestObjectMessageAttributesKvp.Key);
var requestObjectMessageAttributesValue = requestObjectMessageAttributesKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = MessageAttributeValueMarshaller.Instance;
marshaller.Marshall(requestObjectMessageAttributesValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetMessageId())
{
context.Writer.WritePropertyName("MessageId");
context.Writer.Write(requestObject.MessageId);
}
if(requestObject.IsSetMetadata())
{
context.Writer.WritePropertyName("Metadata");
context.Writer.Write(requestObject.Metadata);
}
if(requestObject.IsSetPushNotification())
{
context.Writer.WritePropertyName("PushNotification");
context.Writer.WriteObjectStart();
var marshaller = PushNotificationConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.PushNotification, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSubChannelId())
{
context.Writer.WritePropertyName("SubChannelId");
context.Writer.Write(requestObject.SubChannelId);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ChannelMessageCallbackMarshaller Instance = new ChannelMessageCallbackMarshaller();
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMessageStatusStructure Object
/// </summary>
public class ChannelMessageStatusStructureUnmarshaller : IUnmarshaller<ChannelMessageStatusStructure, XmlUnmarshallerContext>, IUnmarshaller<ChannelMessageStatusStructure, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMessageStatusStructure IUnmarshaller<ChannelMessageStatusStructure, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMessageStatusStructure Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMessageStatusStructure unmarshalledObject = new ChannelMessageStatusStructure();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Detail", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Detail = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMessageStatusStructureUnmarshaller _instance = new ChannelMessageStatusStructureUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMessageStatusStructureUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMessageSummary Object
/// </summary>
public class ChannelMessageSummaryUnmarshaller : IUnmarshaller<ChannelMessageSummary, XmlUnmarshallerContext>, IUnmarshaller<ChannelMessageSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMessageSummary IUnmarshaller<ChannelMessageSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMessageSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMessageSummary unmarshalledObject = new ChannelMessageSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Content", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Content = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ContentType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ContentType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastEditedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastEditedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastUpdatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MessageAttributes", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, MessageAttributeValue, StringUnmarshaller, MessageAttributeValueUnmarshaller>(StringUnmarshaller.Instance, MessageAttributeValueUnmarshaller.Instance);
unmarshalledObject.MessageAttributes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MessageId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MessageId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Metadata", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Metadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Redacted", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Redacted = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Sender", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Sender = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = ChannelMessageStatusStructureUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Target", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Target, TargetUnmarshaller>(TargetUnmarshaller.Instance);
unmarshalledObject.Target = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMessageSummaryUnmarshaller _instance = new ChannelMessageSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMessageSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 164 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 chime-sdk-messaging-2021-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ChimeSDKMessaging.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ChannelMessage Object
/// </summary>
public class ChannelMessageUnmarshaller : IUnmarshaller<ChannelMessage, XmlUnmarshallerContext>, IUnmarshaller<ChannelMessage, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ChannelMessage IUnmarshaller<ChannelMessage, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ChannelMessage Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ChannelMessage unmarshalledObject = new ChannelMessage();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChannelArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ChannelArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Content", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Content = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ContentType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ContentType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastEditedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastEditedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastUpdatedTimestamp", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MessageAttributes", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, MessageAttributeValue, StringUnmarshaller, MessageAttributeValueUnmarshaller>(StringUnmarshaller.Instance, MessageAttributeValueUnmarshaller.Instance);
unmarshalledObject.MessageAttributes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MessageId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MessageId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Metadata", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Metadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Persistence", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Persistence = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Redacted", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Redacted = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Sender", targetDepth))
{
var unmarshaller = IdentityUnmarshaller.Instance;
unmarshalledObject.Sender = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = ChannelMessageStatusStructureUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubChannelId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SubChannelId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Target", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Target, TargetUnmarshaller>(TargetUnmarshaller.Instance);
unmarshalledObject.Target = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ChannelMessageUnmarshaller _instance = new ChannelMessageUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ChannelMessageUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 182 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.