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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the CreateAttendee operation. /// Creates a new attendee for an active Amazon Chime SDK meeting. For more information /// about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class CreateAttendeeRequest : AmazonChimeSDKMeetingsRequest { private AttendeeCapabilities _capabilities; private string _externalUserId; private string _meetingId; /// <summary> /// Gets and sets the property Capabilities. /// <para> /// The capabilities (<code>audio</code>, <code>video</code>, or <code>content</code>) /// that you want to grant an attendee. If you don't specify capabilities, all users have /// send and receive capabilities on all media channels by default. /// </para> /// <note> /// <para> /// You use the capabilities with a set of values that control what the capabilities can /// do, such as <code>SendReceive</code> data. For more information about those values, /// see . /// </para> /// </note> /// <para> /// When using capabilities, be aware of these corner cases: /// </para> /// <ul> <li> /// <para> /// You can't set <code>content</code> capabilities to <code>SendReceive</code> or <code>Receive</code> /// unless you also set <code>video</code> capabilities to <code>SendReceive</code> or /// <code>Receive</code>. If you don't set the <code>video</code> capability to receive, /// the response will contain an HTTP 400 Bad Request status code. However, you can set /// your <code>video</code> capability to receive and you set your <code>content</code> /// capability to not receive. /// </para> /// </li> <li> /// <para> /// When you change an <code>audio</code> capability from <code>None</code> or <code>Receive</code> /// to <code>Send</code> or <code>SendReceive</code> , and if the attendee left their /// microphone unmuted, audio will flow from the attendee to the other meeting participants. /// </para> /// </li> <li> /// <para> /// When you change a <code>video</code> or <code>content</code> capability from <code>None</code> /// or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if /// the attendee turned on their video or content streams, remote attendees can receive /// those streams, but only after media renegotiation between the client and the Amazon /// Chime back-end server. /// </para> /// </li> </ul> /// </summary> public AttendeeCapabilities Capabilities { get { return this._capabilities; } set { this._capabilities = value; } } // Check to see if Capabilities property is set internal bool IsSetCapabilities() { return this._capabilities != null; } /// <summary> /// Gets and sets the property ExternalUserId. /// <para> /// The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to /// an identity managed by a builder application. /// </para> /// /// <para> /// Pattern: <code>[-_&amp;@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> /// </para> /// /// <para> /// Values that begin with <code>aws:</code> are reserved. You can't configure a value /// that uses this prefix. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=2, Max=64)] public string ExternalUserId { get { return this._externalUserId; } set { this._externalUserId = value; } } // Check to see if ExternalUserId property is set internal bool IsSetExternalUserId() { return this._externalUserId != null; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The unique ID of the meeting. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The Amazon Chime SDK attendee fields to create, used with the BatchCreateAttendee /// action. /// </summary> public partial class CreateAttendeeRequestItem { private AttendeeCapabilities _capabilities; private string _externalUserId; /// <summary> /// Gets and sets the property Capabilities. /// <para> /// A list of one or more capabilities. /// </para> /// </summary> public AttendeeCapabilities Capabilities { get { return this._capabilities; } set { this._capabilities = value; } } // Check to see if Capabilities property is set internal bool IsSetCapabilities() { return this._capabilities != null; } /// <summary> /// Gets and sets the property ExternalUserId. /// <para> /// The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to /// an identity managed by a builder application. /// </para> /// /// <para> /// Pattern: <code>[-_&amp;@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> /// </para> /// /// <para> /// Values that begin with <code>aws:</code> are reserved. You can't configure a value /// that uses this prefix. Case insensitive. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=2, Max=64)] public string ExternalUserId { get { return this._externalUserId; } set { this._externalUserId = value; } } // Check to see if ExternalUserId property is set internal bool IsSetExternalUserId() { return this._externalUserId != null; } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the CreateAttendee operation. /// </summary> public partial class CreateAttendeeResponse : AmazonWebServiceResponse { private Attendee _attendee; /// <summary> /// Gets and sets the property Attendee. /// <para> /// The attendee information, including attendee ID and join token. /// </para> /// </summary> public Attendee Attendee { get { return this._attendee; } set { this._attendee = value; } } // Check to see if Attendee property is set internal bool IsSetAttendee() { return this._attendee != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the CreateMeeting operation. /// Creates a new Amazon Chime SDK meeting in the specified media Region with no initial /// attendees. For more information about specifying media Regions, see <a href="https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html">Amazon /// Chime SDK Media Regions</a> in the <i>Amazon Chime Developer Guide</i>. For more information /// about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class CreateMeetingRequest : AmazonChimeSDKMeetingsRequest { private string _clientRequestToken; private string _externalMeetingId; private string _mediaRegion; private MeetingFeaturesConfiguration _meetingFeatures; private string _meetingHostId; private NotificationsConfiguration _notificationsConfiguration; private string _primaryMeetingId; private List<Tag> _tags = new List<Tag>(); private List<string> _tenantIds = new List<string>(); /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique identifier for the client request. Use a different token for different /// meetings. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string ClientRequestToken { get { return this._clientRequestToken; } set { this._clientRequestToken = value; } } // Check to see if ClientRequestToken property is set internal bool IsSetClientRequestToken() { return this._clientRequestToken != null; } /// <summary> /// Gets and sets the property ExternalMeetingId. /// <para> /// The external meeting ID. /// </para> /// /// <para> /// Pattern: <code>[-_&amp;@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> /// </para> /// /// <para> /// Values that begin with <code>aws:</code> are reserved. You can't configure a value /// that uses this prefix. Case insensitive. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=2, Max=64)] public string ExternalMeetingId { get { return this._externalMeetingId; } set { this._externalMeetingId = value; } } // Check to see if ExternalMeetingId property is set internal bool IsSetExternalMeetingId() { return this._externalMeetingId != null; } /// <summary> /// Gets and sets the property MediaRegion. /// <para> /// The Region in which to create the meeting. /// </para> /// /// <para> /// Available values: <code>af-south-1</code>, <code>ap-northeast-1</code>, <code>ap-northeast-2</code>, /// <code>ap-south-1</code>, <code>ap-southeast-1</code>, <code>ap-southeast-2</code>, /// <code>ca-central-1</code>, <code>eu-central-1</code>, <code>eu-north-1</code>, <code>eu-south-1</code>, /// <code>eu-west-1</code>, <code>eu-west-2</code>, <code>eu-west-3</code>, <code>sa-east-1</code>, /// <code>us-east-1</code>, <code>us-east-2</code>, <code>us-west-1</code>, <code>us-west-2</code>. /// /// </para> /// /// <para> /// Available values in AWS GovCloud (US) Regions: <code>us-gov-east-1</code>, <code>us-gov-west-1</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=2, Max=64)] public string MediaRegion { get { return this._mediaRegion; } set { this._mediaRegion = value; } } // Check to see if MediaRegion property is set internal bool IsSetMediaRegion() { return this._mediaRegion != null; } /// <summary> /// Gets and sets the property MeetingFeatures. /// <para> /// Lists the audio and video features enabled for a meeting, such as echo reduction. /// </para> /// </summary> public MeetingFeaturesConfiguration MeetingFeatures { get { return this._meetingFeatures; } set { this._meetingFeatures = value; } } // Check to see if MeetingFeatures property is set internal bool IsSetMeetingFeatures() { return this._meetingFeatures != null; } /// <summary> /// Gets and sets the property MeetingHostId. /// <para> /// Reserved. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string MeetingHostId { get { return this._meetingHostId; } set { this._meetingHostId = value; } } // Check to see if MeetingHostId property is set internal bool IsSetMeetingHostId() { return this._meetingHostId != null; } /// <summary> /// Gets and sets the property NotificationsConfiguration. /// <para> /// The configuration for resource targets to receive notifications when meeting and attendee /// events occur. /// </para> /// </summary> public NotificationsConfiguration NotificationsConfiguration { get { return this._notificationsConfiguration; } set { this._notificationsConfiguration = value; } } // Check to see if NotificationsConfiguration property is set internal bool IsSetNotificationsConfiguration() { return this._notificationsConfiguration != null; } /// <summary> /// Gets and sets the property PrimaryMeetingId. /// <para> /// When specified, replicates the media from the primary meeting to the new meeting. /// </para> /// </summary> [AWSProperty(Min=2, Max=64)] public string PrimaryMeetingId { get { return this._primaryMeetingId; } set { this._primaryMeetingId = value; } } // Check to see if PrimaryMeetingId property is set internal bool IsSetPrimaryMeetingId() { return this._primaryMeetingId != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Applies one or more tags to an Amazon Chime SDK meeting. Note the following: /// </para> /// <ul> <li> /// <para> /// Not all resources have tags. For a list of services with resources that support tagging /// using this operation, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html">Services /// that support the Resource Groups Tagging API</a>. If the resource doesn't yet support /// this operation, the resource's service might support tagging using its own API operations. /// For more information, refer to the documentation for that service. /// </para> /// </li> <li> /// <para> /// Each resource can have up to 50 tags. For other limits, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions">Tag /// Naming and Usage Conventions</a> in the <i>AWS General Reference</i>. /// </para> /// </li> <li> /// <para> /// You can only tag resources that are located in the specified AWS Region for the AWS /// account. /// </para> /// </li> <li> /// <para> /// To add tags to a resource, you need the necessary permissions for the service that /// the resource belongs to as well as permissions for adding tags. For more information, /// see the documentation for each service. /// </para> /// </li> </ul> <important> /// <para> /// Do not store personally identifiable information (PII) or other confidential or sensitive /// information in tags. We use tags to provide you with billing and administration services. /// Tags are not intended to be used for private or sensitive data. /// </para> /// </important> /// <para> /// <b>Minimum permissions</b> /// </para> /// /// <para> /// In addition to the <code>tag:TagResources</code> permission required by this operation, /// you must also have the tagging permission defined by the service that created the /// resource. For example, to tag a <code>ChimeSDKMeetings</code> instance using the <code>TagResources</code> /// operation, you must have both of the following permissions: /// </para> /// /// <para> /// <code>tag:TagResources</code> /// </para> /// /// <para> /// <code>ChimeSDKMeetings:CreateTags</code> /// </para> /// <note> /// <para> /// Some services might have specific requirements for tagging some resources. For example, /// to tag an Amazon S3 bucket, you must also have the <code>s3:GetBucketTagging</code> /// permission. If the expected minimum permissions don't work, check the documentation /// for that service's tagging APIs for more information. /// </para> /// </note> /// </summary> [AWSProperty(Min=0, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TenantIds. /// <para> /// A consistent and opaque identifier, created and maintained by the builder to represent /// a segment of their users. /// </para> /// </summary> [AWSProperty(Min=1, Max=5)] public List<string> TenantIds { get { return this._tenantIds; } set { this._tenantIds = value; } } // Check to see if TenantIds property is set internal bool IsSetTenantIds() { return this._tenantIds != null && this._tenantIds.Count > 0; } } }
303
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the CreateMeeting operation. /// </summary> public partial class CreateMeetingResponse : AmazonWebServiceResponse { private Meeting _meeting; /// <summary> /// Gets and sets the property Meeting. /// <para> /// The meeting information, including the meeting ID and <code>MediaPlacement</code>. /// </para> /// </summary> public Meeting Meeting { get { return this._meeting; } set { this._meeting = value; } } // Check to see if Meeting property is set internal bool IsSetMeeting() { return this._meeting != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the CreateMeetingWithAttendees operation. /// Creates a new Amazon Chime SDK meeting in the specified media Region, with attendees. /// For more information about specifying media Regions, see <a href="https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html">Amazon /// Chime SDK Media Regions</a> in the <i>Amazon Chime Developer Guide</i>. For more information /// about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class CreateMeetingWithAttendeesRequest : AmazonChimeSDKMeetingsRequest { private List<CreateAttendeeRequestItem> _attendees = new List<CreateAttendeeRequestItem>(); private string _clientRequestToken; private string _externalMeetingId; private string _mediaRegion; private MeetingFeaturesConfiguration _meetingFeatures; private string _meetingHostId; private NotificationsConfiguration _notificationsConfiguration; private string _primaryMeetingId; private List<Tag> _tags = new List<Tag>(); private List<string> _tenantIds = new List<string>(); /// <summary> /// Gets and sets the property Attendees. /// <para> /// The attendee information, including attendees' IDs and join tokens. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=20)] public List<CreateAttendeeRequestItem> Attendees { get { return this._attendees; } set { this._attendees = value; } } // Check to see if Attendees property is set internal bool IsSetAttendees() { return this._attendees != null && this._attendees.Count > 0; } /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique identifier for the client request. Use a different token for different /// meetings. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string ClientRequestToken { get { return this._clientRequestToken; } set { this._clientRequestToken = value; } } // Check to see if ClientRequestToken property is set internal bool IsSetClientRequestToken() { return this._clientRequestToken != null; } /// <summary> /// Gets and sets the property ExternalMeetingId. /// <para> /// The external meeting ID. /// </para> /// /// <para> /// Pattern: <code>[-_&amp;@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> /// </para> /// /// <para> /// Values that begin with <code>aws:</code> are reserved. You can't configure a value /// that uses this prefix. Case insensitive. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=2, Max=64)] public string ExternalMeetingId { get { return this._externalMeetingId; } set { this._externalMeetingId = value; } } // Check to see if ExternalMeetingId property is set internal bool IsSetExternalMeetingId() { return this._externalMeetingId != null; } /// <summary> /// Gets and sets the property MediaRegion. /// <para> /// The Region in which to create the meeting. /// </para> /// /// <para> /// Available values: <code>af-south-1</code>, <code>ap-northeast-1</code>, <code>ap-northeast-2</code>, /// <code>ap-south-1</code>, <code>ap-southeast-1</code>, <code>ap-southeast-2</code>, /// <code>ca-central-1</code>, <code>eu-central-1</code>, <code>eu-north-1</code>, <code>eu-south-1</code>, /// <code>eu-west-1</code>, <code>eu-west-2</code>, <code>eu-west-3</code>, <code>sa-east-1</code>, /// <code>us-east-1</code>, <code>us-east-2</code>, <code>us-west-1</code>, <code>us-west-2</code>. /// /// </para> /// /// <para> /// Available values in AWS GovCloud (US) Regions: <code>us-gov-east-1</code>, <code>us-gov-west-1</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=2, Max=64)] public string MediaRegion { get { return this._mediaRegion; } set { this._mediaRegion = value; } } // Check to see if MediaRegion property is set internal bool IsSetMediaRegion() { return this._mediaRegion != null; } /// <summary> /// Gets and sets the property MeetingFeatures. /// <para> /// Lists the audio and video features enabled for a meeting, such as echo reduction. /// </para> /// </summary> public MeetingFeaturesConfiguration MeetingFeatures { get { return this._meetingFeatures; } set { this._meetingFeatures = value; } } // Check to see if MeetingFeatures property is set internal bool IsSetMeetingFeatures() { return this._meetingFeatures != null; } /// <summary> /// Gets and sets the property MeetingHostId. /// <para> /// Reserved. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string MeetingHostId { get { return this._meetingHostId; } set { this._meetingHostId = value; } } // Check to see if MeetingHostId property is set internal bool IsSetMeetingHostId() { return this._meetingHostId != null; } /// <summary> /// Gets and sets the property NotificationsConfiguration. /// <para> /// The configuration for resource targets to receive notifications when meeting and attendee /// events occur. /// </para> /// </summary> public NotificationsConfiguration NotificationsConfiguration { get { return this._notificationsConfiguration; } set { this._notificationsConfiguration = value; } } // Check to see if NotificationsConfiguration property is set internal bool IsSetNotificationsConfiguration() { return this._notificationsConfiguration != null; } /// <summary> /// Gets and sets the property PrimaryMeetingId. /// <para> /// When specified, replicates the media from the primary meeting to the new meeting. /// </para> /// </summary> [AWSProperty(Min=2, Max=64)] public string PrimaryMeetingId { get { return this._primaryMeetingId; } set { this._primaryMeetingId = value; } } // Check to see if PrimaryMeetingId property is set internal bool IsSetPrimaryMeetingId() { return this._primaryMeetingId != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags in the request. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TenantIds. /// <para> /// A consistent and opaque identifier, created and maintained by the builder to represent /// a segment of their users. /// </para> /// </summary> [AWSProperty(Min=1, Max=5)] public List<string> TenantIds { get { return this._tenantIds; } set { this._tenantIds = value; } } // Check to see if TenantIds property is set internal bool IsSetTenantIds() { return this._tenantIds != null && this._tenantIds.Count > 0; } } }
266
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the CreateMeetingWithAttendees operation. /// </summary> public partial class CreateMeetingWithAttendeesResponse : AmazonWebServiceResponse { private List<Attendee> _attendees = new List<Attendee>(); private List<CreateAttendeeError> _errors = new List<CreateAttendeeError>(); private Meeting _meeting; /// <summary> /// Gets and sets the property Attendees. /// <para> /// The attendee information, including attendees' IDs and join tokens. /// </para> /// </summary> public List<Attendee> Attendees { get { return this._attendees; } set { this._attendees = value; } } // Check to see if Attendees property is set internal bool IsSetAttendees() { return this._attendees != null && this._attendees.Count > 0; } /// <summary> /// Gets and sets the property Errors. /// <para> /// If the action fails for one or more of the attendees in the request, a list of the /// attendees is returned, along with error codes and error messages. /// </para> /// </summary> public List<CreateAttendeeError> Errors { get { return this._errors; } set { this._errors = value; } } // Check to see if Errors property is set internal bool IsSetErrors() { return this._errors != null && this._errors.Count > 0; } /// <summary> /// Gets and sets the property Meeting. /// <para> /// The meeting information, including the meeting ID and <code>MediaPlacement</code>. /// </para> /// </summary> public Meeting Meeting { get { return this._meeting; } set { this._meeting = value; } } // Check to see if Meeting property is set internal bool IsSetMeeting() { return this._meeting != null; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the DeleteAttendee operation. /// Deletes an attendee from the specified Amazon Chime SDK meeting and deletes their /// <code>JoinToken</code>. Attendees are automatically deleted when a Amazon Chime SDK /// meeting is deleted. For more information about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class DeleteAttendeeRequest : AmazonChimeSDKMeetingsRequest { private string _attendeeId; private string _meetingId; /// <summary> /// Gets and sets the property AttendeeId. /// <para> /// The Amazon Chime SDK attendee ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string AttendeeId { get { return this._attendeeId; } set { this._attendeeId = value; } } // Check to see if AttendeeId property is set internal bool IsSetAttendeeId() { return this._attendeeId != null; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
82
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the DeleteAttendee operation. /// </summary> public partial class DeleteAttendeeResponse : 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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the DeleteMeeting operation. /// Deletes the specified Amazon Chime SDK meeting. The operation deletes all attendees, /// disconnects all clients, and prevents new clients from joining the meeting. For more /// information about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class DeleteMeetingRequest : AmazonChimeSDKMeetingsRequest { private string _meetingId; /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the DeleteMeeting operation. /// </summary> public partial class DeleteMeetingResponse : 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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Settings specific to the Amazon Transcribe Medical engine. /// </summary> public partial class EngineTranscribeMedicalSettings { private TranscribeMedicalContentIdentificationType _contentIdentificationType; private TranscribeMedicalLanguageCode _languageCode; private TranscribeMedicalRegion _region; private TranscribeMedicalSpecialty _specialty; private TranscribeMedicalType _type; private string _vocabularyName; /// <summary> /// Gets and sets the property ContentIdentificationType. /// <para> /// Set this field to <code>PHI</code> to identify personal health information in the /// transcription output. /// </para> /// </summary> public TranscribeMedicalContentIdentificationType ContentIdentificationType { get { return this._contentIdentificationType; } set { this._contentIdentificationType = value; } } // Check to see if ContentIdentificationType property is set internal bool IsSetContentIdentificationType() { return this._contentIdentificationType != null; } /// <summary> /// Gets and sets the property LanguageCode. /// <para> /// The language code specified for the Amazon Transcribe Medical engine. /// </para> /// </summary> [AWSProperty(Required=true)] public TranscribeMedicalLanguageCode LanguageCode { get { return this._languageCode; } set { this._languageCode = value; } } // Check to see if LanguageCode property is set internal bool IsSetLanguageCode() { return this._languageCode != null; } /// <summary> /// Gets and sets the property Region. /// <para> /// The AWS Region passed to Amazon Transcribe Medical. If you don't specify a Region, /// Amazon Chime uses the meeting's Region. /// </para> /// </summary> public TranscribeMedicalRegion Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// <summary> /// Gets and sets the property Specialty. /// <para> /// The specialty specified for the Amazon Transcribe Medical engine. /// </para> /// </summary> [AWSProperty(Required=true)] public TranscribeMedicalSpecialty Specialty { get { return this._specialty; } set { this._specialty = value; } } // Check to see if Specialty property is set internal bool IsSetSpecialty() { return this._specialty != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of transcription. /// </para> /// </summary> [AWSProperty(Required=true)] public TranscribeMedicalType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property VocabularyName. /// <para> /// The name of the vocabulary passed to Amazon Transcribe Medical. /// </para> /// </summary> [AWSProperty(Max=4096)] public string VocabularyName { get { return this._vocabularyName; } set { this._vocabularyName = value; } } // Check to see if VocabularyName property is set internal bool IsSetVocabularyName() { return this._vocabularyName != null; } } }
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Settings specific for Amazon Transcribe as the live transcription engine. /// /// /// <para> /// If you specify an invalid combination of parameters, a <code>TranscriptFailed</code> /// event will be sent with the contents of the <code>BadRequestException</code> generated /// by Amazon Transcribe. For more information on each parameter and which combinations /// are valid, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html">StartStreamTranscription</a> /// API in the <i>Amazon Transcribe Developer Guide</i>. /// </para> /// </summary> public partial class EngineTranscribeSettings { private TranscribeContentIdentificationType _contentIdentificationType; private TranscribeContentRedactionType _contentRedactionType; private bool? _enablePartialResultsStabilization; private bool? _identifyLanguage; private TranscribeLanguageCode _languageCode; private string _languageModelName; private string _languageOptions; private TranscribePartialResultsStability _partialResultsStability; private string _piiEntityTypes; private TranscribeLanguageCode _preferredLanguage; private TranscribeRegion _region; private TranscribeVocabularyFilterMethod _vocabularyFilterMethod; private string _vocabularyFilterName; private string _vocabularyFilterNames; private string _vocabularyName; private string _vocabularyNames; /// <summary> /// Gets and sets the property ContentIdentificationType. /// <para> /// Labels all personally identifiable information (PII) identified in your transcript. /// If you don't include <code>PiiEntityTypes</code>, all PII is identified. /// </para> /// <note> /// <para> /// You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code>. /// </para> /// </note> /// </summary> public TranscribeContentIdentificationType ContentIdentificationType { get { return this._contentIdentificationType; } set { this._contentIdentificationType = value; } } // Check to see if ContentIdentificationType property is set internal bool IsSetContentIdentificationType() { return this._contentIdentificationType != null; } /// <summary> /// Gets and sets the property ContentRedactionType. /// <para> /// Content redaction is performed at the segment level. If you don't include <code>PiiEntityTypes</code>, /// all PII is redacted. /// </para> /// <note> /// <para> /// You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code>. /// </para> /// </note> /// </summary> public TranscribeContentRedactionType ContentRedactionType { get { return this._contentRedactionType; } set { this._contentRedactionType = value; } } // Check to see if ContentRedactionType property is set internal bool IsSetContentRedactionType() { return this._contentRedactionType != null; } /// <summary> /// Gets and sets the property EnablePartialResultsStabilization. /// <para> /// Enables partial result stabilization for your transcription. Partial result stabilization /// can reduce latency in your output, but may impact accuracy. /// </para> /// </summary> public bool EnablePartialResultsStabilization { get { return this._enablePartialResultsStabilization.GetValueOrDefault(); } set { this._enablePartialResultsStabilization = value; } } // Check to see if EnablePartialResultsStabilization property is set internal bool IsSetEnablePartialResultsStabilization() { return this._enablePartialResultsStabilization.HasValue; } /// <summary> /// Gets and sets the property IdentifyLanguage. /// <para> /// Enables automatic language identification for your transcription. /// </para> /// /// <para> /// If you include <code>IdentifyLanguage</code>, you can optionally use <code>LanguageOptions</code> /// to include a list of language codes that you think may be present in your audio stream. /// Including language options can improve transcription accuracy. /// </para> /// /// <para> /// You can also use <code>PreferredLanguage</code> to include a preferred language. Doing /// so can help Amazon Transcribe identify the language faster. /// </para> /// /// <para> /// You must include either <code>LanguageCode</code> or <code>IdentifyLanguage</code>. /// </para> /// /// <para> /// Language identification can't be combined with custom language models or redaction. /// </para> /// </summary> public bool IdentifyLanguage { get { return this._identifyLanguage.GetValueOrDefault(); } set { this._identifyLanguage = value; } } // Check to see if IdentifyLanguage property is set internal bool IsSetIdentifyLanguage() { return this._identifyLanguage.HasValue; } /// <summary> /// Gets and sets the property LanguageCode. /// <para> /// Specify the language code that represents the language spoken. /// </para> /// /// <para> /// If you're unsure of the language spoken in your audio, consider using <code>IdentifyLanguage</code> /// to enable automatic language identification. /// </para> /// </summary> public TranscribeLanguageCode LanguageCode { get { return this._languageCode; } set { this._languageCode = value; } } // Check to see if LanguageCode property is set internal bool IsSetLanguageCode() { return this._languageCode != null; } /// <summary> /// Gets and sets the property LanguageModelName. /// <para> /// Specify the name of the custom language model that you want to use when processing /// your transcription. Note that language model names are case sensitive. /// </para> /// /// <para> /// The language of the specified language model must match the language code. If the /// languages don't match, the custom language model isn't applied. There are no errors /// or warnings associated with a language mismatch. /// </para> /// /// <para> /// If you use Amazon Transcribe in multiple Regions, the custom language model must be /// available in Amazon Transcribe in each Region. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public string LanguageModelName { get { return this._languageModelName; } set { this._languageModelName = value; } } // Check to see if LanguageModelName property is set internal bool IsSetLanguageModelName() { return this._languageModelName != null; } /// <summary> /// Gets and sets the property LanguageOptions. /// <para> /// Specify two or more language codes that represent the languages you think may be present /// in your media; including more than five is not recommended. If you're unsure what /// languages are present, do not include this parameter. /// </para> /// /// <para> /// Including language options can improve the accuracy of language identification. /// </para> /// /// <para> /// If you include <code>LanguageOptions</code>, you must also include <code>IdentifyLanguage</code>. /// </para> /// <important> /// <para> /// You can only include one language dialect per language. For example, you cannot include /// <code>en-US</code> and <code>en-AU</code>. /// </para> /// </important> /// </summary> [AWSProperty(Min=1, Max=200)] public string LanguageOptions { get { return this._languageOptions; } set { this._languageOptions = value; } } // Check to see if LanguageOptions property is set internal bool IsSetLanguageOptions() { return this._languageOptions != null; } /// <summary> /// Gets and sets the property PartialResultsStability. /// <para> /// Specify the level of stability to use when you enable partial results stabilization /// (<code>EnablePartialResultsStabilization</code>). /// </para> /// /// <para> /// Low stability provides the highest accuracy. High stability transcribes faster, but /// with slightly lower accuracy. /// </para> /// </summary> public TranscribePartialResultsStability PartialResultsStability { get { return this._partialResultsStability; } set { this._partialResultsStability = value; } } // Check to see if PartialResultsStability property is set internal bool IsSetPartialResultsStability() { return this._partialResultsStability != null; } /// <summary> /// Gets and sets the property PiiEntityTypes. /// <para> /// Specify which types of personally identifiable information (PII) you want to redact /// in your transcript. You can include as many types as you'd like, or you can select /// <code>ALL</code>. /// </para> /// /// <para> /// Values must be comma-separated and can include: <code>ADDRESS</code>, <code>BANK_ACCOUNT_NUMBER</code>, /// <code>BANK_ROUTING</code>, <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code> /// <code>CREDIT_DEBIT_NUMBER</code>, <code>EMAIL</code>,<code>NAME</code>, <code>PHONE</code>, /// <code>PIN</code>, <code>SSN</code>, or <code>ALL</code>. /// </para> /// /// <para> /// Note that if you include <code>PiiEntityTypes</code>, you must also include <code>ContentIdentificationType</code> /// or <code>ContentRedactionType</code>. /// </para> /// /// <para> /// If you include <code>ContentRedactionType</code> or <code>ContentIdentificationType</code>, /// but do not include PiiEntityTypes, all PII is redacted or identified. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string PiiEntityTypes { get { return this._piiEntityTypes; } set { this._piiEntityTypes = value; } } // Check to see if PiiEntityTypes property is set internal bool IsSetPiiEntityTypes() { return this._piiEntityTypes != null; } /// <summary> /// Gets and sets the property PreferredLanguage. /// <para> /// Specify a preferred language from the subset of languages codes you specified in <code>LanguageOptions</code>. /// </para> /// /// <para> /// You can only use this parameter if you include <code>IdentifyLanguage</code> and <code>LanguageOptions</code>. /// </para> /// </summary> public TranscribeLanguageCode PreferredLanguage { get { return this._preferredLanguage; } set { this._preferredLanguage = value; } } // Check to see if PreferredLanguage property is set internal bool IsSetPreferredLanguage() { return this._preferredLanguage != null; } /// <summary> /// Gets and sets the property Region. /// <para> /// The AWS Region in which to use Amazon Transcribe. /// </para> /// /// <para> /// If you don't specify a Region, then the <a href="https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_CreateMeeting.html">MediaRegion</a> /// of the meeting is used. However, if Amazon Transcribe is not available in the <code>MediaRegion</code>, /// then a <code>TranscriptFailed</code> event is sent. /// </para> /// /// <para> /// Use <code>auto</code> to use Amazon Transcribe in a Region near the meeting’s <code>MediaRegion</code>. /// For more information, refer to <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/transcription-options.html#choose-region">Choosing /// a transcription Region</a> in the <i>Amazon Chime SDK Developer Guide</i>. /// </para> /// </summary> public TranscribeRegion Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// <summary> /// Gets and sets the property VocabularyFilterMethod. /// <para> /// Specify how you want your vocabulary filter applied to your transcript. /// </para> /// /// <para> /// To replace words with <code>***</code>, choose <code>mask</code>. /// </para> /// /// <para> /// To delete words, choose <code>remove</code>. /// </para> /// /// <para> /// To flag words without changing them, choose <code>tag</code>. /// </para> /// </summary> public TranscribeVocabularyFilterMethod VocabularyFilterMethod { get { return this._vocabularyFilterMethod; } set { this._vocabularyFilterMethod = value; } } // Check to see if VocabularyFilterMethod property is set internal bool IsSetVocabularyFilterMethod() { return this._vocabularyFilterMethod != null; } /// <summary> /// Gets and sets the property VocabularyFilterName. /// <para> /// Specify the name of the custom vocabulary filter that you want to use when processing /// your transcription. Note that vocabulary filter names are case sensitive. /// </para> /// /// <para> /// If you use Amazon Transcribe in multiple Regions, the vocabulary filter must be available /// in Amazon Transcribe in each Region. /// </para> /// /// <para> /// If you include <code>IdentifyLanguage</code> and want to use one or more vocabulary /// filters with your transcription, use the <code>VocabularyFilterNames</code> parameter /// instead. /// </para> /// </summary> [AWSProperty(Max=4096)] public string VocabularyFilterName { get { return this._vocabularyFilterName; } set { this._vocabularyFilterName = value; } } // Check to see if VocabularyFilterName property is set internal bool IsSetVocabularyFilterName() { return this._vocabularyFilterName != null; } /// <summary> /// Gets and sets the property VocabularyFilterNames. /// <para> /// Specify the names of the custom vocabulary filters that you want to use when processing /// your transcription. Note that vocabulary filter names are case sensitive. /// </para> /// /// <para> /// If you use Amazon Transcribe in multiple Regions, the vocabulary filter must be available /// in Amazon Transcribe in each Region. /// </para> /// /// <para> /// If you're <i>not</i> including <code>IdentifyLanguage</code> and want to use a custom /// vocabulary filter with your transcription, use the <code>VocabularyFilterName</code> /// parameter instead. /// </para> /// </summary> [AWSProperty(Min=1, Max=3000)] public string VocabularyFilterNames { get { return this._vocabularyFilterNames; } set { this._vocabularyFilterNames = value; } } // Check to see if VocabularyFilterNames property is set internal bool IsSetVocabularyFilterNames() { return this._vocabularyFilterNames != null; } /// <summary> /// Gets and sets the property VocabularyName. /// <para> /// Specify the name of the custom vocabulary that you want to use when processing your /// transcription. Note that vocabulary names are case sensitive. /// </para> /// /// <para> /// If you use Amazon Transcribe multiple Regions, the vocabulary must be available in /// Amazon Transcribe in each Region. /// </para> /// /// <para> /// If you include <code>IdentifyLanguage</code> and want to use one or more custom vocabularies /// with your transcription, use the <code>VocabularyNames</code> parameter instead. /// </para> /// </summary> [AWSProperty(Max=4096)] public string VocabularyName { get { return this._vocabularyName; } set { this._vocabularyName = value; } } // Check to see if VocabularyName property is set internal bool IsSetVocabularyName() { return this._vocabularyName != null; } /// <summary> /// Gets and sets the property VocabularyNames. /// <para> /// Specify the names of the custom vocabularies that you want to use when processing /// your transcription. Note that vocabulary names are case sensitive. /// </para> /// /// <para> /// If you use Amazon Transcribe in multiple Regions, the vocabulary must be available /// in Amazon Transcribe in each Region. /// </para> /// /// <para> /// If you don't include <code>IdentifyLanguage</code> and want to use a custom vocabulary /// with your transcription, use the <code>VocabularyName</code> parameter instead. /// </para> /// </summary> [AWSProperty(Min=1, Max=3000)] public string VocabularyNames { get { return this._vocabularyNames; } set { this._vocabularyNames = value; } } // Check to see if VocabularyNames property is set internal bool IsSetVocabularyNames() { return this._vocabularyNames != null; } } }
522
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The client is permanently forbidden from making the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ForbiddenException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new ForbiddenException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ForbiddenException(string message) : base(message) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ForbiddenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="innerException"></param> public ForbiddenException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ForbiddenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ForbiddenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ForbiddenException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ForbiddenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request id associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the GetAttendee operation. /// Gets the Amazon Chime SDK attendee details for a specified meeting ID and attendee /// ID. For more information about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class GetAttendeeRequest : AmazonChimeSDKMeetingsRequest { private string _attendeeId; private string _meetingId; /// <summary> /// Gets and sets the property AttendeeId. /// <para> /// The Amazon Chime SDK attendee ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string AttendeeId { get { return this._attendeeId; } set { this._attendeeId = value; } } // Check to see if AttendeeId property is set internal bool IsSetAttendeeId() { return this._attendeeId != null; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the GetAttendee operation. /// </summary> public partial class GetAttendeeResponse : AmazonWebServiceResponse { private Attendee _attendee; /// <summary> /// Gets and sets the property Attendee. /// <para> /// The Amazon Chime SDK attendee information. /// </para> /// </summary> public Attendee Attendee { get { return this._attendee; } set { this._attendee = value; } } // Check to see if Attendee property is set internal bool IsSetAttendee() { return this._attendee != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the GetMeeting operation. /// Gets the Amazon Chime SDK meeting details for the specified meeting ID. For more information /// about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class GetMeetingRequest : AmazonChimeSDKMeetingsRequest { private string _meetingId; /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
61
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the GetMeeting operation. /// </summary> public partial class GetMeetingResponse : AmazonWebServiceResponse { private Meeting _meeting; /// <summary> /// Gets and sets the property Meeting. /// <para> /// The Amazon Chime SDK meeting information. /// </para> /// </summary> public Meeting Meeting { get { return this._meeting; } set { this._meeting = value; } } // Check to see if Meeting property is set internal bool IsSetMeeting() { return this._meeting != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The request exceeds the resource limit. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LimitExceededException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new LimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="innerException"></param> public LimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the LimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request id associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the ListAttendees operation. /// Lists the attendees for the specified Amazon Chime SDK meeting. For more information /// about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html">Using /// the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>. /// </summary> public partial class ListAttendeesRequest : AmazonChimeSDKMeetingsRequest { private int? _maxResults; private string _meetingId; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to return in a single call. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use to retrieve the next page of results. /// </para> /// </summary> [AWSProperty(Max=4096)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the ListAttendees operation. /// </summary> public partial class ListAttendeesResponse : AmazonWebServiceResponse { private List<Attendee> _attendees = new List<Attendee>(); private string _nextToken; /// <summary> /// Gets and sets the property Attendees. /// <para> /// The Amazon Chime SDK attendee information. /// </para> /// </summary> public List<Attendee> Attendees { get { return this._attendees; } set { this._attendees = value; } } // Check to see if Attendees property is set internal bool IsSetAttendees() { return this._attendees != null && this._attendees.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use to retrieve the next page of results. /// </para> /// </summary> [AWSProperty(Max=4096)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// Returns a list of the tags available for the specified resource. /// </summary> public partial class ListTagsForResourceRequest : AmazonChimeSDKMeetingsRequest { private string _resourceARN; /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The ARN of the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags requested for the specified resource. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// A set of endpoints used by clients to connect to the media service group for an Amazon /// Chime SDK meeting. /// </summary> public partial class MediaPlacement { private string _audioFallbackUrl; private string _audioHostUrl; private string _eventIngestionUrl; private string _screenDataUrl; private string _screenSharingUrl; private string _screenViewingUrl; private string _signalingUrl; private string _turnControlUrl; /// <summary> /// Gets and sets the property AudioFallbackUrl. /// <para> /// The audio fallback URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string AudioFallbackUrl { get { return this._audioFallbackUrl; } set { this._audioFallbackUrl = value; } } // Check to see if AudioFallbackUrl property is set internal bool IsSetAudioFallbackUrl() { return this._audioFallbackUrl != null; } /// <summary> /// Gets and sets the property AudioHostUrl. /// <para> /// The audio host URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string AudioHostUrl { get { return this._audioHostUrl; } set { this._audioHostUrl = value; } } // Check to see if AudioHostUrl property is set internal bool IsSetAudioHostUrl() { return this._audioHostUrl != null; } /// <summary> /// Gets and sets the property EventIngestionUrl. /// <para> /// The event ingestion URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string EventIngestionUrl { get { return this._eventIngestionUrl; } set { this._eventIngestionUrl = value; } } // Check to see if EventIngestionUrl property is set internal bool IsSetEventIngestionUrl() { return this._eventIngestionUrl != null; } /// <summary> /// Gets and sets the property ScreenDataUrl. /// <para> /// The screen data URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string ScreenDataUrl { get { return this._screenDataUrl; } set { this._screenDataUrl = value; } } // Check to see if ScreenDataUrl property is set internal bool IsSetScreenDataUrl() { return this._screenDataUrl != null; } /// <summary> /// Gets and sets the property ScreenSharingUrl. /// <para> /// The screen sharing URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string ScreenSharingUrl { get { return this._screenSharingUrl; } set { this._screenSharingUrl = value; } } // Check to see if ScreenSharingUrl property is set internal bool IsSetScreenSharingUrl() { return this._screenSharingUrl != null; } /// <summary> /// Gets and sets the property ScreenViewingUrl. /// <para> /// The screen viewing URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string ScreenViewingUrl { get { return this._screenViewingUrl; } set { this._screenViewingUrl = value; } } // Check to see if ScreenViewingUrl property is set internal bool IsSetScreenViewingUrl() { return this._screenViewingUrl != null; } /// <summary> /// Gets and sets the property SignalingUrl. /// <para> /// The signaling URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string SignalingUrl { get { return this._signalingUrl; } set { this._signalingUrl = value; } } // Check to see if SignalingUrl property is set internal bool IsSetSignalingUrl() { return this._signalingUrl != null; } /// <summary> /// Gets and sets the property TurnControlUrl. /// <para> /// The turn control URL. /// </para> /// </summary> [AWSProperty(Max=4096)] public string TurnControlUrl { get { return this._turnControlUrl; } set { this._turnControlUrl = value; } } // Check to see if TurnControlUrl property is set internal bool IsSetTurnControlUrl() { return this._turnControlUrl != null; } } }
199
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// A meeting created using the Amazon Chime SDK. /// </summary> public partial class Meeting { private string _externalMeetingId; private MediaPlacement _mediaPlacement; private string _mediaRegion; private string _meetingArn; private MeetingFeaturesConfiguration _meetingFeatures; private string _meetingHostId; private string _meetingId; private string _primaryMeetingId; private List<string> _tenantIds = new List<string>(); /// <summary> /// Gets and sets the property ExternalMeetingId. /// <para> /// The external meeting ID. /// </para> /// /// <para> /// Pattern: <code>[-_&amp;@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> /// </para> /// /// <para> /// Values that begin with <code>aws:</code> are reserved. You can't configure a value /// that uses this prefix. Case insensitive. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string ExternalMeetingId { get { return this._externalMeetingId; } set { this._externalMeetingId = value; } } // Check to see if ExternalMeetingId property is set internal bool IsSetExternalMeetingId() { return this._externalMeetingId != null; } /// <summary> /// Gets and sets the property MediaPlacement. /// <para> /// The media placement for the meeting. /// </para> /// </summary> public MediaPlacement MediaPlacement { get { return this._mediaPlacement; } set { this._mediaPlacement = value; } } // Check to see if MediaPlacement property is set internal bool IsSetMediaPlacement() { return this._mediaPlacement != null; } /// <summary> /// Gets and sets the property MediaRegion. /// <para> /// The Region in which you create the meeting. Available values: <code>af-south-1</code>, /// <code>ap-northeast-1</code>, <code>ap-northeast-2</code>, <code>ap-south-1</code>, /// <code>ap-southeast-1</code>, <code>ap-southeast-2</code>, <code>ca-central-1</code>, /// <code>eu-central-1</code>, <code>eu-north-1</code>, <code>eu-south-1</code>, <code>eu-west-1</code>, /// <code>eu-west-2</code>, <code>eu-west-3</code>, <code>sa-east-1</code>, <code>us-east-1</code>, /// <code>us-east-2</code>, <code>us-west-1</code>, <code>us-west-2</code>. /// </para> /// /// <para> /// Available values in AWS GovCloud (US) Regions: <code>us-gov-east-1</code>, <code>us-gov-west-1</code>. /// </para> /// </summary> [AWSProperty(Min=2, Max=64)] public string MediaRegion { get { return this._mediaRegion; } set { this._mediaRegion = value; } } // Check to see if MediaRegion property is set internal bool IsSetMediaRegion() { return this._mediaRegion != null; } /// <summary> /// Gets and sets the property MeetingArn. /// <para> /// The ARN of the meeting. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string MeetingArn { get { return this._meetingArn; } set { this._meetingArn = value; } } // Check to see if MeetingArn property is set internal bool IsSetMeetingArn() { return this._meetingArn != null; } /// <summary> /// Gets and sets the property MeetingFeatures. /// <para> /// The features available to a meeting, such as echo reduction. /// </para> /// </summary> public MeetingFeaturesConfiguration MeetingFeatures { get { return this._meetingFeatures; } set { this._meetingFeatures = value; } } // Check to see if MeetingFeatures property is set internal bool IsSetMeetingFeatures() { return this._meetingFeatures != null; } /// <summary> /// Gets and sets the property MeetingHostId. /// <para> /// Reserved. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=2, Max=64)] public string MeetingHostId { get { return this._meetingHostId; } set { this._meetingHostId = value; } } // Check to see if MeetingHostId property is set internal bool IsSetMeetingHostId() { return this._meetingHostId != null; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The Amazon Chime SDK meeting ID. /// </para> /// </summary> public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } /// <summary> /// Gets and sets the property PrimaryMeetingId. /// <para> /// When specified, replicates the media from the primary meeting to this meeting. /// </para> /// </summary> [AWSProperty(Min=2, Max=64)] public string PrimaryMeetingId { get { return this._primaryMeetingId; } set { this._primaryMeetingId = value; } } // Check to see if PrimaryMeetingId property is set internal bool IsSetPrimaryMeetingId() { return this._primaryMeetingId != null; } /// <summary> /// Gets and sets the property TenantIds. /// <para> /// Array of strings. /// </para> /// </summary> [AWSProperty(Min=1, Max=5)] public List<string> TenantIds { get { return this._tenantIds; } set { this._tenantIds = value; } } // Check to see if TenantIds property is set internal bool IsSetTenantIds() { return this._tenantIds != null && this._tenantIds.Count > 0; } } }
233
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The configuration settings of the features available to a meeting. /// </summary> public partial class MeetingFeaturesConfiguration { private AudioFeatures _audio; /// <summary> /// Gets and sets the property Audio. /// <para> /// The configuration settings for the audio features available to a meeting. /// </para> /// </summary> public AudioFeatures Audio { get { return this._audio; } set { this._audio = value; } } // Check to see if Audio property is set internal bool IsSetAudio() { return this._audio != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// One or more of the resources in the request does not exist in the system. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NotFoundException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new NotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="innerException"></param> public NotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the NotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected NotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request ID associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The configuration for resource targets to receive notifications when meeting and attendee /// events occur. /// </summary> public partial class NotificationsConfiguration { private string _lambdaFunctionArn; private string _snsTopicArn; private string _sqsQueueArn; /// <summary> /// Gets and sets the property LambdaFunctionArn. /// <para> /// The ARN of the AWS Lambda function in the notifications configuration. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=1024)] public string LambdaFunctionArn { get { return this._lambdaFunctionArn; } set { this._lambdaFunctionArn = value; } } // Check to see if LambdaFunctionArn property is set internal bool IsSetLambdaFunctionArn() { return this._lambdaFunctionArn != null; } /// <summary> /// Gets and sets the property SnsTopicArn. /// <para> /// The ARN of the SNS topic. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=1024)] public string SnsTopicArn { get { return this._snsTopicArn; } set { this._snsTopicArn = value; } } // Check to see if SnsTopicArn property is set internal bool IsSetSnsTopicArn() { return this._snsTopicArn != null; } /// <summary> /// Gets and sets the property SqsQueueArn. /// <para> /// The ARN of the SQS queue. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=1024)] public string SqsQueueArn { get { return this._sqsQueueArn; } set { this._sqsQueueArn = value; } } // Check to see if SqsQueueArn property is set internal bool IsSetSqsQueueArn() { return this._sqsQueueArn != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The resource that you want to tag couldn't be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; private string _resourceName; /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); this.ResourceName = (string)info.GetValue("ResourceName", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); info.AddValue("ResourceName", this.ResourceName); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The ID of the resource that couldn't be found. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// <summary> /// Gets and sets the property ResourceName. /// <para> /// The name of the resource that couldn't be found. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ResourceName { get { return this._resourceName; } set { this._resourceName = value; } } // Check to see if ResourceName property is set internal bool IsSetResourceName() { return this._resourceName != null; } } }
187
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The service encountered an unexpected error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceFailureException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new ServiceFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceFailureException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="innerException"></param> public ServiceFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceFailureException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The ID of the failed request. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The service is currently unavailable. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceUnavailableException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; private string _retryAfterSeconds; /// <summary> /// Constructs a new ServiceUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="innerException"></param> public ServiceUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); this.RetryAfterSeconds = (string)info.GetValue("RetryAfterSeconds", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request id associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// <summary> /// Gets and sets the property RetryAfterSeconds. /// <para> /// The number of seconds the caller should wait before retrying. /// </para> /// </summary> public string RetryAfterSeconds { get { return this._retryAfterSeconds; } set { this._retryAfterSeconds = value; } } // Check to see if RetryAfterSeconds property is set internal bool IsSetRetryAfterSeconds() { return this._retryAfterSeconds != null; } } }
186
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the StartMeetingTranscription operation. /// Starts transcription for the specified <code>meetingId</code>. For more information, /// refer to <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/meeting-transcription.html"> /// Using Amazon Chime SDK live transcription </a> in the <i>Amazon Chime SDK Developer /// Guide</i>. /// /// /// <para> /// If you specify an invalid configuration, a <code>TranscriptFailed</code> event will /// be sent with the contents of the <code>BadRequestException</code> generated by Amazon /// Transcribe. For more information on each parameter and which combinations are valid, /// refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html">StartStreamTranscription</a> /// API in the <i>Amazon Transcribe Developer Guide</i>. /// </para> /// <important> /// <para> /// Amazon Chime SDK live transcription is powered by Amazon Transcribe. Use of Amazon /// Transcribe is subject to the <a href="https://aws.amazon.com/service-terms/">AWS Service /// Terms</a>, including the terms specific to the AWS Machine Learning and Artificial /// Intelligence Services. /// </para> /// </important> /// </summary> public partial class StartMeetingTranscriptionRequest : AmazonChimeSDKMeetingsRequest { private string _meetingId; private TranscriptionConfiguration _transcriptionConfiguration; /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The unique ID of the meeting being transcribed. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } /// <summary> /// Gets and sets the property TranscriptionConfiguration. /// <para> /// The configuration for the current transcription operation. Must contain <code>EngineTranscribeSettings</code> /// or <code>EngineTranscribeMedicalSettings</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public TranscriptionConfiguration TranscriptionConfiguration { get { return this._transcriptionConfiguration; } set { this._transcriptionConfiguration = value; } } // Check to see if TranscriptionConfiguration property is set internal bool IsSetTranscriptionConfiguration() { return this._transcriptionConfiguration != null; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the StartMeetingTranscription operation. /// </summary> public partial class StartMeetingTranscriptionResponse : 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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the StopMeetingTranscription operation. /// Stops transcription for the specified <code>meetingId</code>. For more information, /// refer to <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/meeting-transcription.html"> /// Using Amazon Chime SDK live transcription </a> in the <i>Amazon Chime SDK Developer /// Guide</i>. /// /// <important> /// <para> /// Amazon Chime SDK live transcription is powered by Amazon Transcribe. Use of Amazon /// Transcribe is subject to the <a href="https://aws.amazon.com/service-terms/">AWS Service /// Terms</a>, including the terms specific to the AWS Machine Learning and Artificial /// Intelligence Services. /// </para> /// </important> /// </summary> public partial class StopMeetingTranscriptionRequest : AmazonChimeSDKMeetingsRequest { private string _meetingId; /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The unique ID of the meeting for which you stop transcription. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
71
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the StopMeetingTranscription operation. /// </summary> public partial class StopMeetingTranscriptionResponse : 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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// A key-value pair that you define. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// The tag's key. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The tag's value. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// The resource that supports tags. /// </summary> public partial class TagResourceRequest : AmazonChimeSDKMeetingsRequest { private string _resourceARN; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The ARN of the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Lists the requested tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The number of customer requests exceeds the request rate limit. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The ID of the request that exceeded the throttling limit. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Too many tags were added to the specified resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TooManyTagsException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; private string _resourceName; /// <summary> /// Constructs a new TooManyTagsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public TooManyTagsException(string message) : base(message) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public TooManyTagsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="innerException"></param> public TooManyTagsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TooManyTagsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TooManyTagsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the TooManyTagsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected TooManyTagsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); this.ResourceName = (string)info.GetValue("ResourceName", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); info.AddValue("ResourceName", this.ResourceName); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The ID of the request that contains too many tags. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// <summary> /// Gets and sets the property ResourceName. /// <para> /// The name of the resource that received too many tags. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ResourceName { get { return this._resourceName; } set { this._resourceName = value; } } // Check to see if ResourceName property is set internal bool IsSetResourceName() { return this._resourceName != null; } } }
187
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The configuration for the current transcription operation. Must contain <code>EngineTranscribeSettings</code> /// or <code>EngineTranscribeMedicalSettings</code>. /// </summary> public partial class TranscriptionConfiguration { private EngineTranscribeMedicalSettings _engineTranscribeMedicalSettings; private EngineTranscribeSettings _engineTranscribeSettings; /// <summary> /// Gets and sets the property EngineTranscribeMedicalSettings. /// <para> /// The transcription configuration settings passed to Amazon Transcribe Medical. /// </para> /// </summary> public EngineTranscribeMedicalSettings EngineTranscribeMedicalSettings { get { return this._engineTranscribeMedicalSettings; } set { this._engineTranscribeMedicalSettings = value; } } // Check to see if EngineTranscribeMedicalSettings property is set internal bool IsSetEngineTranscribeMedicalSettings() { return this._engineTranscribeMedicalSettings != null; } /// <summary> /// Gets and sets the property EngineTranscribeSettings. /// <para> /// The transcription configuration settings passed to Amazon Transcribe. /// </para> /// </summary> public EngineTranscribeSettings EngineTranscribeSettings { get { return this._engineTranscribeSettings; } set { this._engineTranscribeSettings = value; } } // Check to see if EngineTranscribeSettings property is set internal bool IsSetEngineTranscribeSettings() { return this._engineTranscribeSettings != 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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The user isn't authorized to request a resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnauthorizedException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new UnauthorizedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnauthorizedException(string message) : base(message) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnauthorizedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="innerException"></param> public UnauthorizedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the UnauthorizedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected UnauthorizedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request id associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// The request was well-formed but was unable to be followed due to semantic errors. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnprocessableEntityException : AmazonChimeSDKMeetingsException { private string _code; private string _requestId; /// <summary> /// Constructs a new UnprocessableEntityException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnprocessableEntityException(string message) : base(message) {} /// <summary> /// Construct instance of UnprocessableEntityException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnprocessableEntityException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnprocessableEntityException /// </summary> /// <param name="innerException"></param> public UnprocessableEntityException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnprocessableEntityException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnprocessableEntityException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnprocessableEntityException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnprocessableEntityException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the UnprocessableEntityException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected UnprocessableEntityException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (string)info.GetValue("Code", typeof(string)); this.RequestId = (string)info.GetValue("RequestId", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); info.AddValue("RequestId", this.RequestId); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> [AWSProperty(Max=4096)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The request id associated with the call responsible for the exception. /// </para> /// </summary> [AWSProperty(Max=4096)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } } }
165
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Removes the specified tags from the specified resources. When you specify a tag key, /// the action removes both that key and its associated value. The operation succeeds /// even if you attempt to remove tags from a resource that were already removed. Note /// the following: /// /// <ul> <li> /// <para> /// To remove tags from a resource, you need the necessary permissions for the service /// that the resource belongs to as well as permissions for removing tags. For more information, /// see the documentation for the service whose resource you want to untag. /// </para> /// </li> <li> /// <para> /// You can only tag resources that are located in the specified AWS Region for the calling /// AWS account. /// </para> /// </li> </ul> /// <para> /// <b>Minimum permissions</b> /// </para> /// /// <para> /// In addition to the <code>tag:UntagResources</code> permission required by this operation, /// you must also have the remove tags permission defined by the service that created /// the resource. For example, to remove the tags from an Amazon EC2 instance using the /// <code>UntagResources</code> operation, you must have both of the following permissions: /// </para> /// /// <para> /// <code>tag:UntagResource</code> /// </para> /// /// <para> /// <code>ChimeSDKMeetings:DeleteTags</code> /// </para> /// </summary> public partial class UntagResourceRequest : AmazonChimeSDKMeetingsRequest { private string _resourceARN; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The ARN of the resource that you're removing tags from. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// The tag keys being removed from the resources. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
113
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// Container for the parameters to the UpdateAttendeeCapabilities operation. /// The capabilities that you want to update. /// /// <note> /// <para> /// You use the capabilities with a set of values that control what the capabilities can /// do, such as <code>SendReceive</code> data. For more information about those values, /// see . /// </para> /// </note> /// <para> /// When using capabilities, be aware of these corner cases: /// </para> /// <ul> <li> /// <para> /// You can't set <code>content</code> capabilities to <code>SendReceive</code> or <code>Receive</code> /// unless you also set <code>video</code> capabilities to <code>SendReceive</code> or /// <code>Receive</code>. If you don't set the <code>video</code> capability to receive, /// the response will contain an HTTP 400 Bad Request status code. However, you can set /// your <code>video</code> capability to receive and you set your <code>content</code> /// capability to not receive. /// </para> /// </li> <li> /// <para> /// When you change an <code>audio</code> capability from <code>None</code> or <code>Receive</code> /// to <code>Send</code> or <code>SendReceive</code> , and if the attendee left their /// microphone unmuted, audio will flow from the attendee to the other meeting participants. /// </para> /// </li> <li> /// <para> /// When you change a <code>video</code> or <code>content</code> capability from <code>None</code> /// or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if /// the attendee turned on their video or content streams, remote attendees can receive /// those streams, but only after media renegotiation between the client and the Amazon /// Chime back-end server. /// </para> /// </li> </ul> /// </summary> public partial class UpdateAttendeeCapabilitiesRequest : AmazonChimeSDKMeetingsRequest { private string _attendeeId; private AttendeeCapabilities _capabilities; private string _meetingId; /// <summary> /// Gets and sets the property AttendeeId. /// <para> /// The ID of the attendee associated with the update request. /// </para> /// </summary> [AWSProperty(Required=true)] public string AttendeeId { get { return this._attendeeId; } set { this._attendeeId = value; } } // Check to see if AttendeeId property is set internal bool IsSetAttendeeId() { return this._attendeeId != null; } /// <summary> /// Gets and sets the property Capabilities. /// <para> /// The capabilities that you want to update. /// </para> /// </summary> [AWSProperty(Required=true)] public AttendeeCapabilities Capabilities { get { return this._capabilities; } set { this._capabilities = value; } } // Check to see if Capabilities property is set internal bool IsSetCapabilities() { return this._capabilities != null; } /// <summary> /// Gets and sets the property MeetingId. /// <para> /// The ID of the meeting associated with the update request. /// </para> /// </summary> [AWSProperty(Required=true)] public string MeetingId { get { return this._meetingId; } set { this._meetingId = value; } } // Check to see if MeetingId property is set internal bool IsSetMeetingId() { return this._meetingId != null; } } }
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-meetings-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.ChimeSDKMeetings.Model { /// <summary> /// This is the response object from the UpdateAttendeeCapabilities operation. /// </summary> public partial class UpdateAttendeeCapabilitiesResponse : AmazonWebServiceResponse { private Attendee _attendee; /// <summary> /// Gets and sets the property Attendee. /// <para> /// The updated attendee data. /// </para> /// </summary> public Attendee Attendee { get { return this._attendee; } set { this._attendee = value; } } // Check to see if Attendee property is set internal bool IsSetAttendee() { return this._attendee != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// AttendeeCapabilities Marshaller /// </summary> public class AttendeeCapabilitiesMarshaller : IRequestMarshaller<AttendeeCapabilities, 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(AttendeeCapabilities requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAudio()) { context.Writer.WritePropertyName("Audio"); context.Writer.Write(requestObject.Audio); } if(requestObject.IsSetContent()) { context.Writer.WritePropertyName("Content"); context.Writer.Write(requestObject.Content); } if(requestObject.IsSetVideo()) { context.Writer.WritePropertyName("Video"); context.Writer.Write(requestObject.Video); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AttendeeCapabilitiesMarshaller Instance = new AttendeeCapabilitiesMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttendeeCapabilities Object /// </summary> public class AttendeeCapabilitiesUnmarshaller : IUnmarshaller<AttendeeCapabilities, XmlUnmarshallerContext>, IUnmarshaller<AttendeeCapabilities, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AttendeeCapabilities IUnmarshaller<AttendeeCapabilities, 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 AttendeeCapabilities Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AttendeeCapabilities unmarshalledObject = new AttendeeCapabilities(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Audio", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Audio = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Content", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Content = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Video", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Video = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AttendeeCapabilitiesUnmarshaller _instance = new AttendeeCapabilitiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttendeeCapabilitiesUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// AttendeeIdItem Marshaller /// </summary> public class AttendeeIdItemMarshaller : IRequestMarshaller<AttendeeIdItem, 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(AttendeeIdItem requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAttendeeId()) { context.Writer.WritePropertyName("AttendeeId"); context.Writer.Write(requestObject.AttendeeId); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AttendeeIdItemMarshaller Instance = new AttendeeIdItemMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Attendee Object /// </summary> public class AttendeeUnmarshaller : IUnmarshaller<Attendee, XmlUnmarshallerContext>, IUnmarshaller<Attendee, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Attendee IUnmarshaller<Attendee, 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 Attendee Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Attendee unmarshalledObject = new Attendee(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AttendeeId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AttendeeId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Capabilities", targetDepth)) { var unmarshaller = AttendeeCapabilitiesUnmarshaller.Instance; unmarshalledObject.Capabilities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExternalUserId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExternalUserId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("JoinToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JoinToken = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AttendeeUnmarshaller _instance = new AttendeeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttendeeUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// AudioFeatures Marshaller /// </summary> public class AudioFeaturesMarshaller : IRequestMarshaller<AudioFeatures, 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(AudioFeatures requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEchoReduction()) { context.Writer.WritePropertyName("EchoReduction"); context.Writer.Write(requestObject.EchoReduction); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AudioFeaturesMarshaller Instance = new AudioFeaturesMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AudioFeatures Object /// </summary> public class AudioFeaturesUnmarshaller : IUnmarshaller<AudioFeatures, XmlUnmarshallerContext>, IUnmarshaller<AudioFeatures, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AudioFeatures IUnmarshaller<AudioFeatures, 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 AudioFeatures Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AudioFeatures unmarshalledObject = new AudioFeatures(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("EchoReduction", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EchoReduction = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AudioFeaturesUnmarshaller _instance = new AudioFeaturesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AudioFeaturesUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// BatchCreateAttendee Request Marshaller /// </summary> public class BatchCreateAttendeeRequestMarshaller : IMarshaller<IRequest, BatchCreateAttendeeRequest> , 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((BatchCreateAttendeeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchCreateAttendeeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.AddSubResource("operation", "batch-create"); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/attendees"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttendees()) { context.Writer.WritePropertyName("Attendees"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttendeesListValue in publicRequest.Attendees) { context.Writer.WriteObjectStart(); var marshaller = CreateAttendeeRequestItemMarshaller.Instance; marshaller.Marshall(publicRequestAttendeesListValue, 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 BatchCreateAttendeeRequestMarshaller _instance = new BatchCreateAttendeeRequestMarshaller(); internal static BatchCreateAttendeeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchCreateAttendeeRequestMarshaller Instance { get { return _instance; } } } }
115
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchCreateAttendee operation /// </summary> public class BatchCreateAttendeeResponseUnmarshaller : 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) { BatchCreateAttendeeResponse response = new BatchCreateAttendeeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attendees", targetDepth)) { var unmarshaller = new ListUnmarshaller<Attendee, AttendeeUnmarshaller>(AttendeeUnmarshaller.Instance); response.Attendees = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<CreateAttendeeError, CreateAttendeeErrorUnmarshaller>(CreateAttendeeErrorUnmarshaller.Instance); response.Errors = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnprocessableEntityException")) { return UnprocessableEntityExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchCreateAttendeeResponseUnmarshaller _instance = new BatchCreateAttendeeResponseUnmarshaller(); internal static BatchCreateAttendeeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchCreateAttendeeResponseUnmarshaller Instance { get { return _instance; } } } }
148
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// BatchUpdateAttendeeCapabilitiesExcept Request Marshaller /// </summary> public class BatchUpdateAttendeeCapabilitiesExceptRequestMarshaller : IMarshaller<IRequest, BatchUpdateAttendeeCapabilitiesExceptRequest> , 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((BatchUpdateAttendeeCapabilitiesExceptRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchUpdateAttendeeCapabilitiesExceptRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "PUT"; request.AddSubResource("operation", "batch-update-except"); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/attendees/capabilities"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCapabilities()) { context.Writer.WritePropertyName("Capabilities"); context.Writer.WriteObjectStart(); var marshaller = AttendeeCapabilitiesMarshaller.Instance; marshaller.Marshall(publicRequest.Capabilities, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetExcludedAttendeeIds()) { context.Writer.WritePropertyName("ExcludedAttendeeIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestExcludedAttendeeIdsListValue in publicRequest.ExcludedAttendeeIds) { context.Writer.WriteObjectStart(); var marshaller = AttendeeIdItemMarshaller.Instance; marshaller.Marshall(publicRequestExcludedAttendeeIdsListValue, 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 BatchUpdateAttendeeCapabilitiesExceptRequestMarshaller _instance = new BatchUpdateAttendeeCapabilitiesExceptRequestMarshaller(); internal static BatchUpdateAttendeeCapabilitiesExceptRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchUpdateAttendeeCapabilitiesExceptRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchUpdateAttendeeCapabilitiesExcept operation /// </summary> public class BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller : 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) { BatchUpdateAttendeeCapabilitiesExceptResponse response = new BatchUpdateAttendeeCapabilitiesExceptResponse(); 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("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller _instance = new BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller(); internal static BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller Instance { get { return _instance; } } } }
119
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAttendeeError Object /// </summary> public class CreateAttendeeErrorUnmarshaller : IUnmarshaller<CreateAttendeeError, XmlUnmarshallerContext>, IUnmarshaller<CreateAttendeeError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CreateAttendeeError IUnmarshaller<CreateAttendeeError, 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 CreateAttendeeError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CreateAttendeeError unmarshalledObject = new CreateAttendeeError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExternalUserId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExternalUserId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CreateAttendeeErrorUnmarshaller _instance = new CreateAttendeeErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CreateAttendeeErrorUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// CreateAttendeeRequestItem Marshaller /// </summary> public class CreateAttendeeRequestItemMarshaller : IRequestMarshaller<CreateAttendeeRequestItem, 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(CreateAttendeeRequestItem requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCapabilities()) { context.Writer.WritePropertyName("Capabilities"); context.Writer.WriteObjectStart(); var marshaller = AttendeeCapabilitiesMarshaller.Instance; marshaller.Marshall(requestObject.Capabilities, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetExternalUserId()) { context.Writer.WritePropertyName("ExternalUserId"); context.Writer.Write(requestObject.ExternalUserId); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CreateAttendeeRequestItemMarshaller Instance = new CreateAttendeeRequestItemMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// CreateAttendee Request Marshaller /// </summary> public class CreateAttendeeRequestMarshaller : IMarshaller<IRequest, CreateAttendeeRequest> , 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((CreateAttendeeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAttendeeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/attendees"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCapabilities()) { context.Writer.WritePropertyName("Capabilities"); context.Writer.WriteObjectStart(); var marshaller = AttendeeCapabilitiesMarshaller.Instance; marshaller.Marshall(publicRequest.Capabilities, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetExternalUserId()) { context.Writer.WritePropertyName("ExternalUserId"); context.Writer.Write(publicRequest.ExternalUserId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateAttendeeRequestMarshaller _instance = new CreateAttendeeRequestMarshaller(); internal static CreateAttendeeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAttendeeRequestMarshaller Instance { get { return _instance; } } } }
115
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAttendee operation /// </summary> public class CreateAttendeeResponseUnmarshaller : 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) { CreateAttendeeResponse response = new CreateAttendeeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attendee", targetDepth)) { var unmarshaller = AttendeeUnmarshaller.Instance; response.Attendee = 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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnprocessableEntityException")) { return UnprocessableEntityExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAttendeeResponseUnmarshaller _instance = new CreateAttendeeResponseUnmarshaller(); internal static CreateAttendeeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAttendeeResponseUnmarshaller Instance { get { return _instance; } } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// CreateMeeting Request Marshaller /// </summary> public class CreateMeetingRequestMarshaller : IMarshaller<IRequest, CreateMeetingRequest> , 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((CreateMeetingRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMeetingRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.ResourcePath = "/meetings"; 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.IsSetExternalMeetingId()) { context.Writer.WritePropertyName("ExternalMeetingId"); context.Writer.Write(publicRequest.ExternalMeetingId); } if(publicRequest.IsSetMediaRegion()) { context.Writer.WritePropertyName("MediaRegion"); context.Writer.Write(publicRequest.MediaRegion); } if(publicRequest.IsSetMeetingFeatures()) { context.Writer.WritePropertyName("MeetingFeatures"); context.Writer.WriteObjectStart(); var marshaller = MeetingFeaturesConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.MeetingFeatures, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMeetingHostId()) { context.Writer.WritePropertyName("MeetingHostId"); context.Writer.Write(publicRequest.MeetingHostId); } if(publicRequest.IsSetNotificationsConfiguration()) { context.Writer.WritePropertyName("NotificationsConfiguration"); context.Writer.WriteObjectStart(); var marshaller = NotificationsConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.NotificationsConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetPrimaryMeetingId()) { context.Writer.WritePropertyName("PrimaryMeetingId"); context.Writer.Write(publicRequest.PrimaryMeetingId); } 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(); } if(publicRequest.IsSetTenantIds()) { context.Writer.WritePropertyName("TenantIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestTenantIdsListValue in publicRequest.TenantIds) { context.Writer.Write(publicRequestTenantIdsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMeetingRequestMarshaller _instance = new CreateMeetingRequestMarshaller(); internal static CreateMeetingRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMeetingRequestMarshaller Instance { get { return _instance; } } } }
179
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMeeting operation /// </summary> public class CreateMeetingResponseUnmarshaller : 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) { CreateMeetingResponse response = new CreateMeetingResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Meeting", targetDepth)) { var unmarshaller = MeetingUnmarshaller.Instance; response.Meeting = 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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMeetingResponseUnmarshaller _instance = new CreateMeetingResponseUnmarshaller(); internal static CreateMeetingResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMeetingResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// CreateMeetingWithAttendees Request Marshaller /// </summary> public class CreateMeetingWithAttendeesRequestMarshaller : IMarshaller<IRequest, CreateMeetingWithAttendeesRequest> , 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((CreateMeetingWithAttendeesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateMeetingWithAttendeesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.AddSubResource("operation", "create-attendees"); request.ResourcePath = "/meetings"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttendees()) { context.Writer.WritePropertyName("Attendees"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttendeesListValue in publicRequest.Attendees) { context.Writer.WriteObjectStart(); var marshaller = CreateAttendeeRequestItemMarshaller.Instance; marshaller.Marshall(publicRequestAttendeesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } 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.IsSetExternalMeetingId()) { context.Writer.WritePropertyName("ExternalMeetingId"); context.Writer.Write(publicRequest.ExternalMeetingId); } if(publicRequest.IsSetMediaRegion()) { context.Writer.WritePropertyName("MediaRegion"); context.Writer.Write(publicRequest.MediaRegion); } if(publicRequest.IsSetMeetingFeatures()) { context.Writer.WritePropertyName("MeetingFeatures"); context.Writer.WriteObjectStart(); var marshaller = MeetingFeaturesConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.MeetingFeatures, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMeetingHostId()) { context.Writer.WritePropertyName("MeetingHostId"); context.Writer.Write(publicRequest.MeetingHostId); } if(publicRequest.IsSetNotificationsConfiguration()) { context.Writer.WritePropertyName("NotificationsConfiguration"); context.Writer.WriteObjectStart(); var marshaller = NotificationsConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.NotificationsConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetPrimaryMeetingId()) { context.Writer.WritePropertyName("PrimaryMeetingId"); context.Writer.Write(publicRequest.PrimaryMeetingId); } 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(); } if(publicRequest.IsSetTenantIds()) { context.Writer.WritePropertyName("TenantIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestTenantIdsListValue in publicRequest.TenantIds) { context.Writer.Write(publicRequestTenantIdsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateMeetingWithAttendeesRequestMarshaller _instance = new CreateMeetingWithAttendeesRequestMarshaller(); internal static CreateMeetingWithAttendeesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMeetingWithAttendeesRequestMarshaller Instance { get { return _instance; } } } }
196
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateMeetingWithAttendees operation /// </summary> public class CreateMeetingWithAttendeesResponseUnmarshaller : 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) { CreateMeetingWithAttendeesResponse response = new CreateMeetingWithAttendeesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attendees", targetDepth)) { var unmarshaller = new ListUnmarshaller<Attendee, AttendeeUnmarshaller>(AttendeeUnmarshaller.Instance); response.Attendees = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<CreateAttendeeError, CreateAttendeeErrorUnmarshaller>(CreateAttendeeErrorUnmarshaller.Instance); response.Errors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Meeting", targetDepth)) { var unmarshaller = MeetingUnmarshaller.Instance; response.Meeting = 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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateMeetingWithAttendeesResponseUnmarshaller _instance = new CreateMeetingWithAttendeesResponseUnmarshaller(); internal static CreateMeetingWithAttendeesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateMeetingWithAttendeesResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// DeleteAttendee Request Marshaller /// </summary> public class DeleteAttendeeRequestMarshaller : IMarshaller<IRequest, DeleteAttendeeRequest> , 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((DeleteAttendeeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteAttendeeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetAttendeeId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field AttendeeId set"); request.AddPathResource("{AttendeeId}", StringUtils.FromString(publicRequest.AttendeeId)); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/attendees/{AttendeeId}"; return request; } private static DeleteAttendeeRequestMarshaller _instance = new DeleteAttendeeRequestMarshaller(); internal static DeleteAttendeeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAttendeeRequestMarshaller Instance { get { return _instance; } } } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteAttendee operation /// </summary> public class DeleteAttendeeResponseUnmarshaller : 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) { DeleteAttendeeResponse response = new DeleteAttendeeResponse(); 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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteAttendeeResponseUnmarshaller _instance = new DeleteAttendeeResponseUnmarshaller(); internal static DeleteAttendeeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAttendeeResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// DeleteMeeting Request Marshaller /// </summary> public class DeleteMeetingRequestMarshaller : IMarshaller<IRequest, DeleteMeetingRequest> , 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((DeleteMeetingRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteMeetingRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}"; return request; } private static DeleteMeetingRequestMarshaller _instance = new DeleteMeetingRequestMarshaller(); internal static DeleteMeetingRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMeetingRequestMarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteMeeting operation /// </summary> public class DeleteMeetingResponseUnmarshaller : 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) { DeleteMeetingResponse response = new DeleteMeetingResponse(); 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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteMeetingResponseUnmarshaller _instance = new DeleteMeetingResponseUnmarshaller(); internal static DeleteMeetingResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteMeetingResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// EngineTranscribeMedicalSettings Marshaller /// </summary> public class EngineTranscribeMedicalSettingsMarshaller : IRequestMarshaller<EngineTranscribeMedicalSettings, 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(EngineTranscribeMedicalSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContentIdentificationType()) { context.Writer.WritePropertyName("ContentIdentificationType"); context.Writer.Write(requestObject.ContentIdentificationType); } if(requestObject.IsSetLanguageCode()) { context.Writer.WritePropertyName("LanguageCode"); context.Writer.Write(requestObject.LanguageCode); } if(requestObject.IsSetRegion()) { context.Writer.WritePropertyName("Region"); context.Writer.Write(requestObject.Region); } if(requestObject.IsSetSpecialty()) { context.Writer.WritePropertyName("Specialty"); context.Writer.Write(requestObject.Specialty); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } if(requestObject.IsSetVocabularyName()) { context.Writer.WritePropertyName("VocabularyName"); context.Writer.Write(requestObject.VocabularyName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EngineTranscribeMedicalSettingsMarshaller Instance = new EngineTranscribeMedicalSettingsMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// EngineTranscribeSettings Marshaller /// </summary> public class EngineTranscribeSettingsMarshaller : IRequestMarshaller<EngineTranscribeSettings, 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(EngineTranscribeSettings 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.IsSetIdentifyLanguage()) { context.Writer.WritePropertyName("IdentifyLanguage"); context.Writer.Write(requestObject.IdentifyLanguage); } 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.IsSetLanguageOptions()) { context.Writer.WritePropertyName("LanguageOptions"); context.Writer.Write(requestObject.LanguageOptions); } 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.IsSetPreferredLanguage()) { context.Writer.WritePropertyName("PreferredLanguage"); context.Writer.Write(requestObject.PreferredLanguage); } if(requestObject.IsSetRegion()) { context.Writer.WritePropertyName("Region"); context.Writer.Write(requestObject.Region); } 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.IsSetVocabularyFilterNames()) { context.Writer.WritePropertyName("VocabularyFilterNames"); context.Writer.Write(requestObject.VocabularyFilterNames); } if(requestObject.IsSetVocabularyName()) { context.Writer.WritePropertyName("VocabularyName"); context.Writer.Write(requestObject.VocabularyName); } if(requestObject.IsSetVocabularyNames()) { context.Writer.WritePropertyName("VocabularyNames"); context.Writer.Write(requestObject.VocabularyNames); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EngineTranscribeSettingsMarshaller Instance = new EngineTranscribeSettingsMarshaller(); } }
152
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// GetAttendee Request Marshaller /// </summary> public class GetAttendeeRequestMarshaller : IMarshaller<IRequest, GetAttendeeRequest> , 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((GetAttendeeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetAttendeeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetAttendeeId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field AttendeeId set"); request.AddPathResource("{AttendeeId}", StringUtils.FromString(publicRequest.AttendeeId)); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/attendees/{AttendeeId}"; return request; } private static GetAttendeeRequestMarshaller _instance = new GetAttendeeRequestMarshaller(); internal static GetAttendeeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetAttendeeRequestMarshaller Instance { get { return _instance; } } } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetAttendee operation /// </summary> public class GetAttendeeResponseUnmarshaller : 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) { GetAttendeeResponse response = new GetAttendeeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attendee", targetDepth)) { var unmarshaller = AttendeeUnmarshaller.Instance; response.Attendee = 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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetAttendeeResponseUnmarshaller _instance = new GetAttendeeResponseUnmarshaller(); internal static GetAttendeeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetAttendeeResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// GetMeeting Request Marshaller /// </summary> public class GetMeetingRequestMarshaller : IMarshaller<IRequest, GetMeetingRequest> , 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((GetMeetingRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetMeetingRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}"; return request; } private static GetMeetingRequestMarshaller _instance = new GetMeetingRequestMarshaller(); internal static GetMeetingRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMeetingRequestMarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetMeeting operation /// </summary> public class GetMeetingResponseUnmarshaller : 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) { GetMeetingResponse response = new GetMeetingResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Meeting", targetDepth)) { var unmarshaller = MeetingUnmarshaller.Instance; response.Meeting = 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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetMeetingResponseUnmarshaller _instance = new GetMeetingResponseUnmarshaller(); internal static GetMeetingResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetMeetingResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException Object /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException 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 LimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); LimitExceededException unmarshalledObject = new LimitExceededException(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 LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// ListAttendees Request Marshaller /// </summary> public class ListAttendeesRequestMarshaller : IMarshaller<IRequest, ListAttendeesRequest> , 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((ListAttendeesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListAttendeesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); 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 = "/meetings/{MeetingId}/attendees"; request.UseQueryString = true; return request; } private static ListAttendeesRequestMarshaller _instance = new ListAttendeesRequestMarshaller(); internal static ListAttendeesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListAttendeesRequestMarshaller Instance { get { return _instance; } } } }
94
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListAttendees operation /// </summary> public class ListAttendeesResponseUnmarshaller : 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) { ListAttendeesResponse response = new ListAttendeesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attendees", targetDepth)) { var unmarshaller = new ListUnmarshaller<Attendee, AttendeeUnmarshaller>(AttendeeUnmarshaller.Instance); response.Attendees = 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("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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListAttendeesResponseUnmarshaller _instance = new ListAttendeesResponseUnmarshaller(); internal static ListAttendeesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListAttendeesResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.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.ChimeSDKMeetings"); 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(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; } } } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MediaPlacement Object /// </summary> public class MediaPlacementUnmarshaller : IUnmarshaller<MediaPlacement, XmlUnmarshallerContext>, IUnmarshaller<MediaPlacement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MediaPlacement IUnmarshaller<MediaPlacement, 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 MediaPlacement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MediaPlacement unmarshalledObject = new MediaPlacement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AudioFallbackUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AudioFallbackUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AudioHostUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AudioHostUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventIngestionUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventIngestionUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScreenDataUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScreenDataUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScreenSharingUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScreenSharingUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScreenViewingUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScreenViewingUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SignalingUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SignalingUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TurnControlUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TurnControlUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MediaPlacementUnmarshaller _instance = new MediaPlacementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MediaPlacementUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// MeetingFeaturesConfiguration Marshaller /// </summary> public class MeetingFeaturesConfigurationMarshaller : IRequestMarshaller<MeetingFeaturesConfiguration, 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(MeetingFeaturesConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAudio()) { context.Writer.WritePropertyName("Audio"); context.Writer.WriteObjectStart(); var marshaller = AudioFeaturesMarshaller.Instance; marshaller.Marshall(requestObject.Audio, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MeetingFeaturesConfigurationMarshaller Instance = new MeetingFeaturesConfigurationMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeetingFeaturesConfiguration Object /// </summary> public class MeetingFeaturesConfigurationUnmarshaller : IUnmarshaller<MeetingFeaturesConfiguration, XmlUnmarshallerContext>, IUnmarshaller<MeetingFeaturesConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeetingFeaturesConfiguration IUnmarshaller<MeetingFeaturesConfiguration, 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 MeetingFeaturesConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeetingFeaturesConfiguration unmarshalledObject = new MeetingFeaturesConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Audio", targetDepth)) { var unmarshaller = AudioFeaturesUnmarshaller.Instance; unmarshalledObject.Audio = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeetingFeaturesConfigurationUnmarshaller _instance = new MeetingFeaturesConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeetingFeaturesConfigurationUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Meeting Object /// </summary> public class MeetingUnmarshaller : IUnmarshaller<Meeting, XmlUnmarshallerContext>, IUnmarshaller<Meeting, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Meeting IUnmarshaller<Meeting, 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 Meeting Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Meeting unmarshalledObject = new Meeting(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ExternalMeetingId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExternalMeetingId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaPlacement", targetDepth)) { var unmarshaller = MediaPlacementUnmarshaller.Instance; unmarshalledObject.MediaPlacement = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MediaRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MediaRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MeetingArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeetingArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MeetingFeatures", targetDepth)) { var unmarshaller = MeetingFeaturesConfigurationUnmarshaller.Instance; unmarshalledObject.MeetingFeatures = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MeetingHostId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeetingHostId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MeetingId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeetingId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrimaryMeetingId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrimaryMeetingId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TenantIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.TenantIds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeetingUnmarshaller _instance = new MeetingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeetingUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotFoundException Object /// </summary> public class NotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<NotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotFoundException 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 NotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NotFoundException unmarshalledObject = new NotFoundException(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 NotFoundExceptionUnmarshaller _instance = new NotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotFoundExceptionUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// NotificationsConfiguration Marshaller /// </summary> public class NotificationsConfigurationMarshaller : IRequestMarshaller<NotificationsConfiguration, 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(NotificationsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLambdaFunctionArn()) { context.Writer.WritePropertyName("LambdaFunctionArn"); context.Writer.Write(requestObject.LambdaFunctionArn); } if(requestObject.IsSetSnsTopicArn()) { context.Writer.WritePropertyName("SnsTopicArn"); context.Writer.Write(requestObject.SnsTopicArn); } if(requestObject.IsSetSqsQueueArn()) { context.Writer.WritePropertyName("SqsQueueArn"); context.Writer.Write(requestObject.SqsQueueArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NotificationsConfigurationMarshaller Instance = new NotificationsConfigurationMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException 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 ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(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; } if (context.TestExpression("ResourceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceFailureException Object /// </summary> public class ServiceFailureExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceFailureException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceFailureException 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 ServiceFailureException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceFailureException unmarshalledObject = new ServiceFailureException(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 ServiceFailureExceptionUnmarshaller _instance = new ServiceFailureExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceFailureExceptionUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceUnavailableException Object /// </summary> public class ServiceUnavailableExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceUnavailableException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceUnavailableException 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 ServiceUnavailableException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceUnavailableException unmarshalledObject = new ServiceUnavailableException(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; } if (context.TestExpression("Retry-After", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RetryAfterSeconds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ServiceUnavailableExceptionUnmarshaller _instance = new ServiceUnavailableExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceUnavailableExceptionUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// StartMeetingTranscription Request Marshaller /// </summary> public class StartMeetingTranscriptionRequestMarshaller : IMarshaller<IRequest, StartMeetingTranscriptionRequest> , 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((StartMeetingTranscriptionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartMeetingTranscriptionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.AddSubResource("operation", "start"); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/transcription"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTranscriptionConfiguration()) { context.Writer.WritePropertyName("TranscriptionConfiguration"); context.Writer.WriteObjectStart(); var marshaller = TranscriptionConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.TranscriptionConfiguration, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static StartMeetingTranscriptionRequestMarshaller _instance = new StartMeetingTranscriptionRequestMarshaller(); internal static StartMeetingTranscriptionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartMeetingTranscriptionRequestMarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartMeetingTranscription operation /// </summary> public class StartMeetingTranscriptionResponseUnmarshaller : 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) { StartMeetingTranscriptionResponse response = new StartMeetingTranscriptionResponse(); 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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnprocessableEntityException")) { return UnprocessableEntityExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StartMeetingTranscriptionResponseUnmarshaller _instance = new StartMeetingTranscriptionResponseUnmarshaller(); internal static StartMeetingTranscriptionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartMeetingTranscriptionResponseUnmarshaller Instance { get { return _instance; } } } }
131
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// StopMeetingTranscription Request Marshaller /// </summary> public class StopMeetingTranscriptionRequestMarshaller : IMarshaller<IRequest, StopMeetingTranscriptionRequest> , 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((StopMeetingTranscriptionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StopMeetingTranscriptionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.AddSubResource("operation", "stop"); if (!publicRequest.IsSetMeetingId()) throw new AmazonChimeSDKMeetingsException("Request object does not have required field MeetingId set"); request.AddPathResource("{MeetingId}", StringUtils.FromString(publicRequest.MeetingId)); request.ResourcePath = "/meetings/{MeetingId}/transcription"; return request; } private static StopMeetingTranscriptionRequestMarshaller _instance = new StopMeetingTranscriptionRequestMarshaller(); internal static StopMeetingTranscriptionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopMeetingTranscriptionRequestMarshaller Instance { get { return _instance; } } } }
89
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StopMeetingTranscription operation /// </summary> public class StopMeetingTranscriptionResponseUnmarshaller : 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) { StopMeetingTranscriptionResponse response = new StopMeetingTranscriptionResponse(); 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("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnprocessableEntityException")) { return UnprocessableEntityExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StopMeetingTranscriptionResponseUnmarshaller _instance = new StopMeetingTranscriptionResponseUnmarshaller(); internal static StopMeetingTranscriptionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopMeetingTranscriptionResponseUnmarshaller 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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, 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(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// TagResource Request Marshaller /// </summary> public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , 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((TagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKMeetings"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-15"; request.HttpMethod = "POST"; request.AddSubResource("operation", "tag-resource"); request.ResourcePath = "/tags"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceARN()) { context.Writer.WritePropertyName("ResourceARN"); context.Writer.Write(publicRequest.ResourceARN); } 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 TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
118
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : 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) { TagResourceResponse response = new TagResourceResponse(); 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) { return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); internal static TagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
107
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-meetings-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.ChimeSDKMeetings.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKMeetings.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, 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 Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller Instance { get { return _instance; } } } }
98