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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model { /// <summary> /// Container for the parameters to the UpdateMediaInsightsPipelineStatus operation. /// Updates the status of a media insights pipeline. /// </summary> public partial class UpdateMediaInsightsPipelineStatusRequest : AmazonChimeSDKMediaPipelinesRequest { private string _identifier; private MediaPipelineStatusUpdate _updateStatus; /// <summary> /// Gets and sets the property Identifier. /// <para> /// The unique identifier of the resource to be updated. Valid values include the ID and /// ARN of the media insights pipeline. /// </para> /// </summary> [AWSProperty(Required=true, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property UpdateStatus. /// <para> /// The requested status of the media insights pipeline. /// </para> /// </summary> [AWSProperty(Required=true)] public MediaPipelineStatusUpdate UpdateStatus { get { return this._updateStatus; } set { this._updateStatus = value; } } // Check to see if UpdateStatus property is set internal bool IsSetUpdateStatus() { return this._updateStatus != null; } } }
80
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model { /// <summary> /// This is the response object from the UpdateMediaInsightsPipelineStatus operation. /// </summary> public partial class UpdateMediaInsightsPipelineStatusResponse : 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model { /// <summary> /// The video artifact configuration object. /// </summary> public partial class VideoArtifactsConfiguration { private VideoMuxType _muxType; private ArtifactsState _state; /// <summary> /// Gets and sets the property MuxType. /// <para> /// The MUX type of the video artifact configuration object. /// </para> /// </summary> public VideoMuxType MuxType { get { return this._muxType; } set { this._muxType = value; } } // Check to see if MuxType property is set internal bool IsSetMuxType() { return this._muxType != null; } /// <summary> /// Gets and sets the property State. /// <para> /// Indicates whether the video artifact is enabled or disabled. /// </para> /// </summary> [AWSProperty(Required=true)] public ArtifactsState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model { /// <summary> /// The configuration object of a video concatenation pipeline. /// </summary> public partial class VideoConcatenationConfiguration { private ArtifactsConcatenationState _state; /// <summary> /// Gets and sets the property State. /// <para> /// Enables or disables the configuration object. /// </para> /// </summary> [AWSProperty(Required=true)] public ArtifactsConcatenationState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model { /// <summary> /// The configuration settings for a voice analytics processor. /// </summary> public partial class VoiceAnalyticsProcessorConfiguration { private VoiceAnalyticsConfigurationStatus _speakerSearchStatus; private VoiceAnalyticsConfigurationStatus _voiceToneAnalysisStatus; /// <summary> /// Gets and sets the property SpeakerSearchStatus. /// <para> /// The status of the speaker search task. /// </para> /// </summary> public VoiceAnalyticsConfigurationStatus SpeakerSearchStatus { get { return this._speakerSearchStatus; } set { this._speakerSearchStatus = value; } } // Check to see if SpeakerSearchStatus property is set internal bool IsSetSpeakerSearchStatus() { return this._speakerSearchStatus != null; } /// <summary> /// Gets and sets the property VoiceToneAnalysisStatus. /// <para> /// The status of the voice tone analysis task. /// </para> /// </summary> public VoiceAnalyticsConfigurationStatus VoiceToneAnalysisStatus { get { return this._voiceToneAnalysisStatus; } set { this._voiceToneAnalysisStatus = value; } } // Check to see if VoiceToneAnalysisStatus property is set internal bool IsSetVoiceToneAnalysisStatus() { return this._voiceToneAnalysisStatus != null; } } }
76
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// AmazonTranscribeCallAnalyticsProcessorConfiguration Marshaller /// </summary> public class AmazonTranscribeCallAnalyticsProcessorConfigurationMarshaller : IRequestMarshaller<AmazonTranscribeCallAnalyticsProcessorConfiguration, 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(AmazonTranscribeCallAnalyticsProcessorConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCallAnalyticsStreamCategories()) { context.Writer.WritePropertyName("CallAnalyticsStreamCategories"); context.Writer.WriteArrayStart(); foreach(var requestObjectCallAnalyticsStreamCategoriesListValue in requestObject.CallAnalyticsStreamCategories) { context.Writer.Write(requestObjectCallAnalyticsStreamCategoriesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetContentIdentificationType()) { context.Writer.WritePropertyName("ContentIdentificationType"); context.Writer.Write(requestObject.ContentIdentificationType); } if(requestObject.IsSetContentRedactionType()) { context.Writer.WritePropertyName("ContentRedactionType"); context.Writer.Write(requestObject.ContentRedactionType); } if(requestObject.IsSetEnablePartialResultsStabilization()) { context.Writer.WritePropertyName("EnablePartialResultsStabilization"); context.Writer.Write(requestObject.EnablePartialResultsStabilization); } if(requestObject.IsSetFilterPartialResults()) { context.Writer.WritePropertyName("FilterPartialResults"); context.Writer.Write(requestObject.FilterPartialResults); } if(requestObject.IsSetLanguageCode()) { context.Writer.WritePropertyName("LanguageCode"); context.Writer.Write(requestObject.LanguageCode); } if(requestObject.IsSetLanguageModelName()) { context.Writer.WritePropertyName("LanguageModelName"); context.Writer.Write(requestObject.LanguageModelName); } if(requestObject.IsSetPartialResultsStability()) { context.Writer.WritePropertyName("PartialResultsStability"); context.Writer.Write(requestObject.PartialResultsStability); } if(requestObject.IsSetPiiEntityTypes()) { context.Writer.WritePropertyName("PiiEntityTypes"); context.Writer.Write(requestObject.PiiEntityTypes); } if(requestObject.IsSetPostCallAnalyticsSettings()) { context.Writer.WritePropertyName("PostCallAnalyticsSettings"); context.Writer.WriteObjectStart(); var marshaller = PostCallAnalyticsSettingsMarshaller.Instance; marshaller.Marshall(requestObject.PostCallAnalyticsSettings, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVocabularyFilterMethod()) { context.Writer.WritePropertyName("VocabularyFilterMethod"); context.Writer.Write(requestObject.VocabularyFilterMethod); } if(requestObject.IsSetVocabularyFilterName()) { context.Writer.WritePropertyName("VocabularyFilterName"); context.Writer.Write(requestObject.VocabularyFilterName); } if(requestObject.IsSetVocabularyName()) { context.Writer.WritePropertyName("VocabularyName"); context.Writer.Write(requestObject.VocabularyName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AmazonTranscribeCallAnalyticsProcessorConfigurationMarshaller Instance = new AmazonTranscribeCallAnalyticsProcessorConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AmazonTranscribeCallAnalyticsProcessorConfiguration Object /// </summary> public class AmazonTranscribeCallAnalyticsProcessorConfigurationUnmarshaller : IUnmarshaller<AmazonTranscribeCallAnalyticsProcessorConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AmazonTranscribeCallAnalyticsProcessorConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AmazonTranscribeCallAnalyticsProcessorConfiguration IUnmarshaller<AmazonTranscribeCallAnalyticsProcessorConfiguration, 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 AmazonTranscribeCallAnalyticsProcessorConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AmazonTranscribeCallAnalyticsProcessorConfiguration unmarshalledObject = new AmazonTranscribeCallAnalyticsProcessorConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CallAnalyticsStreamCategories", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.CallAnalyticsStreamCategories = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ContentIdentificationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentIdentificationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ContentRedactionType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentRedactionType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnablePartialResultsStabilization", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnablePartialResultsStabilization = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FilterPartialResults", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FilterPartialResults = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LanguageCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LanguageCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LanguageModelName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LanguageModelName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PartialResultsStability", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PartialResultsStability = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PiiEntityTypes", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PiiEntityTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PostCallAnalyticsSettings", targetDepth)) { var unmarshaller = PostCallAnalyticsSettingsUnmarshaller.Instance; unmarshalledObject.PostCallAnalyticsSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyFilterMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyFilterMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyFilterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyFilterName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AmazonTranscribeCallAnalyticsProcessorConfigurationUnmarshaller _instance = new AmazonTranscribeCallAnalyticsProcessorConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AmazonTranscribeCallAnalyticsProcessorConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// AmazonTranscribeProcessorConfiguration Marshaller /// </summary> public class AmazonTranscribeProcessorConfigurationMarshaller : IRequestMarshaller<AmazonTranscribeProcessorConfiguration, 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(AmazonTranscribeProcessorConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContentIdentificationType()) { context.Writer.WritePropertyName("ContentIdentificationType"); context.Writer.Write(requestObject.ContentIdentificationType); } if(requestObject.IsSetContentRedactionType()) { context.Writer.WritePropertyName("ContentRedactionType"); context.Writer.Write(requestObject.ContentRedactionType); } if(requestObject.IsSetEnablePartialResultsStabilization()) { context.Writer.WritePropertyName("EnablePartialResultsStabilization"); context.Writer.Write(requestObject.EnablePartialResultsStabilization); } if(requestObject.IsSetFilterPartialResults()) { context.Writer.WritePropertyName("FilterPartialResults"); context.Writer.Write(requestObject.FilterPartialResults); } if(requestObject.IsSetLanguageCode()) { context.Writer.WritePropertyName("LanguageCode"); context.Writer.Write(requestObject.LanguageCode); } if(requestObject.IsSetLanguageModelName()) { context.Writer.WritePropertyName("LanguageModelName"); context.Writer.Write(requestObject.LanguageModelName); } if(requestObject.IsSetPartialResultsStability()) { context.Writer.WritePropertyName("PartialResultsStability"); context.Writer.Write(requestObject.PartialResultsStability); } if(requestObject.IsSetPiiEntityTypes()) { context.Writer.WritePropertyName("PiiEntityTypes"); context.Writer.Write(requestObject.PiiEntityTypes); } if(requestObject.IsSetShowSpeakerLabel()) { context.Writer.WritePropertyName("ShowSpeakerLabel"); context.Writer.Write(requestObject.ShowSpeakerLabel); } if(requestObject.IsSetVocabularyFilterMethod()) { context.Writer.WritePropertyName("VocabularyFilterMethod"); context.Writer.Write(requestObject.VocabularyFilterMethod); } if(requestObject.IsSetVocabularyFilterName()) { context.Writer.WritePropertyName("VocabularyFilterName"); context.Writer.Write(requestObject.VocabularyFilterName); } if(requestObject.IsSetVocabularyName()) { context.Writer.WritePropertyName("VocabularyName"); context.Writer.Write(requestObject.VocabularyName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AmazonTranscribeProcessorConfigurationMarshaller Instance = new AmazonTranscribeProcessorConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AmazonTranscribeProcessorConfiguration Object /// </summary> public class AmazonTranscribeProcessorConfigurationUnmarshaller : IUnmarshaller<AmazonTranscribeProcessorConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AmazonTranscribeProcessorConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AmazonTranscribeProcessorConfiguration IUnmarshaller<AmazonTranscribeProcessorConfiguration, 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 AmazonTranscribeProcessorConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AmazonTranscribeProcessorConfiguration unmarshalledObject = new AmazonTranscribeProcessorConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ContentIdentificationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentIdentificationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ContentRedactionType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentRedactionType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnablePartialResultsStabilization", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnablePartialResultsStabilization = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FilterPartialResults", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FilterPartialResults = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LanguageCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LanguageCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LanguageModelName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LanguageModelName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PartialResultsStability", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PartialResultsStability = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PiiEntityTypes", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PiiEntityTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ShowSpeakerLabel", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ShowSpeakerLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyFilterMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyFilterMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyFilterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyFilterName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VocabularyName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AmazonTranscribeProcessorConfigurationUnmarshaller _instance = new AmazonTranscribeProcessorConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AmazonTranscribeProcessorConfigurationUnmarshaller Instance { get { return _instance; } } } }
158
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ArtifactsConcatenationConfiguration Marshaller /// </summary> public class ArtifactsConcatenationConfigurationMarshaller : IRequestMarshaller<ArtifactsConcatenationConfiguration, 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(ArtifactsConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAudio()) { context.Writer.WritePropertyName("Audio"); context.Writer.WriteObjectStart(); var marshaller = AudioConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Audio, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCompositedVideo()) { context.Writer.WritePropertyName("CompositedVideo"); context.Writer.WriteObjectStart(); var marshaller = CompositedVideoConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CompositedVideo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetContent()) { context.Writer.WritePropertyName("Content"); context.Writer.WriteObjectStart(); var marshaller = ContentConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Content, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDataChannel()) { context.Writer.WritePropertyName("DataChannel"); context.Writer.WriteObjectStart(); var marshaller = DataChannelConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.DataChannel, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMeetingEvents()) { context.Writer.WritePropertyName("MeetingEvents"); context.Writer.WriteObjectStart(); var marshaller = MeetingEventsConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.MeetingEvents, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTranscriptionMessages()) { context.Writer.WritePropertyName("TranscriptionMessages"); context.Writer.WriteObjectStart(); var marshaller = TranscriptionMessagesConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.TranscriptionMessages, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVideo()) { context.Writer.WritePropertyName("Video"); context.Writer.WriteObjectStart(); var marshaller = VideoConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Video, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ArtifactsConcatenationConfigurationMarshaller Instance = new ArtifactsConcatenationConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ArtifactsConcatenationConfiguration Object /// </summary> public class ArtifactsConcatenationConfigurationUnmarshaller : IUnmarshaller<ArtifactsConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ArtifactsConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ArtifactsConcatenationConfiguration IUnmarshaller<ArtifactsConcatenationConfiguration, 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 ArtifactsConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ArtifactsConcatenationConfiguration unmarshalledObject = new ArtifactsConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Audio", targetDepth)) { var unmarshaller = AudioConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.Audio = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CompositedVideo", targetDepth)) { var unmarshaller = CompositedVideoConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.CompositedVideo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Content", targetDepth)) { var unmarshaller = ContentConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.Content = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataChannel", targetDepth)) { var unmarshaller = DataChannelConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.DataChannel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MeetingEvents", targetDepth)) { var unmarshaller = MeetingEventsConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.MeetingEvents = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TranscriptionMessages", targetDepth)) { var unmarshaller = TranscriptionMessagesConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.TranscriptionMessages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Video", targetDepth)) { var unmarshaller = VideoConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.Video = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ArtifactsConcatenationConfigurationUnmarshaller _instance = new ArtifactsConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ArtifactsConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ArtifactsConfiguration Marshaller /// </summary> public class ArtifactsConfigurationMarshaller : IRequestMarshaller<ArtifactsConfiguration, 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(ArtifactsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAudio()) { context.Writer.WritePropertyName("Audio"); context.Writer.WriteObjectStart(); var marshaller = AudioArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Audio, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCompositedVideo()) { context.Writer.WritePropertyName("CompositedVideo"); context.Writer.WriteObjectStart(); var marshaller = CompositedVideoArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CompositedVideo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetContent()) { context.Writer.WritePropertyName("Content"); context.Writer.WriteObjectStart(); var marshaller = ContentArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Content, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVideo()) { context.Writer.WritePropertyName("Video"); context.Writer.WriteObjectStart(); var marshaller = VideoArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Video, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ArtifactsConfigurationMarshaller Instance = new ArtifactsConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ArtifactsConfiguration Object /// </summary> public class ArtifactsConfigurationUnmarshaller : IUnmarshaller<ArtifactsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ArtifactsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ArtifactsConfiguration IUnmarshaller<ArtifactsConfiguration, 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 ArtifactsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ArtifactsConfiguration unmarshalledObject = new ArtifactsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Audio", targetDepth)) { var unmarshaller = AudioArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.Audio = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CompositedVideo", targetDepth)) { var unmarshaller = CompositedVideoArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.CompositedVideo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Content", targetDepth)) { var unmarshaller = ContentArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.Content = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Video", targetDepth)) { var unmarshaller = VideoArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.Video = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ArtifactsConfigurationUnmarshaller _instance = new ArtifactsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ArtifactsConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// AudioArtifactsConfiguration Marshaller /// </summary> public class AudioArtifactsConfigurationMarshaller : IRequestMarshaller<AudioArtifactsConfiguration, 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(AudioArtifactsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMuxType()) { context.Writer.WritePropertyName("MuxType"); context.Writer.Write(requestObject.MuxType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AudioArtifactsConfigurationMarshaller Instance = new AudioArtifactsConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AudioArtifactsConfiguration Object /// </summary> public class AudioArtifactsConfigurationUnmarshaller : IUnmarshaller<AudioArtifactsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AudioArtifactsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AudioArtifactsConfiguration IUnmarshaller<AudioArtifactsConfiguration, 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 AudioArtifactsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AudioArtifactsConfiguration unmarshalledObject = new AudioArtifactsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MuxType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MuxType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AudioArtifactsConfigurationUnmarshaller _instance = new AudioArtifactsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AudioArtifactsConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// AudioConcatenationConfiguration Marshaller /// </summary> public class AudioConcatenationConfigurationMarshaller : IRequestMarshaller<AudioConcatenationConfiguration, 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(AudioConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AudioConcatenationConfigurationMarshaller Instance = new AudioConcatenationConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AudioConcatenationConfiguration Object /// </summary> public class AudioConcatenationConfigurationUnmarshaller : IUnmarshaller<AudioConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AudioConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AudioConcatenationConfiguration IUnmarshaller<AudioConcatenationConfiguration, 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 AudioConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AudioConcatenationConfiguration unmarshalledObject = new AudioConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AudioConcatenationConfigurationUnmarshaller _instance = new AudioConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AudioConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.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; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequestId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BadRequestExceptionUnmarshaller _instance = new BadRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BadRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ChannelDefinition Marshaller /// </summary> public class ChannelDefinitionMarshaller : IRequestMarshaller<ChannelDefinition, 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(ChannelDefinition requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChannelId()) { context.Writer.WritePropertyName("ChannelId"); context.Writer.Write(requestObject.ChannelId); } if(requestObject.IsSetParticipantRole()) { context.Writer.WritePropertyName("ParticipantRole"); context.Writer.Write(requestObject.ParticipantRole); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ChannelDefinitionMarshaller Instance = new ChannelDefinitionMarshaller(); } }
68
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChannelDefinition Object /// </summary> public class ChannelDefinitionUnmarshaller : IUnmarshaller<ChannelDefinition, XmlUnmarshallerContext>, IUnmarshaller<ChannelDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChannelDefinition IUnmarshaller<ChannelDefinition, 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 ChannelDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChannelDefinition unmarshalledObject = new ChannelDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChannelId", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ChannelId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParticipantRole", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParticipantRole = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChannelDefinitionUnmarshaller _instance = new ChannelDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChannelDefinitionUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ChimeSdkMeetingConcatenationConfiguration Marshaller /// </summary> public class ChimeSdkMeetingConcatenationConfigurationMarshaller : IRequestMarshaller<ChimeSdkMeetingConcatenationConfiguration, 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(ChimeSdkMeetingConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetArtifactsConfiguration()) { context.Writer.WritePropertyName("ArtifactsConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ArtifactsConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.ArtifactsConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ChimeSdkMeetingConcatenationConfigurationMarshaller Instance = new ChimeSdkMeetingConcatenationConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChimeSdkMeetingConcatenationConfiguration Object /// </summary> public class ChimeSdkMeetingConcatenationConfigurationUnmarshaller : IUnmarshaller<ChimeSdkMeetingConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ChimeSdkMeetingConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChimeSdkMeetingConcatenationConfiguration IUnmarshaller<ChimeSdkMeetingConcatenationConfiguration, 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 ChimeSdkMeetingConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChimeSdkMeetingConcatenationConfiguration unmarshalledObject = new ChimeSdkMeetingConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ArtifactsConfiguration", targetDepth)) { var unmarshaller = ArtifactsConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.ArtifactsConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChimeSdkMeetingConcatenationConfigurationUnmarshaller _instance = new ChimeSdkMeetingConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChimeSdkMeetingConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ChimeSdkMeetingConfiguration Marshaller /// </summary> public class ChimeSdkMeetingConfigurationMarshaller : IRequestMarshaller<ChimeSdkMeetingConfiguration, 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(ChimeSdkMeetingConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetArtifactsConfiguration()) { context.Writer.WritePropertyName("ArtifactsConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.ArtifactsConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSourceConfiguration()) { context.Writer.WritePropertyName("SourceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = SourceConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.SourceConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ChimeSdkMeetingConfigurationMarshaller Instance = new ChimeSdkMeetingConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChimeSdkMeetingConfiguration Object /// </summary> public class ChimeSdkMeetingConfigurationUnmarshaller : IUnmarshaller<ChimeSdkMeetingConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ChimeSdkMeetingConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChimeSdkMeetingConfiguration IUnmarshaller<ChimeSdkMeetingConfiguration, 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 ChimeSdkMeetingConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChimeSdkMeetingConfiguration unmarshalledObject = new ChimeSdkMeetingConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ArtifactsConfiguration", targetDepth)) { var unmarshaller = ArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.ArtifactsConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceConfiguration", targetDepth)) { var unmarshaller = SourceConfigurationUnmarshaller.Instance; unmarshalledObject.SourceConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChimeSdkMeetingConfigurationUnmarshaller _instance = new ChimeSdkMeetingConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChimeSdkMeetingConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ChimeSdkMeetingLiveConnectorConfiguration Marshaller /// </summary> public class ChimeSdkMeetingLiveConnectorConfigurationMarshaller : IRequestMarshaller<ChimeSdkMeetingLiveConnectorConfiguration, 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(ChimeSdkMeetingLiveConnectorConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetArn()) { context.Writer.WritePropertyName("Arn"); context.Writer.Write(requestObject.Arn); } if(requestObject.IsSetCompositedVideo()) { context.Writer.WritePropertyName("CompositedVideo"); context.Writer.WriteObjectStart(); var marshaller = CompositedVideoArtifactsConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CompositedVideo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMuxType()) { context.Writer.WritePropertyName("MuxType"); context.Writer.Write(requestObject.MuxType); } if(requestObject.IsSetSourceConfiguration()) { context.Writer.WritePropertyName("SourceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = SourceConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.SourceConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ChimeSdkMeetingLiveConnectorConfigurationMarshaller Instance = new ChimeSdkMeetingLiveConnectorConfigurationMarshaller(); } }
90
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChimeSdkMeetingLiveConnectorConfiguration Object /// </summary> public class ChimeSdkMeetingLiveConnectorConfigurationUnmarshaller : IUnmarshaller<ChimeSdkMeetingLiveConnectorConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ChimeSdkMeetingLiveConnectorConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChimeSdkMeetingLiveConnectorConfiguration IUnmarshaller<ChimeSdkMeetingLiveConnectorConfiguration, 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 ChimeSdkMeetingLiveConnectorConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChimeSdkMeetingLiveConnectorConfiguration unmarshalledObject = new ChimeSdkMeetingLiveConnectorConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CompositedVideo", targetDepth)) { var unmarshaller = CompositedVideoArtifactsConfigurationUnmarshaller.Instance; unmarshalledObject.CompositedVideo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MuxType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MuxType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceConfiguration", targetDepth)) { var unmarshaller = SourceConfigurationUnmarshaller.Instance; unmarshalledObject.SourceConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChimeSdkMeetingLiveConnectorConfigurationUnmarshaller _instance = new ChimeSdkMeetingLiveConnectorConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChimeSdkMeetingLiveConnectorConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CompositedVideoArtifactsConfiguration Marshaller /// </summary> public class CompositedVideoArtifactsConfigurationMarshaller : IRequestMarshaller<CompositedVideoArtifactsConfiguration, 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(CompositedVideoArtifactsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetGridViewConfiguration()) { context.Writer.WritePropertyName("GridViewConfiguration"); context.Writer.WriteObjectStart(); var marshaller = GridViewConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.GridViewConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetLayout()) { context.Writer.WritePropertyName("Layout"); context.Writer.Write(requestObject.Layout); } if(requestObject.IsSetResolution()) { context.Writer.WritePropertyName("Resolution"); context.Writer.Write(requestObject.Resolution); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CompositedVideoArtifactsConfigurationMarshaller Instance = new CompositedVideoArtifactsConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CompositedVideoArtifactsConfiguration Object /// </summary> public class CompositedVideoArtifactsConfigurationUnmarshaller : IUnmarshaller<CompositedVideoArtifactsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<CompositedVideoArtifactsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CompositedVideoArtifactsConfiguration IUnmarshaller<CompositedVideoArtifactsConfiguration, 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 CompositedVideoArtifactsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CompositedVideoArtifactsConfiguration unmarshalledObject = new CompositedVideoArtifactsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GridViewConfiguration", targetDepth)) { var unmarshaller = GridViewConfigurationUnmarshaller.Instance; unmarshalledObject.GridViewConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Layout", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Layout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Resolution", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Resolution = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CompositedVideoArtifactsConfigurationUnmarshaller _instance = new CompositedVideoArtifactsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CompositedVideoArtifactsConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CompositedVideoConcatenationConfiguration Marshaller /// </summary> public class CompositedVideoConcatenationConfigurationMarshaller : IRequestMarshaller<CompositedVideoConcatenationConfiguration, 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(CompositedVideoConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CompositedVideoConcatenationConfigurationMarshaller Instance = new CompositedVideoConcatenationConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CompositedVideoConcatenationConfiguration Object /// </summary> public class CompositedVideoConcatenationConfigurationUnmarshaller : IUnmarshaller<CompositedVideoConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<CompositedVideoConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CompositedVideoConcatenationConfiguration IUnmarshaller<CompositedVideoConcatenationConfiguration, 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 CompositedVideoConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CompositedVideoConcatenationConfiguration unmarshalledObject = new CompositedVideoConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CompositedVideoConcatenationConfigurationUnmarshaller _instance = new CompositedVideoConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CompositedVideoConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ConcatenationSink Marshaller /// </summary> public class ConcatenationSinkMarshaller : IRequestMarshaller<ConcatenationSink, 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(ConcatenationSink requestObject, JsonMarshallerContext context) { if(requestObject.IsSetS3BucketSinkConfiguration()) { context.Writer.WritePropertyName("S3BucketSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = S3BucketSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.S3BucketSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConcatenationSinkMarshaller Instance = new ConcatenationSinkMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcatenationSink Object /// </summary> public class ConcatenationSinkUnmarshaller : IUnmarshaller<ConcatenationSink, XmlUnmarshallerContext>, IUnmarshaller<ConcatenationSink, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConcatenationSink IUnmarshaller<ConcatenationSink, 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 ConcatenationSink Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConcatenationSink unmarshalledObject = new ConcatenationSink(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("S3BucketSinkConfiguration", targetDepth)) { var unmarshaller = S3BucketSinkConfigurationUnmarshaller.Instance; unmarshalledObject.S3BucketSinkConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConcatenationSinkUnmarshaller _instance = new ConcatenationSinkUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcatenationSinkUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ConcatenationSource Marshaller /// </summary> public class ConcatenationSourceMarshaller : IRequestMarshaller<ConcatenationSource, 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(ConcatenationSource requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMediaCapturePipelineSourceConfiguration()) { context.Writer.WritePropertyName("MediaCapturePipelineSourceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = MediaCapturePipelineSourceConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.MediaCapturePipelineSourceConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConcatenationSourceMarshaller Instance = new ConcatenationSourceMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcatenationSource Object /// </summary> public class ConcatenationSourceUnmarshaller : IUnmarshaller<ConcatenationSource, XmlUnmarshallerContext>, IUnmarshaller<ConcatenationSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConcatenationSource IUnmarshaller<ConcatenationSource, 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 ConcatenationSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConcatenationSource unmarshalledObject = new ConcatenationSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaCapturePipelineSourceConfiguration", targetDepth)) { var unmarshaller = MediaCapturePipelineSourceConfigurationUnmarshaller.Instance; unmarshalledObject.MediaCapturePipelineSourceConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConcatenationSourceUnmarshaller _instance = new ConcatenationSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcatenationSourceUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException 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 ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(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; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequestId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ContentArtifactsConfiguration Marshaller /// </summary> public class ContentArtifactsConfigurationMarshaller : IRequestMarshaller<ContentArtifactsConfiguration, 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(ContentArtifactsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMuxType()) { context.Writer.WritePropertyName("MuxType"); context.Writer.Write(requestObject.MuxType); } if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ContentArtifactsConfigurationMarshaller Instance = new ContentArtifactsConfigurationMarshaller(); } }
68
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ContentArtifactsConfiguration Object /// </summary> public class ContentArtifactsConfigurationUnmarshaller : IUnmarshaller<ContentArtifactsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ContentArtifactsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ContentArtifactsConfiguration IUnmarshaller<ContentArtifactsConfiguration, 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 ContentArtifactsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ContentArtifactsConfiguration unmarshalledObject = new ContentArtifactsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MuxType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MuxType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ContentArtifactsConfigurationUnmarshaller _instance = new ContentArtifactsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ContentArtifactsConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ContentConcatenationConfiguration Marshaller /// </summary> public class ContentConcatenationConfigurationMarshaller : IRequestMarshaller<ContentConcatenationConfiguration, 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(ContentConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ContentConcatenationConfigurationMarshaller Instance = new ContentConcatenationConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ContentConcatenationConfiguration Object /// </summary> public class ContentConcatenationConfigurationUnmarshaller : IUnmarshaller<ContentConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ContentConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ContentConcatenationConfiguration IUnmarshaller<ContentConcatenationConfiguration, 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 ContentConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ContentConcatenationConfiguration unmarshalledObject = new ContentConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ContentConcatenationConfigurationUnmarshaller _instance = new ContentConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ContentConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CreateMediaCapturePipeline Request Marshaller /// </summary> public class CreateMediaCapturePipelineRequestMarshaller : IMarshaller<IRequest, CreateMediaCapturePipelineRequest> , 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((CreateMediaCapturePipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMediaCapturePipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/sdk-media-capture-pipelines"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetChimeSdkMeetingConfiguration()) { context.Writer.WritePropertyName("ChimeSdkMeetingConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ChimeSdkMeetingConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.ChimeSdkMeetingConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } else if(!(publicRequest.IsSetClientRequestToken())) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSinkArn()) { context.Writer.WritePropertyName("SinkArn"); context.Writer.Write(publicRequest.SinkArn); } if(publicRequest.IsSetSinkType()) { context.Writer.WritePropertyName("SinkType"); context.Writer.Write(publicRequest.SinkType); } if(publicRequest.IsSetSourceArn()) { context.Writer.WritePropertyName("SourceArn"); context.Writer.Write(publicRequest.SourceArn); } if(publicRequest.IsSetSourceType()) { context.Writer.WritePropertyName("SourceType"); context.Writer.Write(publicRequest.SourceType); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMediaCapturePipelineRequestMarshaller _instance = new CreateMediaCapturePipelineRequestMarshaller(); internal static CreateMediaCapturePipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaCapturePipelineRequestMarshaller Instance { get { return _instance; } } } }
157
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMediaCapturePipeline operation /// </summary> public class CreateMediaCapturePipelineResponseUnmarshaller : 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) { CreateMediaCapturePipelineResponse response = new CreateMediaCapturePipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaCapturePipeline", targetDepth)) { var unmarshaller = MediaCapturePipelineUnmarshaller.Instance; response.MediaCapturePipeline = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMediaCapturePipelineResponseUnmarshaller _instance = new CreateMediaCapturePipelineResponseUnmarshaller(); internal static CreateMediaCapturePipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaCapturePipelineResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CreateMediaConcatenationPipeline Request Marshaller /// </summary> public class CreateMediaConcatenationPipelineRequestMarshaller : IMarshaller<IRequest, CreateMediaConcatenationPipelineRequest> , 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((CreateMediaConcatenationPipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMediaConcatenationPipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/sdk-media-concatenation-pipelines"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } else if(!(publicRequest.IsSetClientRequestToken())) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSinks()) { context.Writer.WritePropertyName("Sinks"); context.Writer.WriteArrayStart(); foreach(var publicRequestSinksListValue in publicRequest.Sinks) { context.Writer.WriteObjectStart(); var marshaller = ConcatenationSinkMarshaller.Instance; marshaller.Marshall(publicRequestSinksListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetSources()) { context.Writer.WritePropertyName("Sources"); context.Writer.WriteArrayStart(); foreach(var publicRequestSourcesListValue in publicRequest.Sources) { context.Writer.WriteObjectStart(); var marshaller = ConcatenationSourceMarshaller.Instance; marshaller.Marshall(publicRequestSourcesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMediaConcatenationPipelineRequestMarshaller _instance = new CreateMediaConcatenationPipelineRequestMarshaller(); internal static CreateMediaConcatenationPipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaConcatenationPipelineRequestMarshaller Instance { get { return _instance; } } } }
154
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMediaConcatenationPipeline operation /// </summary> public class CreateMediaConcatenationPipelineResponseUnmarshaller : 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) { CreateMediaConcatenationPipelineResponse response = new CreateMediaConcatenationPipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaConcatenationPipeline", targetDepth)) { var unmarshaller = MediaConcatenationPipelineUnmarshaller.Instance; response.MediaConcatenationPipeline = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMediaConcatenationPipelineResponseUnmarshaller _instance = new CreateMediaConcatenationPipelineResponseUnmarshaller(); internal static CreateMediaConcatenationPipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaConcatenationPipelineResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CreateMediaInsightsPipelineConfiguration Request Marshaller /// </summary> public class CreateMediaInsightsPipelineConfigurationRequestMarshaller : IMarshaller<IRequest, CreateMediaInsightsPipelineConfigurationRequest> , 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((CreateMediaInsightsPipelineConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMediaInsightsPipelineConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/media-insights-pipeline-configurations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } else if(!(publicRequest.IsSetClientRequestToken())) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetElements()) { context.Writer.WritePropertyName("Elements"); context.Writer.WriteArrayStart(); foreach(var publicRequestElementsListValue in publicRequest.Elements) { context.Writer.WriteObjectStart(); var marshaller = MediaInsightsPipelineConfigurationElementMarshaller.Instance; marshaller.Marshall(publicRequestElementsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMediaInsightsPipelineConfigurationName()) { context.Writer.WritePropertyName("MediaInsightsPipelineConfigurationName"); context.Writer.Write(publicRequest.MediaInsightsPipelineConfigurationName); } if(publicRequest.IsSetRealTimeAlertConfiguration()) { context.Writer.WritePropertyName("RealTimeAlertConfiguration"); context.Writer.WriteObjectStart(); var marshaller = RealTimeAlertConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.RealTimeAlertConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetResourceAccessRoleArn()) { context.Writer.WritePropertyName("ResourceAccessRoleArn"); context.Writer.Write(publicRequest.ResourceAccessRoleArn); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMediaInsightsPipelineConfigurationRequestMarshaller _instance = new CreateMediaInsightsPipelineConfigurationRequestMarshaller(); internal static CreateMediaInsightsPipelineConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaInsightsPipelineConfigurationRequestMarshaller Instance { get { return _instance; } } } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMediaInsightsPipelineConfiguration operation /// </summary> public class CreateMediaInsightsPipelineConfigurationResponseUnmarshaller : 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) { CreateMediaInsightsPipelineConfigurationResponse response = new CreateMediaInsightsPipelineConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaInsightsPipelineConfiguration", targetDepth)) { var unmarshaller = MediaInsightsPipelineConfigurationUnmarshaller.Instance; response.MediaInsightsPipelineConfiguration = 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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMediaInsightsPipelineConfigurationResponseUnmarshaller _instance = new CreateMediaInsightsPipelineConfigurationResponseUnmarshaller(); internal static CreateMediaInsightsPipelineConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaInsightsPipelineConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
138
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CreateMediaInsightsPipeline Request Marshaller /// </summary> public class CreateMediaInsightsPipelineRequestMarshaller : IMarshaller<IRequest, CreateMediaInsightsPipelineRequest> , 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((CreateMediaInsightsPipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMediaInsightsPipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/media-insights-pipelines"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } else if(!(publicRequest.IsSetClientRequestToken())) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetKinesisVideoStreamRecordingSourceRuntimeConfiguration()) { context.Writer.WritePropertyName("KinesisVideoStreamRecordingSourceRuntimeConfiguration"); context.Writer.WriteObjectStart(); var marshaller = KinesisVideoStreamRecordingSourceRuntimeConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.KinesisVideoStreamRecordingSourceRuntimeConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetKinesisVideoStreamSourceRuntimeConfiguration()) { context.Writer.WritePropertyName("KinesisVideoStreamSourceRuntimeConfiguration"); context.Writer.WriteObjectStart(); var marshaller = KinesisVideoStreamSourceRuntimeConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.KinesisVideoStreamSourceRuntimeConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMediaInsightsPipelineConfigurationArn()) { context.Writer.WritePropertyName("MediaInsightsPipelineConfigurationArn"); context.Writer.Write(publicRequest.MediaInsightsPipelineConfigurationArn); } if(publicRequest.IsSetMediaInsightsRuntimeMetadata()) { context.Writer.WritePropertyName("MediaInsightsRuntimeMetadata"); context.Writer.WriteObjectStart(); foreach (var publicRequestMediaInsightsRuntimeMetadataKvp in publicRequest.MediaInsightsRuntimeMetadata) { context.Writer.WritePropertyName(publicRequestMediaInsightsRuntimeMetadataKvp.Key); var publicRequestMediaInsightsRuntimeMetadataValue = publicRequestMediaInsightsRuntimeMetadataKvp.Value; context.Writer.Write(publicRequestMediaInsightsRuntimeMetadataValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetS3RecordingSinkRuntimeConfiguration()) { context.Writer.WritePropertyName("S3RecordingSinkRuntimeConfiguration"); context.Writer.WriteObjectStart(); var marshaller = S3RecordingSinkRuntimeConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.S3RecordingSinkRuntimeConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMediaInsightsPipelineRequestMarshaller _instance = new CreateMediaInsightsPipelineRequestMarshaller(); internal static CreateMediaInsightsPipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaInsightsPipelineRequestMarshaller Instance { get { return _instance; } } } }
175
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMediaInsightsPipeline operation /// </summary> public class CreateMediaInsightsPipelineResponseUnmarshaller : 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) { CreateMediaInsightsPipelineResponse response = new CreateMediaInsightsPipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaInsightsPipeline", targetDepth)) { var unmarshaller = MediaInsightsPipelineUnmarshaller.Instance; response.MediaInsightsPipeline = 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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMediaInsightsPipelineResponseUnmarshaller _instance = new CreateMediaInsightsPipelineResponseUnmarshaller(); internal static CreateMediaInsightsPipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaInsightsPipelineResponseUnmarshaller Instance { get { return _instance; } } } }
138
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// CreateMediaLiveConnectorPipeline Request Marshaller /// </summary> public class CreateMediaLiveConnectorPipelineRequestMarshaller : IMarshaller<IRequest, CreateMediaLiveConnectorPipelineRequest> , 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((CreateMediaLiveConnectorPipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMediaLiveConnectorPipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/sdk-media-live-connector-pipelines"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } else if(!(publicRequest.IsSetClientRequestToken())) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSinks()) { context.Writer.WritePropertyName("Sinks"); context.Writer.WriteArrayStart(); foreach(var publicRequestSinksListValue in publicRequest.Sinks) { context.Writer.WriteObjectStart(); var marshaller = LiveConnectorSinkConfigurationMarshaller.Instance; marshaller.Marshall(publicRequestSinksListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetSources()) { context.Writer.WritePropertyName("Sources"); context.Writer.WriteArrayStart(); foreach(var publicRequestSourcesListValue in publicRequest.Sources) { context.Writer.WriteObjectStart(); var marshaller = LiveConnectorSourceConfigurationMarshaller.Instance; marshaller.Marshall(publicRequestSourcesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMediaLiveConnectorPipelineRequestMarshaller _instance = new CreateMediaLiveConnectorPipelineRequestMarshaller(); internal static CreateMediaLiveConnectorPipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaLiveConnectorPipelineRequestMarshaller Instance { get { return _instance; } } } }
154
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMediaLiveConnectorPipeline operation /// </summary> public class CreateMediaLiveConnectorPipelineResponseUnmarshaller : 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) { CreateMediaLiveConnectorPipelineResponse response = new CreateMediaLiveConnectorPipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaLiveConnectorPipeline", targetDepth)) { var unmarshaller = MediaLiveConnectorPipelineUnmarshaller.Instance; response.MediaLiveConnectorPipeline = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMediaLiveConnectorPipelineResponseUnmarshaller _instance = new CreateMediaLiveConnectorPipelineResponseUnmarshaller(); internal static CreateMediaLiveConnectorPipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMediaLiveConnectorPipelineResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// DataChannelConcatenationConfiguration Marshaller /// </summary> public class DataChannelConcatenationConfigurationMarshaller : IRequestMarshaller<DataChannelConcatenationConfiguration, 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(DataChannelConcatenationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DataChannelConcatenationConfigurationMarshaller Instance = new DataChannelConcatenationConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DataChannelConcatenationConfiguration Object /// </summary> public class DataChannelConcatenationConfigurationUnmarshaller : IUnmarshaller<DataChannelConcatenationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<DataChannelConcatenationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DataChannelConcatenationConfiguration IUnmarshaller<DataChannelConcatenationConfiguration, 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 DataChannelConcatenationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DataChannelConcatenationConfiguration unmarshalledObject = new DataChannelConcatenationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DataChannelConcatenationConfigurationUnmarshaller _instance = new DataChannelConcatenationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DataChannelConcatenationConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// DeleteMediaCapturePipeline Request Marshaller /// </summary> public class DeleteMediaCapturePipelineRequestMarshaller : IMarshaller<IRequest, DeleteMediaCapturePipelineRequest> , 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((DeleteMediaCapturePipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteMediaCapturePipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetMediaPipelineId()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field MediaPipelineId set"); request.AddPathResource("{mediaPipelineId}", StringUtils.FromString(publicRequest.MediaPipelineId)); request.ResourcePath = "/sdk-media-capture-pipelines/{mediaPipelineId}"; return request; } private static DeleteMediaCapturePipelineRequestMarshaller _instance = new DeleteMediaCapturePipelineRequestMarshaller(); internal static DeleteMediaCapturePipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaCapturePipelineRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteMediaCapturePipeline operation /// </summary> public class DeleteMediaCapturePipelineResponseUnmarshaller : 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) { DeleteMediaCapturePipelineResponse response = new DeleteMediaCapturePipelineResponse(); 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteMediaCapturePipelineResponseUnmarshaller _instance = new DeleteMediaCapturePipelineResponseUnmarshaller(); internal static DeleteMediaCapturePipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaCapturePipelineResponseUnmarshaller Instance { get { return _instance; } } } }
123
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// DeleteMediaInsightsPipelineConfiguration Request Marshaller /// </summary> public class DeleteMediaInsightsPipelineConfigurationRequestMarshaller : IMarshaller<IRequest, DeleteMediaInsightsPipelineConfigurationRequest> , 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((DeleteMediaInsightsPipelineConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteMediaInsightsPipelineConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetIdentifier()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field Identifier set"); request.AddPathResource("{identifier}", StringUtils.FromString(publicRequest.Identifier)); request.ResourcePath = "/media-insights-pipeline-configurations/{identifier}"; return request; } private static DeleteMediaInsightsPipelineConfigurationRequestMarshaller _instance = new DeleteMediaInsightsPipelineConfigurationRequestMarshaller(); internal static DeleteMediaInsightsPipelineConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaInsightsPipelineConfigurationRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteMediaInsightsPipelineConfiguration operation /// </summary> public class DeleteMediaInsightsPipelineConfigurationResponseUnmarshaller : 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) { DeleteMediaInsightsPipelineConfigurationResponse response = new DeleteMediaInsightsPipelineConfigurationResponse(); 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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteMediaInsightsPipelineConfigurationResponseUnmarshaller _instance = new DeleteMediaInsightsPipelineConfigurationResponseUnmarshaller(); internal static DeleteMediaInsightsPipelineConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaInsightsPipelineConfigurationResponseUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// DeleteMediaPipeline Request Marshaller /// </summary> public class DeleteMediaPipelineRequestMarshaller : IMarshaller<IRequest, DeleteMediaPipelineRequest> , 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((DeleteMediaPipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteMediaPipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetMediaPipelineId()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field MediaPipelineId set"); request.AddPathResource("{mediaPipelineId}", StringUtils.FromString(publicRequest.MediaPipelineId)); request.ResourcePath = "/sdk-media-pipelines/{mediaPipelineId}"; return request; } private static DeleteMediaPipelineRequestMarshaller _instance = new DeleteMediaPipelineRequestMarshaller(); internal static DeleteMediaPipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaPipelineRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteMediaPipeline operation /// </summary> public class DeleteMediaPipelineResponseUnmarshaller : 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) { DeleteMediaPipelineResponse response = new DeleteMediaPipelineResponse(); 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteMediaPipelineResponseUnmarshaller _instance = new DeleteMediaPipelineResponseUnmarshaller(); internal static DeleteMediaPipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMediaPipelineResponseUnmarshaller Instance { get { return _instance; } } } }
123
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ForbiddenException Object /// </summary> public class ForbiddenExceptionUnmarshaller : IErrorResponseUnmarshaller<ForbiddenException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ForbiddenException 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 ForbiddenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ForbiddenException unmarshalledObject = new ForbiddenException(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; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequestId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ForbiddenExceptionUnmarshaller _instance = new ForbiddenExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ForbiddenExceptionUnmarshaller Instance { get { return _instance; } } } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// FragmentSelector Marshaller /// </summary> public class FragmentSelectorMarshaller : IRequestMarshaller<FragmentSelector, 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(FragmentSelector requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFragmentSelectorType()) { context.Writer.WritePropertyName("FragmentSelectorType"); context.Writer.Write(requestObject.FragmentSelectorType); } if(requestObject.IsSetTimestampRange()) { context.Writer.WritePropertyName("TimestampRange"); context.Writer.WriteObjectStart(); var marshaller = TimestampRangeMarshaller.Instance; marshaller.Marshall(requestObject.TimestampRange, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static FragmentSelectorMarshaller Instance = new FragmentSelectorMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FragmentSelector Object /// </summary> public class FragmentSelectorUnmarshaller : IUnmarshaller<FragmentSelector, XmlUnmarshallerContext>, IUnmarshaller<FragmentSelector, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FragmentSelector IUnmarshaller<FragmentSelector, 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 FragmentSelector Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FragmentSelector unmarshalledObject = new FragmentSelector(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FragmentSelectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FragmentSelectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TimestampRange", targetDepth)) { var unmarshaller = TimestampRangeUnmarshaller.Instance; unmarshalledObject.TimestampRange = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FragmentSelectorUnmarshaller _instance = new FragmentSelectorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FragmentSelectorUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// GetMediaCapturePipeline Request Marshaller /// </summary> public class GetMediaCapturePipelineRequestMarshaller : IMarshaller<IRequest, GetMediaCapturePipelineRequest> , 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((GetMediaCapturePipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetMediaCapturePipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMediaPipelineId()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field MediaPipelineId set"); request.AddPathResource("{mediaPipelineId}", StringUtils.FromString(publicRequest.MediaPipelineId)); request.ResourcePath = "/sdk-media-capture-pipelines/{mediaPipelineId}"; return request; } private static GetMediaCapturePipelineRequestMarshaller _instance = new GetMediaCapturePipelineRequestMarshaller(); internal static GetMediaCapturePipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaCapturePipelineRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetMediaCapturePipeline operation /// </summary> public class GetMediaCapturePipelineResponseUnmarshaller : 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) { GetMediaCapturePipelineResponse response = new GetMediaCapturePipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaCapturePipeline", targetDepth)) { var unmarshaller = MediaCapturePipelineUnmarshaller.Instance; response.MediaCapturePipeline = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetMediaCapturePipelineResponseUnmarshaller _instance = new GetMediaCapturePipelineResponseUnmarshaller(); internal static GetMediaCapturePipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaCapturePipelineResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// GetMediaInsightsPipelineConfiguration Request Marshaller /// </summary> public class GetMediaInsightsPipelineConfigurationRequestMarshaller : IMarshaller<IRequest, GetMediaInsightsPipelineConfigurationRequest> , 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((GetMediaInsightsPipelineConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetMediaInsightsPipelineConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetIdentifier()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field Identifier set"); request.AddPathResource("{identifier}", StringUtils.FromString(publicRequest.Identifier)); request.ResourcePath = "/media-insights-pipeline-configurations/{identifier}"; return request; } private static GetMediaInsightsPipelineConfigurationRequestMarshaller _instance = new GetMediaInsightsPipelineConfigurationRequestMarshaller(); internal static GetMediaInsightsPipelineConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaInsightsPipelineConfigurationRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetMediaInsightsPipelineConfiguration operation /// </summary> public class GetMediaInsightsPipelineConfigurationResponseUnmarshaller : 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) { GetMediaInsightsPipelineConfigurationResponse response = new GetMediaInsightsPipelineConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaInsightsPipelineConfiguration", targetDepth)) { var unmarshaller = MediaInsightsPipelineConfigurationUnmarshaller.Instance; response.MediaInsightsPipelineConfiguration = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetMediaInsightsPipelineConfigurationResponseUnmarshaller _instance = new GetMediaInsightsPipelineConfigurationResponseUnmarshaller(); internal static GetMediaInsightsPipelineConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaInsightsPipelineConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// GetMediaPipeline Request Marshaller /// </summary> public class GetMediaPipelineRequestMarshaller : IMarshaller<IRequest, GetMediaPipelineRequest> , 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((GetMediaPipelineRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetMediaPipelineRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMediaPipelineId()) throw new AmazonChimeSDKMediaPipelinesException("Request object does not have required field MediaPipelineId set"); request.AddPathResource("{mediaPipelineId}", StringUtils.FromString(publicRequest.MediaPipelineId)); request.ResourcePath = "/sdk-media-pipelines/{mediaPipelineId}"; return request; } private static GetMediaPipelineRequestMarshaller _instance = new GetMediaPipelineRequestMarshaller(); internal static GetMediaPipelineRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaPipelineRequestMarshaller Instance { get { return _instance; } } } }
87
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetMediaPipeline operation /// </summary> public class GetMediaPipelineResponseUnmarshaller : 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) { GetMediaPipelineResponse response = new GetMediaPipelineResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaPipeline", targetDepth)) { var unmarshaller = MediaPipelineUnmarshaller.Instance; response.MediaPipeline = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetMediaPipelineResponseUnmarshaller _instance = new GetMediaPipelineResponseUnmarshaller(); internal static GetMediaPipelineResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMediaPipelineResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// GridViewConfiguration Marshaller /// </summary> public class GridViewConfigurationMarshaller : IRequestMarshaller<GridViewConfiguration, 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(GridViewConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContentShareLayout()) { context.Writer.WritePropertyName("ContentShareLayout"); context.Writer.Write(requestObject.ContentShareLayout); } if(requestObject.IsSetPresenterOnlyConfiguration()) { context.Writer.WritePropertyName("PresenterOnlyConfiguration"); context.Writer.WriteObjectStart(); var marshaller = PresenterOnlyConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.PresenterOnlyConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GridViewConfigurationMarshaller Instance = new GridViewConfigurationMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GridViewConfiguration Object /// </summary> public class GridViewConfigurationUnmarshaller : IUnmarshaller<GridViewConfiguration, XmlUnmarshallerContext>, IUnmarshaller<GridViewConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GridViewConfiguration IUnmarshaller<GridViewConfiguration, 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 GridViewConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GridViewConfiguration unmarshalledObject = new GridViewConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ContentShareLayout", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentShareLayout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PresenterOnlyConfiguration", targetDepth)) { var unmarshaller = PresenterOnlyConfigurationUnmarshaller.Instance; unmarshalledObject.PresenterOnlyConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GridViewConfigurationUnmarshaller _instance = new GridViewConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GridViewConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// IssueDetectionConfiguration Marshaller /// </summary> public class IssueDetectionConfigurationMarshaller : IRequestMarshaller<IssueDetectionConfiguration, 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(IssueDetectionConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetRuleName()) { context.Writer.WritePropertyName("RuleName"); context.Writer.Write(requestObject.RuleName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static IssueDetectionConfigurationMarshaller Instance = new IssueDetectionConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for IssueDetectionConfiguration Object /// </summary> public class IssueDetectionConfigurationUnmarshaller : IUnmarshaller<IssueDetectionConfiguration, XmlUnmarshallerContext>, IUnmarshaller<IssueDetectionConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> IssueDetectionConfiguration IUnmarshaller<IssueDetectionConfiguration, 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 IssueDetectionConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; IssueDetectionConfiguration unmarshalledObject = new IssueDetectionConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("RuleName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RuleName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static IssueDetectionConfigurationUnmarshaller _instance = new IssueDetectionConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static IssueDetectionConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// KeywordMatchConfiguration Marshaller /// </summary> public class KeywordMatchConfigurationMarshaller : IRequestMarshaller<KeywordMatchConfiguration, 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(KeywordMatchConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKeywords()) { context.Writer.WritePropertyName("Keywords"); context.Writer.WriteArrayStart(); foreach(var requestObjectKeywordsListValue in requestObject.Keywords) { context.Writer.Write(requestObjectKeywordsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetNegate()) { context.Writer.WritePropertyName("Negate"); context.Writer.Write(requestObject.Negate); } if(requestObject.IsSetRuleName()) { context.Writer.WritePropertyName("RuleName"); context.Writer.Write(requestObject.RuleName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KeywordMatchConfigurationMarshaller Instance = new KeywordMatchConfigurationMarshaller(); } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KeywordMatchConfiguration Object /// </summary> public class KeywordMatchConfigurationUnmarshaller : IUnmarshaller<KeywordMatchConfiguration, XmlUnmarshallerContext>, IUnmarshaller<KeywordMatchConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KeywordMatchConfiguration IUnmarshaller<KeywordMatchConfiguration, 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 KeywordMatchConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KeywordMatchConfiguration unmarshalledObject = new KeywordMatchConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Keywords", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Keywords = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Negate", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Negate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RuleName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RuleName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KeywordMatchConfigurationUnmarshaller _instance = new KeywordMatchConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KeywordMatchConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// KinesisDataStreamSinkConfiguration Marshaller /// </summary> public class KinesisDataStreamSinkConfigurationMarshaller : IRequestMarshaller<KinesisDataStreamSinkConfiguration, 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(KinesisDataStreamSinkConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInsightsTarget()) { context.Writer.WritePropertyName("InsightsTarget"); context.Writer.Write(requestObject.InsightsTarget); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KinesisDataStreamSinkConfigurationMarshaller Instance = new KinesisDataStreamSinkConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KinesisDataStreamSinkConfiguration Object /// </summary> public class KinesisDataStreamSinkConfigurationUnmarshaller : IUnmarshaller<KinesisDataStreamSinkConfiguration, XmlUnmarshallerContext>, IUnmarshaller<KinesisDataStreamSinkConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KinesisDataStreamSinkConfiguration IUnmarshaller<KinesisDataStreamSinkConfiguration, 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 KinesisDataStreamSinkConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KinesisDataStreamSinkConfiguration unmarshalledObject = new KinesisDataStreamSinkConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("InsightsTarget", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InsightsTarget = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KinesisDataStreamSinkConfigurationUnmarshaller _instance = new KinesisDataStreamSinkConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KinesisDataStreamSinkConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// KinesisVideoStreamRecordingSourceRuntimeConfiguration Marshaller /// </summary> public class KinesisVideoStreamRecordingSourceRuntimeConfigurationMarshaller : IRequestMarshaller<KinesisVideoStreamRecordingSourceRuntimeConfiguration, 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(KinesisVideoStreamRecordingSourceRuntimeConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFragmentSelector()) { context.Writer.WritePropertyName("FragmentSelector"); context.Writer.WriteObjectStart(); var marshaller = FragmentSelectorMarshaller.Instance; marshaller.Marshall(requestObject.FragmentSelector, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetStreams()) { context.Writer.WritePropertyName("Streams"); context.Writer.WriteArrayStart(); foreach(var requestObjectStreamsListValue in requestObject.Streams) { context.Writer.WriteObjectStart(); var marshaller = RecordingStreamConfigurationMarshaller.Instance; marshaller.Marshall(requestObjectStreamsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KinesisVideoStreamRecordingSourceRuntimeConfigurationMarshaller Instance = new KinesisVideoStreamRecordingSourceRuntimeConfigurationMarshaller(); } }
83
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KinesisVideoStreamRecordingSourceRuntimeConfiguration Object /// </summary> public class KinesisVideoStreamRecordingSourceRuntimeConfigurationUnmarshaller : IUnmarshaller<KinesisVideoStreamRecordingSourceRuntimeConfiguration, XmlUnmarshallerContext>, IUnmarshaller<KinesisVideoStreamRecordingSourceRuntimeConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KinesisVideoStreamRecordingSourceRuntimeConfiguration IUnmarshaller<KinesisVideoStreamRecordingSourceRuntimeConfiguration, 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 KinesisVideoStreamRecordingSourceRuntimeConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KinesisVideoStreamRecordingSourceRuntimeConfiguration unmarshalledObject = new KinesisVideoStreamRecordingSourceRuntimeConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FragmentSelector", targetDepth)) { var unmarshaller = FragmentSelectorUnmarshaller.Instance; unmarshalledObject.FragmentSelector = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Streams", targetDepth)) { var unmarshaller = new ListUnmarshaller<RecordingStreamConfiguration, RecordingStreamConfigurationUnmarshaller>(RecordingStreamConfigurationUnmarshaller.Instance); unmarshalledObject.Streams = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KinesisVideoStreamRecordingSourceRuntimeConfigurationUnmarshaller _instance = new KinesisVideoStreamRecordingSourceRuntimeConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KinesisVideoStreamRecordingSourceRuntimeConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// KinesisVideoStreamSourceRuntimeConfiguration Marshaller /// </summary> public class KinesisVideoStreamSourceRuntimeConfigurationMarshaller : IRequestMarshaller<KinesisVideoStreamSourceRuntimeConfiguration, 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(KinesisVideoStreamSourceRuntimeConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMediaEncoding()) { context.Writer.WritePropertyName("MediaEncoding"); context.Writer.Write(requestObject.MediaEncoding); } if(requestObject.IsSetMediaSampleRate()) { context.Writer.WritePropertyName("MediaSampleRate"); context.Writer.Write(requestObject.MediaSampleRate); } if(requestObject.IsSetStreams()) { context.Writer.WritePropertyName("Streams"); context.Writer.WriteArrayStart(); foreach(var requestObjectStreamsListValue in requestObject.Streams) { context.Writer.WriteObjectStart(); var marshaller = StreamConfigurationMarshaller.Instance; marshaller.Marshall(requestObjectStreamsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KinesisVideoStreamSourceRuntimeConfigurationMarshaller Instance = new KinesisVideoStreamSourceRuntimeConfigurationMarshaller(); } }
84
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KinesisVideoStreamSourceRuntimeConfiguration Object /// </summary> public class KinesisVideoStreamSourceRuntimeConfigurationUnmarshaller : IUnmarshaller<KinesisVideoStreamSourceRuntimeConfiguration, XmlUnmarshallerContext>, IUnmarshaller<KinesisVideoStreamSourceRuntimeConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KinesisVideoStreamSourceRuntimeConfiguration IUnmarshaller<KinesisVideoStreamSourceRuntimeConfiguration, 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 KinesisVideoStreamSourceRuntimeConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KinesisVideoStreamSourceRuntimeConfiguration unmarshalledObject = new KinesisVideoStreamSourceRuntimeConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaEncoding", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaEncoding = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaSampleRate", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MediaSampleRate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Streams", targetDepth)) { var unmarshaller = new ListUnmarshaller<StreamConfiguration, StreamConfigurationUnmarshaller>(StreamConfigurationUnmarshaller.Instance); unmarshalledObject.Streams = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KinesisVideoStreamSourceRuntimeConfigurationUnmarshaller _instance = new KinesisVideoStreamSourceRuntimeConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KinesisVideoStreamSourceRuntimeConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// LambdaFunctionSinkConfiguration Marshaller /// </summary> public class LambdaFunctionSinkConfigurationMarshaller : IRequestMarshaller<LambdaFunctionSinkConfiguration, 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(LambdaFunctionSinkConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInsightsTarget()) { context.Writer.WritePropertyName("InsightsTarget"); context.Writer.Write(requestObject.InsightsTarget); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LambdaFunctionSinkConfigurationMarshaller Instance = new LambdaFunctionSinkConfigurationMarshaller(); } }
62
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LambdaFunctionSinkConfiguration Object /// </summary> public class LambdaFunctionSinkConfigurationUnmarshaller : IUnmarshaller<LambdaFunctionSinkConfiguration, XmlUnmarshallerContext>, IUnmarshaller<LambdaFunctionSinkConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LambdaFunctionSinkConfiguration IUnmarshaller<LambdaFunctionSinkConfiguration, 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 LambdaFunctionSinkConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LambdaFunctionSinkConfiguration unmarshalledObject = new LambdaFunctionSinkConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("InsightsTarget", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InsightsTarget = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LambdaFunctionSinkConfigurationUnmarshaller _instance = new LambdaFunctionSinkConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LambdaFunctionSinkConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ListMediaCapturePipelines Request Marshaller /// </summary> public class ListMediaCapturePipelinesRequestMarshaller : IMarshaller<IRequest, ListMediaCapturePipelinesRequest> , 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((ListMediaCapturePipelinesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListMediaCapturePipelinesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (publicRequest.IsSetMaxResults()) request.Parameters.Add("max-results", StringUtils.FromInt(publicRequest.MaxResults)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("next-token", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/sdk-media-capture-pipelines"; request.UseQueryString = true; return request; } private static ListMediaCapturePipelinesRequestMarshaller _instance = new ListMediaCapturePipelinesRequestMarshaller(); internal static ListMediaCapturePipelinesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaCapturePipelinesRequestMarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListMediaCapturePipelines operation /// </summary> public class ListMediaCapturePipelinesResponseUnmarshaller : 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) { ListMediaCapturePipelinesResponse response = new ListMediaCapturePipelinesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaCapturePipelines", targetDepth)) { var unmarshaller = new ListUnmarshaller<MediaCapturePipelineSummary, MediaCapturePipelineSummaryUnmarshaller>(MediaCapturePipelineSummaryUnmarshaller.Instance); response.MediaCapturePipelines = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListMediaCapturePipelinesResponseUnmarshaller _instance = new ListMediaCapturePipelinesResponseUnmarshaller(); internal static ListMediaCapturePipelinesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaCapturePipelinesResponseUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ListMediaInsightsPipelineConfigurations Request Marshaller /// </summary> public class ListMediaInsightsPipelineConfigurationsRequestMarshaller : IMarshaller<IRequest, ListMediaInsightsPipelineConfigurationsRequest> , 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((ListMediaInsightsPipelineConfigurationsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListMediaInsightsPipelineConfigurationsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (publicRequest.IsSetMaxResults()) request.Parameters.Add("max-results", StringUtils.FromInt(publicRequest.MaxResults)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("next-token", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/media-insights-pipeline-configurations"; request.UseQueryString = true; return request; } private static ListMediaInsightsPipelineConfigurationsRequestMarshaller _instance = new ListMediaInsightsPipelineConfigurationsRequestMarshaller(); internal static ListMediaInsightsPipelineConfigurationsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaInsightsPipelineConfigurationsRequestMarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListMediaInsightsPipelineConfigurations operation /// </summary> public class ListMediaInsightsPipelineConfigurationsResponseUnmarshaller : 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) { ListMediaInsightsPipelineConfigurationsResponse response = new ListMediaInsightsPipelineConfigurationsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaInsightsPipelineConfigurations", targetDepth)) { var unmarshaller = new ListUnmarshaller<MediaInsightsPipelineConfigurationSummary, MediaInsightsPipelineConfigurationSummaryUnmarshaller>(MediaInsightsPipelineConfigurationSummaryUnmarshaller.Instance); response.MediaInsightsPipelineConfigurations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListMediaInsightsPipelineConfigurationsResponseUnmarshaller _instance = new ListMediaInsightsPipelineConfigurationsResponseUnmarshaller(); internal static ListMediaInsightsPipelineConfigurationsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaInsightsPipelineConfigurationsResponseUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ListMediaPipelines Request Marshaller /// </summary> public class ListMediaPipelinesRequestMarshaller : IMarshaller<IRequest, ListMediaPipelinesRequest> , 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((ListMediaPipelinesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListMediaPipelinesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (publicRequest.IsSetMaxResults()) request.Parameters.Add("max-results", StringUtils.FromInt(publicRequest.MaxResults)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("next-token", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/sdk-media-pipelines"; request.UseQueryString = true; return request; } private static ListMediaPipelinesRequestMarshaller _instance = new ListMediaPipelinesRequestMarshaller(); internal static ListMediaPipelinesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaPipelinesRequestMarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListMediaPipelines operation /// </summary> public class ListMediaPipelinesResponseUnmarshaller : 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) { ListMediaPipelinesResponse response = new ListMediaPipelinesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaPipelines", targetDepth)) { var unmarshaller = new ListUnmarshaller<MediaPipelineSummary, MediaPipelineSummaryUnmarshaller>(MediaPipelineSummaryUnmarshaller.Instance); response.MediaPipelines = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListMediaPipelinesResponseUnmarshaller _instance = new ListMediaPipelinesResponseUnmarshaller(); internal static ListMediaPipelinesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMediaPipelinesResponseUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , 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((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMediaPipelines"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (publicRequest.IsSetResourceARN()) request.Parameters.Add("arn", StringUtils.FromString(publicRequest.ResourceARN)); request.ResourcePath = "/tags"; request.UseQueryString = true; return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : 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) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); response.Tags = 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("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 AmazonChimeSDKMediaPipelinesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// LiveConnectorRTMPConfiguration Marshaller /// </summary> public class LiveConnectorRTMPConfigurationMarshaller : IRequestMarshaller<LiveConnectorRTMPConfiguration, 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(LiveConnectorRTMPConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAudioChannels()) { context.Writer.WritePropertyName("AudioChannels"); context.Writer.Write(requestObject.AudioChannels); } if(requestObject.IsSetAudioSampleRate()) { context.Writer.WritePropertyName("AudioSampleRate"); context.Writer.Write(requestObject.AudioSampleRate); } if(requestObject.IsSetUrl()) { context.Writer.WritePropertyName("Url"); context.Writer.Write(requestObject.Url); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LiveConnectorRTMPConfigurationMarshaller Instance = new LiveConnectorRTMPConfigurationMarshaller(); } }
74
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LiveConnectorRTMPConfiguration Object /// </summary> public class LiveConnectorRTMPConfigurationUnmarshaller : IUnmarshaller<LiveConnectorRTMPConfiguration, XmlUnmarshallerContext>, IUnmarshaller<LiveConnectorRTMPConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LiveConnectorRTMPConfiguration IUnmarshaller<LiveConnectorRTMPConfiguration, 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 LiveConnectorRTMPConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LiveConnectorRTMPConfiguration unmarshalledObject = new LiveConnectorRTMPConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AudioChannels", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AudioChannels = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AudioSampleRate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AudioSampleRate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Url", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Url = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LiveConnectorRTMPConfigurationUnmarshaller _instance = new LiveConnectorRTMPConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LiveConnectorRTMPConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// LiveConnectorSinkConfiguration Marshaller /// </summary> public class LiveConnectorSinkConfigurationMarshaller : IRequestMarshaller<LiveConnectorSinkConfiguration, 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(LiveConnectorSinkConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetRTMPConfiguration()) { context.Writer.WritePropertyName("RTMPConfiguration"); context.Writer.WriteObjectStart(); var marshaller = LiveConnectorRTMPConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.RTMPConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSinkType()) { context.Writer.WritePropertyName("SinkType"); context.Writer.Write(requestObject.SinkType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LiveConnectorSinkConfigurationMarshaller Instance = new LiveConnectorSinkConfigurationMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LiveConnectorSinkConfiguration Object /// </summary> public class LiveConnectorSinkConfigurationUnmarshaller : IUnmarshaller<LiveConnectorSinkConfiguration, XmlUnmarshallerContext>, IUnmarshaller<LiveConnectorSinkConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LiveConnectorSinkConfiguration IUnmarshaller<LiveConnectorSinkConfiguration, 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 LiveConnectorSinkConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LiveConnectorSinkConfiguration unmarshalledObject = new LiveConnectorSinkConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("RTMPConfiguration", targetDepth)) { var unmarshaller = LiveConnectorRTMPConfigurationUnmarshaller.Instance; unmarshalledObject.RTMPConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SinkType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SinkType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LiveConnectorSinkConfigurationUnmarshaller _instance = new LiveConnectorSinkConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LiveConnectorSinkConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// LiveConnectorSourceConfiguration Marshaller /// </summary> public class LiveConnectorSourceConfigurationMarshaller : IRequestMarshaller<LiveConnectorSourceConfiguration, 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(LiveConnectorSourceConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChimeSdkMeetingLiveConnectorConfiguration()) { context.Writer.WritePropertyName("ChimeSdkMeetingLiveConnectorConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ChimeSdkMeetingLiveConnectorConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.ChimeSdkMeetingLiveConnectorConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSourceType()) { context.Writer.WritePropertyName("SourceType"); context.Writer.Write(requestObject.SourceType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LiveConnectorSourceConfigurationMarshaller Instance = new LiveConnectorSourceConfigurationMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LiveConnectorSourceConfiguration Object /// </summary> public class LiveConnectorSourceConfigurationUnmarshaller : IUnmarshaller<LiveConnectorSourceConfiguration, XmlUnmarshallerContext>, IUnmarshaller<LiveConnectorSourceConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LiveConnectorSourceConfiguration IUnmarshaller<LiveConnectorSourceConfiguration, 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 LiveConnectorSourceConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LiveConnectorSourceConfiguration unmarshalledObject = new LiveConnectorSourceConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChimeSdkMeetingLiveConnectorConfiguration", targetDepth)) { var unmarshaller = ChimeSdkMeetingLiveConnectorConfigurationUnmarshaller.Instance; unmarshalledObject.ChimeSdkMeetingLiveConnectorConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LiveConnectorSourceConfigurationUnmarshaller _instance = new LiveConnectorSourceConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LiveConnectorSourceConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// MediaCapturePipelineSourceConfiguration Marshaller /// </summary> public class MediaCapturePipelineSourceConfigurationMarshaller : IRequestMarshaller<MediaCapturePipelineSourceConfiguration, 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(MediaCapturePipelineSourceConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChimeSdkMeetingConfiguration()) { context.Writer.WritePropertyName("ChimeSdkMeetingConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ChimeSdkMeetingConcatenationConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.ChimeSdkMeetingConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMediaPipelineArn()) { context.Writer.WritePropertyName("MediaPipelineArn"); context.Writer.Write(requestObject.MediaPipelineArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MediaCapturePipelineSourceConfigurationMarshaller Instance = new MediaCapturePipelineSourceConfigurationMarshaller(); } }
73
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MediaCapturePipelineSourceConfiguration Object /// </summary> public class MediaCapturePipelineSourceConfigurationUnmarshaller : IUnmarshaller<MediaCapturePipelineSourceConfiguration, XmlUnmarshallerContext>, IUnmarshaller<MediaCapturePipelineSourceConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MediaCapturePipelineSourceConfiguration IUnmarshaller<MediaCapturePipelineSourceConfiguration, 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 MediaCapturePipelineSourceConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MediaCapturePipelineSourceConfiguration unmarshalledObject = new MediaCapturePipelineSourceConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChimeSdkMeetingConfiguration", targetDepth)) { var unmarshaller = ChimeSdkMeetingConcatenationConfigurationUnmarshaller.Instance; unmarshalledObject.ChimeSdkMeetingConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MediaCapturePipelineSourceConfigurationUnmarshaller _instance = new MediaCapturePipelineSourceConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MediaCapturePipelineSourceConfigurationUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MediaCapturePipelineSummary Object /// </summary> public class MediaCapturePipelineSummaryUnmarshaller : IUnmarshaller<MediaCapturePipelineSummary, XmlUnmarshallerContext>, IUnmarshaller<MediaCapturePipelineSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MediaCapturePipelineSummary IUnmarshaller<MediaCapturePipelineSummary, 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 MediaCapturePipelineSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MediaCapturePipelineSummary unmarshalledObject = new MediaCapturePipelineSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MediaPipelineArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MediaCapturePipelineSummaryUnmarshaller _instance = new MediaCapturePipelineSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MediaCapturePipelineSummaryUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MediaCapturePipeline Object /// </summary> public class MediaCapturePipelineUnmarshaller : IUnmarshaller<MediaCapturePipeline, XmlUnmarshallerContext>, IUnmarshaller<MediaCapturePipeline, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MediaCapturePipeline IUnmarshaller<MediaCapturePipeline, 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 MediaCapturePipeline Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MediaCapturePipeline unmarshalledObject = new MediaCapturePipeline(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChimeSdkMeetingConfiguration", targetDepth)) { var unmarshaller = ChimeSdkMeetingConfigurationUnmarshaller.Instance; unmarshalledObject.ChimeSdkMeetingConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SinkArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SinkArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SinkType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SinkType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MediaCapturePipelineUnmarshaller _instance = new MediaCapturePipelineUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MediaCapturePipelineUnmarshaller Instance { get { return _instance; } } } }
146
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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MediaConcatenationPipeline Object /// </summary> public class MediaConcatenationPipelineUnmarshaller : IUnmarshaller<MediaConcatenationPipeline, XmlUnmarshallerContext>, IUnmarshaller<MediaConcatenationPipeline, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MediaConcatenationPipeline IUnmarshaller<MediaConcatenationPipeline, 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 MediaConcatenationPipeline Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MediaConcatenationPipeline unmarshalledObject = new MediaConcatenationPipeline(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPipelineId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaPipelineId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Sinks", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConcatenationSink, ConcatenationSinkUnmarshaller>(ConcatenationSinkUnmarshaller.Instance); unmarshalledObject.Sinks = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Sources", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConcatenationSource, ConcatenationSourceUnmarshaller>(ConcatenationSourceUnmarshaller.Instance); unmarshalledObject.Sources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MediaConcatenationPipelineUnmarshaller _instance = new MediaConcatenationPipelineUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MediaConcatenationPipelineUnmarshaller 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-media-pipelines-2021-07-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.ChimeSDKMediaPipelines.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMediaPipelines.Model.Internal.MarshallTransformations { /// <summary> /// MediaInsightsPipelineConfigurationElement Marshaller /// </summary> public class MediaInsightsPipelineConfigurationElementMarshaller : IRequestMarshaller<MediaInsightsPipelineConfigurationElement, 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(MediaInsightsPipelineConfigurationElement requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmazonTranscribeCallAnalyticsProcessorConfiguration()) { context.Writer.WritePropertyName("AmazonTranscribeCallAnalyticsProcessorConfiguration"); context.Writer.WriteObjectStart(); var marshaller = AmazonTranscribeCallAnalyticsProcessorConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.AmazonTranscribeCallAnalyticsProcessorConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetAmazonTranscribeProcessorConfiguration()) { context.Writer.WritePropertyName("AmazonTranscribeProcessorConfiguration"); context.Writer.WriteObjectStart(); var marshaller = AmazonTranscribeProcessorConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.AmazonTranscribeProcessorConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetKinesisDataStreamSinkConfiguration()) { context.Writer.WritePropertyName("KinesisDataStreamSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = KinesisDataStreamSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.KinesisDataStreamSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetLambdaFunctionSinkConfiguration()) { context.Writer.WritePropertyName("LambdaFunctionSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = LambdaFunctionSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.LambdaFunctionSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetS3RecordingSinkConfiguration()) { context.Writer.WritePropertyName("S3RecordingSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = S3RecordingSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.S3RecordingSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSnsTopicSinkConfiguration()) { context.Writer.WritePropertyName("SnsTopicSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = SnsTopicSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.SnsTopicSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSqsQueueSinkConfiguration()) { context.Writer.WritePropertyName("SqsQueueSinkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = SqsQueueSinkConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.SqsQueueSinkConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } if(requestObject.IsSetVoiceAnalyticsProcessorConfiguration()) { context.Writer.WritePropertyName("VoiceAnalyticsProcessorConfiguration"); context.Writer.WriteObjectStart(); var marshaller = VoiceAnalyticsProcessorConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.VoiceAnalyticsProcessorConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MediaInsightsPipelineConfigurationElementMarshaller Instance = new MediaInsightsPipelineConfigurationElementMarshaller(); } }
150