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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the CreateAppInstanceBot operation. /// Creates a bot under an Amazon Chime <code>AppInstance</code>. The request consists /// of a unique <code>Configuration</code> and <code>Name</code> for that bot. /// </summary> public partial class CreateAppInstanceBotRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private string _clientRequestToken; private Configuration _configuration; private string _metadata; private string _name; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code> request. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique ID for the client making the request. Use different tokens for different /// <code>AppInstanceBots</code>. /// </para> /// </summary> [AWSProperty(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 Configuration. /// <para> /// Configuration information about the Amazon Lex V2 V2 bot. /// </para> /// </summary> [AWSProperty(Required=true)] public Configuration Configuration { get { return this._configuration; } set { this._configuration = value; } } // Check to see if Configuration property is set internal bool IsSetConfiguration() { return this._configuration != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The request metadata. Limited to a 1KB string in UTF-8. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The user's name. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags assigned to the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the CreateAppInstanceBot operation. /// </summary> public partial class CreateAppInstanceBotResponse : AmazonWebServiceResponse { private string _appInstanceBotArn; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the <code>AppinstanceBot</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceBotArn { get { return this._appInstanceBotArn; } set { this._appInstanceBotArn = value; } } // Check to see if AppInstanceBotArn property is set internal bool IsSetAppInstanceBotArn() { return this._appInstanceBotArn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the CreateAppInstance operation. /// Creates an Amazon Chime SDK messaging <code>AppInstance</code> under an AWS account. /// Only SDK messaging customers use this API. <code>CreateAppInstance</code> supports /// idempotency behavior as described in the AWS API Standard. /// /// /// <para> /// identity /// </para> /// </summary> public partial class CreateAppInstanceRequest : AmazonChimeSDKIdentityRequest { private string _clientRequestToken; private string _metadata; private string _name; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique ID of the request. Use different tokens to create different <code>AppInstances</code>. /// </para> /// </summary> [AWSProperty(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 Metadata. /// <para> /// The metadata of the <code>AppInstance</code>. Limited to a 1KB string in UTF-8. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Tags assigned to the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the CreateAppInstance operation. /// </summary> public partial class CreateAppInstanceResponse : AmazonWebServiceResponse { private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The Amazon Resource Number (ARN) of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the CreateAppInstanceUser operation. /// Creates a user under an Amazon Chime <code>AppInstance</code>. The request consists /// of a unique <code>appInstanceUserId</code> and <code>Name</code> for that user. /// </summary> public partial class CreateAppInstanceUserRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private string _appInstanceUserId; private string _clientRequestToken; private ExpirationSettings _expirationSettings; private string _metadata; private string _name; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code> request. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property AppInstanceUserId. /// <para> /// The user ID of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=64)] public string AppInstanceUserId { get { return this._appInstanceUserId; } set { this._appInstanceUserId = value; } } // Check to see if AppInstanceUserId property is set internal bool IsSetAppInstanceUserId() { return this._appInstanceUserId != null; } /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique ID of the request. Use different tokens to request additional <code>AppInstances</code>. /// </para> /// </summary> [AWSProperty(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 ExpirationSettings. /// <para> /// Settings that control the interval after which the <code>AppInstanceUser</code> is /// automatically deleted. /// </para> /// </summary> public ExpirationSettings ExpirationSettings { get { return this._expirationSettings; } set { this._expirationSettings = value; } } // Check to see if ExpirationSettings property is set internal bool IsSetExpirationSettings() { return this._expirationSettings != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The request's metadata. Limited to a 1KB string in UTF-8. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The user's name. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=100)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Tags assigned to the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
180
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the CreateAppInstanceUser operation. /// </summary> public partial class CreateAppInstanceUserResponse : AmazonWebServiceResponse { private string _appInstanceUserArn; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The user's ARN. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DeleteAppInstanceAdmin operation. /// Demotes an <code>AppInstanceAdmin</code> to an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>. /// This action does not delete the user. /// </summary> public partial class DeleteAppInstanceAdminRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceAdminArn; private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceAdminArn. /// <para> /// The ARN of the <code>AppInstance</code>'s administrator. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceAdminArn { get { return this._appInstanceAdminArn; } set { this._appInstanceAdminArn = value; } } // Check to see if AppInstanceAdminArn property is set internal bool IsSetAppInstanceAdminArn() { return this._appInstanceAdminArn != null; } /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DeleteAppInstanceAdmin operation. /// </summary> public partial class DeleteAppInstanceAdminResponse : 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DeleteAppInstanceBot operation. /// Deletes an <code>AppInstanceBot</code>. /// </summary> public partial class DeleteAppInstanceBotRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceBotArn; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the <code>AppInstanceBot</code> being deleted. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceBotArn { get { return this._appInstanceBotArn; } set { this._appInstanceBotArn = value; } } // Check to see if AppInstanceBotArn property is set internal bool IsSetAppInstanceBotArn() { return this._appInstanceBotArn != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DeleteAppInstanceBot operation. /// </summary> public partial class DeleteAppInstanceBotResponse : 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DeleteAppInstance operation. /// Deletes an <code>AppInstance</code> and all associated data asynchronously. /// </summary> public partial class DeleteAppInstanceRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DeleteAppInstance operation. /// </summary> public partial class DeleteAppInstanceResponse : 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DeleteAppInstanceUser operation. /// Deletes an <code>AppInstanceUser</code>. /// </summary> public partial class DeleteAppInstanceUserRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the user request being deleted. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DeleteAppInstanceUser operation. /// </summary> public partial class DeleteAppInstanceUserResponse : 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DeregisterAppInstanceUserEndpoint operation. /// Deregisters an <code>AppInstanceUserEndpoint</code>. /// </summary> public partial class DeregisterAppInstanceUserEndpointRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; private string _endpointId; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property EndpointId. /// <para> /// The unique identifier of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string EndpointId { get { return this._endpointId; } set { this._endpointId = value; } } // Check to see if EndpointId property is set internal bool IsSetEndpointId() { return this._endpointId != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DeregisterAppInstanceUserEndpoint operation. /// </summary> public partial class DeregisterAppInstanceUserEndpointResponse : 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DescribeAppInstanceAdmin operation. /// Returns the full details of an <code>AppInstanceAdmin</code>. /// </summary> public partial class DescribeAppInstanceAdminRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceAdminArn; private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceAdminArn. /// <para> /// The ARN of the <code>AppInstanceAdmin</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceAdminArn { get { return this._appInstanceAdminArn; } set { this._appInstanceAdminArn = value; } } // Check to see if AppInstanceAdminArn property is set internal bool IsSetAppInstanceAdminArn() { return this._appInstanceAdminArn != null; } /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DescribeAppInstanceAdmin operation. /// </summary> public partial class DescribeAppInstanceAdminResponse : AmazonWebServiceResponse { private AppInstanceAdmin _appInstanceAdmin; /// <summary> /// Gets and sets the property AppInstanceAdmin. /// <para> /// The ARN and name of the <code>AppInstanceUser</code>, the ARN of the <code>AppInstance</code>, /// and the created and last-updated timestamps. All timestamps use epoch milliseconds. /// </para> /// </summary> public AppInstanceAdmin AppInstanceAdmin { get { return this._appInstanceAdmin; } set { this._appInstanceAdmin = value; } } // Check to see if AppInstanceAdmin property is set internal bool IsSetAppInstanceAdmin() { return this._appInstanceAdmin != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DescribeAppInstanceBot operation. /// The <code>AppInstanceBot's</code> information. /// </summary> public partial class DescribeAppInstanceBotRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceBotArn; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceBotArn { get { return this._appInstanceBotArn; } set { this._appInstanceBotArn = value; } } // Check to see if AppInstanceBotArn property is set internal bool IsSetAppInstanceBotArn() { return this._appInstanceBotArn != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DescribeAppInstanceBot operation. /// </summary> public partial class DescribeAppInstanceBotResponse : AmazonWebServiceResponse { private AppInstanceBot _appInstanceBot; /// <summary> /// Gets and sets the property AppInstanceBot. /// <para> /// The detials of the <code>AppInstanceBot</code>. /// </para> /// </summary> public AppInstanceBot AppInstanceBot { get { return this._appInstanceBot; } set { this._appInstanceBot = value; } } // Check to see if AppInstanceBot property is set internal bool IsSetAppInstanceBot() { return this._appInstanceBot != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DescribeAppInstance operation. /// Returns the full details of an <code>AppInstance</code>. /// </summary> public partial class DescribeAppInstanceRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DescribeAppInstance operation. /// </summary> public partial class DescribeAppInstanceResponse : AmazonWebServiceResponse { private AppInstance _appInstance; /// <summary> /// Gets and sets the property AppInstance. /// <para> /// The ARN, metadata, created and last-updated timestamps, and the name of the <code>AppInstance</code>. /// All timestamps use epoch milliseconds. /// </para> /// </summary> public AppInstance AppInstance { get { return this._appInstance; } set { this._appInstance = value; } } // Check to see if AppInstance property is set internal bool IsSetAppInstance() { return this._appInstance != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DescribeAppInstanceUserEndpoint operation. /// Returns the full details of an <code>AppInstanceUserEndpoint</code>. /// </summary> public partial class DescribeAppInstanceUserEndpointRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; private string _endpointId; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property EndpointId. /// <para> /// The unique identifier of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string EndpointId { get { return this._endpointId; } set { this._endpointId = value; } } // Check to see if EndpointId property is set internal bool IsSetEndpointId() { return this._endpointId != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DescribeAppInstanceUserEndpoint operation. /// </summary> public partial class DescribeAppInstanceUserEndpointResponse : AmazonWebServiceResponse { private AppInstanceUserEndpoint _appInstanceUserEndpoint; /// <summary> /// Gets and sets the property AppInstanceUserEndpoint. /// <para> /// The full details of an <code>AppInstanceUserEndpoint</code>: the <code>AppInstanceUserArn</code>, /// ID, name, type, resource ARN, attributes, allow messages, state, and created and last /// updated timestamps. All timestamps use epoch milliseconds. /// </para> /// </summary> public AppInstanceUserEndpoint AppInstanceUserEndpoint { get { return this._appInstanceUserEndpoint; } set { this._appInstanceUserEndpoint = value; } } // Check to see if AppInstanceUserEndpoint property is set internal bool IsSetAppInstanceUserEndpoint() { return this._appInstanceUserEndpoint != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the DescribeAppInstanceUser operation. /// Returns the full details of an <code>AppInstanceUser</code>. /// </summary> public partial class DescribeAppInstanceUserRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the DescribeAppInstanceUser operation. /// </summary> public partial class DescribeAppInstanceUserResponse : AmazonWebServiceResponse { private AppInstanceUser _appInstanceUser; /// <summary> /// Gets and sets the property AppInstanceUser. /// <para> /// The name of the <code>AppInstanceUser</code>. /// </para> /// </summary> public AppInstanceUser AppInstanceUser { get { return this._appInstanceUser; } set { this._appInstanceUser = value; } } // Check to see if AppInstanceUser property is set internal bool IsSetAppInstanceUser() { return this._appInstanceUser != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The attributes of an <code>Endpoint</code>. /// </summary> public partial class EndpointAttributes { private string _deviceToken; private string _voipDeviceToken; /// <summary> /// Gets and sets the property DeviceToken. /// <para> /// The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=1600)] public string DeviceToken { get { return this._deviceToken; } set { this._deviceToken = value; } } // Check to see if DeviceToken property is set internal bool IsSetDeviceToken() { return this._deviceToken != null; } /// <summary> /// Gets and sets the property VoipDeviceToken. /// <para> /// The VOIP device token for the APNS and APNS_SANDBOX endpoint types. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=1600)] public string VoipDeviceToken { get { return this._voipDeviceToken; } set { this._voipDeviceToken = value; } } // Check to see if VoipDeviceToken property is set internal bool IsSetVoipDeviceToken() { return this._voipDeviceToken != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// A read-only field that represents the state of an <code>AppInstanceUserEndpoint</code>. /// Supported values: /// /// <ul> <li> /// <para> /// <code>ACTIVE</code>: The <code>AppInstanceUserEndpoint</code> is active and able /// to receive messages. When <code>ACTIVE</code>, the <code>EndpointStatusReason</code> /// remains empty. /// </para> /// </li> <li> /// <para> /// <code>INACTIVE</code>: The <code>AppInstanceUserEndpoint</code> is inactive and can't /// receive message. When INACTIVE, the corresponding reason will be conveyed through /// EndpointStatusReason. /// </para> /// </li> <li> /// <para> /// <code>INVALID_DEVICE_TOKEN</code> indicates that an <code>AppInstanceUserEndpoint</code> /// is <code>INACTIVE</code> due to invalid device token /// </para> /// </li> <li> /// <para> /// <code>INVALID_PINPOINT_ARN</code> indicates that an <code>AppInstanceUserEndpoint</code> /// is <code>INACTIVE</code> due to an invalid pinpoint ARN that was input through the /// <code>ResourceArn</code> field. /// </para> /// </li> </ul> /// </summary> public partial class EndpointState { private EndpointStatus _status; private EndpointStatusReason _statusReason; /// <summary> /// Gets and sets the property Status. /// <para> /// Enum that indicates the Status of an <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public EndpointStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StatusReason. /// <para> /// The reason for the <code>EndpointStatus</code>. /// </para> /// </summary> public EndpointStatusReason StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Determines the interval after which an <code>AppInstanceUser</code> is automatically /// deleted. /// </summary> public partial class ExpirationSettings { private ExpirationCriterion _expirationCriterion; private int? _expirationDays; /// <summary> /// Gets and sets the property ExpirationCriterion. /// <para> /// Specifies the conditions under which an <code>AppInstanceUser</code> will expire. /// </para> /// </summary> [AWSProperty(Required=true)] public ExpirationCriterion ExpirationCriterion { get { return this._expirationCriterion; } set { this._expirationCriterion = value; } } // Check to see if ExpirationCriterion property is set internal bool IsSetExpirationCriterion() { return this._expirationCriterion != null; } /// <summary> /// Gets and sets the property ExpirationDays. /// <para> /// The period in days after which an <code>AppInstanceUser</code> will be automatically /// deleted. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=5475)] public int ExpirationDays { get { return this._expirationDays.GetValueOrDefault(); } set { this._expirationDays = value; } } // Check to see if ExpirationDays property is set internal bool IsSetExpirationDays() { return this._expirationDays.HasValue; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The client is permanently forbidden from making the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ForbiddenException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ForbiddenException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ForbiddenException(string message) : base(message) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ForbiddenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="innerException"></param> public ForbiddenException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ForbiddenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ForbiddenException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ForbiddenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ForbiddenException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ForbiddenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the GetAppInstanceRetentionSettings operation. /// Gets the retention settings for an <code>AppInstance</code>. /// </summary> public partial class GetAppInstanceRetentionSettingsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the GetAppInstanceRetentionSettings operation. /// </summary> public partial class GetAppInstanceRetentionSettingsResponse : AmazonWebServiceResponse { private AppInstanceRetentionSettings _appInstanceRetentionSettings; private DateTime? _initiateDeletionTimestamp; /// <summary> /// Gets and sets the property AppInstanceRetentionSettings. /// <para> /// The retention settings for the <code>AppInstance</code>. /// </para> /// </summary> public AppInstanceRetentionSettings AppInstanceRetentionSettings { get { return this._appInstanceRetentionSettings; } set { this._appInstanceRetentionSettings = value; } } // Check to see if AppInstanceRetentionSettings property is set internal bool IsSetAppInstanceRetentionSettings() { return this._appInstanceRetentionSettings != null; } /// <summary> /// Gets and sets the property InitiateDeletionTimestamp. /// <para> /// The timestamp representing the time at which the specified items are retained, in /// Epoch Seconds. /// </para> /// </summary> public DateTime InitiateDeletionTimestamp { get { return this._initiateDeletionTimestamp.GetValueOrDefault(); } set { this._initiateDeletionTimestamp = value; } } // Check to see if InitiateDeletionTimestamp property is set internal bool IsSetInitiateDeletionTimestamp() { return this._initiateDeletionTimestamp.HasValue; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The details of a user or bot. /// </summary> public partial class Identity { private string _arn; private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN in an Identity. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name in an Identity. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Specifies the type of message that triggers a bot. /// </summary> public partial class InvokedBy { private StandardMessages _standardMessages; private TargetedMessages _targetedMessages; /// <summary> /// Gets and sets the property StandardMessages. /// <para> /// Sets standard messages as the bot trigger. For standard messages: /// </para> /// <ul> <li> /// <para> /// <code>ALL</code>: The bot processes all standard messages. /// </para> /// </li> <li> /// <para> /// <code>AUTO</code>: The bot responds to ALL messages when the channel has one other /// non-hidden member, and responds to MENTIONS when the channel has more than one other /// non-hidden member. /// </para> /// </li> <li> /// <para> /// <code>MENTIONS</code>: The bot processes all standard messages that have a message /// attribute with <code>CHIME.mentions</code> and a value of the bot ARN. /// </para> /// </li> <li> /// <para> /// <code>NONE</code>: The bot processes no standard messages. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public StandardMessages StandardMessages { get { return this._standardMessages; } set { this._standardMessages = value; } } // Check to see if StandardMessages property is set internal bool IsSetStandardMessages() { return this._standardMessages != null; } /// <summary> /// Gets and sets the property TargetedMessages. /// <para> /// Sets targeted messages as the bot trigger. For targeted messages: /// </para> /// <ul> <li> /// <para> /// <code>ALL</code>: The bot processes all <code>TargetedMessages</code> sent to it. /// The bot then responds with a targeted message back to the sender. /// </para> /// </li> <li> /// <para> /// <code>NONE</code>: The bot processes no targeted messages. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public TargetedMessages TargetedMessages { get { return this._targetedMessages; } set { this._targetedMessages = value; } } // Check to see if TargetedMessages property is set internal bool IsSetTargetedMessages() { return this._targetedMessages != null; } } }
108
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The configuration for an Amazon Lex V2 bot. /// </summary> public partial class LexConfiguration { private InvokedBy _invokedBy; private string _lexBotAliasArn; private string _localeId; private RespondsTo _respondsTo; private string _welcomeIntent; /// <summary> /// Gets and sets the property InvokedBy. /// <para> /// Specifies the type of message that triggers a bot. /// </para> /// </summary> public InvokedBy InvokedBy { get { return this._invokedBy; } set { this._invokedBy = value; } } // Check to see if InvokedBy property is set internal bool IsSetInvokedBy() { return this._invokedBy != null; } /// <summary> /// Gets and sets the property LexBotAliasArn. /// <para> /// The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: <code>arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Min=15, Max=2048)] public string LexBotAliasArn { get { return this._lexBotAliasArn; } set { this._lexBotAliasArn = value; } } // Check to see if LexBotAliasArn property is set internal bool IsSetLexBotAliasArn() { return this._lexBotAliasArn != null; } /// <summary> /// Gets and sets the property LocaleId. /// <para> /// Identifies the Amazon Lex V2 bot's language and locale. The string must match one /// of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots /// used in the bot must have the same locale. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported /// languages</a> in the <i>Amazon Lex V2 Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string LocaleId { get { return this._localeId; } set { this._localeId = value; } } // Check to see if LocaleId property is set internal bool IsSetLocaleId() { return this._localeId != null; } /// <summary> /// Gets and sets the property RespondsTo. <important> /// <para> /// <b>Deprecated</b>. Use <code>InvokedBy</code> instead. /// </para> /// </important> /// <para> /// Determines whether the Amazon Lex V2 bot responds to all standard messages. Control /// messages are not supported. /// </para> /// </summary> public RespondsTo RespondsTo { get { return this._respondsTo; } set { this._respondsTo = value; } } // Check to see if RespondsTo property is set internal bool IsSetRespondsTo() { return this._respondsTo != null; } /// <summary> /// Gets and sets the property WelcomeIntent. /// <para> /// The name of the welcome intent configured in the Amazon Lex V2 bot. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public string WelcomeIntent { get { return this._welcomeIntent; } set { this._welcomeIntent = value; } } // Check to see if WelcomeIntent property is set internal bool IsSetWelcomeIntent() { return this._welcomeIntent != null; } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListAppInstanceAdmins operation. /// Returns a list of the administrators in the <code>AppInstance</code>. /// </summary> public partial class ListAppInstanceAdminsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of administrators that you want to return. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token returned from previous API requests until the number of administrators is /// reached. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListAppInstanceAdmins operation. /// </summary> public partial class ListAppInstanceAdminsResponse : AmazonWebServiceResponse { private List<AppInstanceAdminSummary> _appInstanceAdmins = new List<AppInstanceAdminSummary>(); private string _appInstanceArn; private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceAdmins. /// <para> /// The information for each administrator. /// </para> /// </summary> public List<AppInstanceAdminSummary> AppInstanceAdmins { get { return this._appInstanceAdmins; } set { this._appInstanceAdmins = value; } } // Check to see if AppInstanceAdmins property is set internal bool IsSetAppInstanceAdmins() { return this._appInstanceAdmins != null && this._appInstanceAdmins.Count > 0; } /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token returned from previous API requests until the number of administrators is /// reached. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListAppInstanceBots operation. /// Lists all <code>AppInstanceBots</code> created under a single <code>AppInstance</code>. /// </summary> public partial class ListAppInstanceBotsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of requests to return. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested bots are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListAppInstanceBots operation. /// </summary> public partial class ListAppInstanceBotsResponse : AmazonWebServiceResponse { private string _appInstanceArn; private List<AppInstanceBotSummary> _appInstanceBots = new List<AppInstanceBotSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the AppInstance. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property AppInstanceBots. /// <para> /// The information for each requested <code>AppInstanceBot</code>. /// </para> /// </summary> public List<AppInstanceBotSummary> AppInstanceBots { get { return this._appInstanceBots; } set { this._appInstanceBots = value; } } // Check to see if AppInstanceBots property is set internal bool IsSetAppInstanceBots() { return this._appInstanceBots != null && this._appInstanceBots.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested bots are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListAppInstances operation. /// Lists all Amazon Chime <code>AppInstance</code>s created under a single AWS account. /// </summary> public partial class ListAppInstancesRequest : AmazonChimeSDKIdentityRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of <code>AppInstance</code>s that you want to return. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API requests until you reach the maximum number of <code>AppInstances</code>. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListAppInstances operation. /// </summary> public partial class ListAppInstancesResponse : AmazonWebServiceResponse { private List<AppInstanceSummary> _appInstances = new List<AppInstanceSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property AppInstances. /// <para> /// The information for each <code>AppInstance</code>. /// </para> /// </summary> public List<AppInstanceSummary> AppInstances { get { return this._appInstances; } set { this._appInstances = value; } } // Check to see if AppInstances property is set internal bool IsSetAppInstances() { return this._appInstances != null && this._appInstances.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API requests until the maximum number of <code>AppInstance</code>s /// is reached. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListAppInstanceUserEndpoints operation. /// Lists all the <code>AppInstanceUserEndpoints</code> created under a single <code>AppInstanceUser</code>. /// </summary> public partial class ListAppInstanceUserEndpointsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of endpoints that you want to return. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested endpoints are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListAppInstanceUserEndpoints operation. /// </summary> public partial class ListAppInstanceUserEndpointsResponse : AmazonWebServiceResponse { private List<AppInstanceUserEndpointSummary> _appInstanceUserEndpoints = new List<AppInstanceUserEndpointSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceUserEndpoints. /// <para> /// The information for each requested <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> public List<AppInstanceUserEndpointSummary> AppInstanceUserEndpoints { get { return this._appInstanceUserEndpoints; } set { this._appInstanceUserEndpoints = value; } } // Check to see if AppInstanceUserEndpoints property is set internal bool IsSetAppInstanceUserEndpoints() { return this._appInstanceUserEndpoints != null && this._appInstanceUserEndpoints.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested endpoints are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListAppInstanceUsers operation. /// List all <code>AppInstanceUsers</code> created under a single <code>AppInstance</code>. /// </summary> public partial class ListAppInstanceUsersRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of requests that you want returned. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested users are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListAppInstanceUsers operation. /// </summary> public partial class ListAppInstanceUsersResponse : AmazonWebServiceResponse { private string _appInstanceArn; private List<AppInstanceUserSummary> _appInstanceUsers = new List<AppInstanceUserSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property AppInstanceUsers. /// <para> /// The information for each requested <code>AppInstanceUser</code>. /// </para> /// </summary> public List<AppInstanceUserSummary> AppInstanceUsers { get { return this._appInstanceUsers; } set { this._appInstanceUsers = value; } } // Check to see if AppInstanceUsers property is set internal bool IsSetAppInstanceUsers() { return this._appInstanceUsers != null && this._appInstanceUsers.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token passed by previous API calls until all requested users are returned. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// Lists the tags applied to an Amazon Chime SDK identity resource. /// </summary> public partial class ListTagsForResourceRequest : AmazonChimeSDKIdentityRequest { private string _resourceARN; /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The ARN of the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The tag key-value pairs. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.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 : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new NotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="innerException"></param> public NotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the NotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected NotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the PutAppInstanceRetentionSettings operation. /// Sets the amount of time in days that a given <code>AppInstance</code> retains data. /// </summary> public partial class PutAppInstanceRetentionSettingsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private AppInstanceRetentionSettings _appInstanceRetentionSettings; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property AppInstanceRetentionSettings. /// <para> /// The time in days to retain data. Data type: number. /// </para> /// </summary> [AWSProperty(Required=true)] public AppInstanceRetentionSettings AppInstanceRetentionSettings { get { return this._appInstanceRetentionSettings; } set { this._appInstanceRetentionSettings = value; } } // Check to see if AppInstanceRetentionSettings property is set internal bool IsSetAppInstanceRetentionSettings() { return this._appInstanceRetentionSettings != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the PutAppInstanceRetentionSettings operation. /// </summary> public partial class PutAppInstanceRetentionSettingsResponse : AmazonWebServiceResponse { private AppInstanceRetentionSettings _appInstanceRetentionSettings; private DateTime? _initiateDeletionTimestamp; /// <summary> /// Gets and sets the property AppInstanceRetentionSettings. /// <para> /// The time in days to retain data. Data type: number. /// </para> /// </summary> public AppInstanceRetentionSettings AppInstanceRetentionSettings { get { return this._appInstanceRetentionSettings; } set { this._appInstanceRetentionSettings = value; } } // Check to see if AppInstanceRetentionSettings property is set internal bool IsSetAppInstanceRetentionSettings() { return this._appInstanceRetentionSettings != null; } /// <summary> /// Gets and sets the property InitiateDeletionTimestamp. /// <para> /// The time at which the API deletes data. /// </para> /// </summary> public DateTime InitiateDeletionTimestamp { get { return this._initiateDeletionTimestamp.GetValueOrDefault(); } set { this._initiateDeletionTimestamp = value; } } // Check to see if InitiateDeletionTimestamp property is set internal bool IsSetInitiateDeletionTimestamp() { return this._initiateDeletionTimestamp.HasValue; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the PutAppInstanceUserExpirationSettings operation. /// Sets the number of days before the <code>AppInstanceUser</code> is automatically deleted. /// /// <note> /// <para> /// A background process deletes expired <code>AppInstanceUsers</code> within 6 hours /// of expiration. Actual deletion times may vary. /// </para> /// /// <para> /// Expired <code>AppInstanceUsers</code> that have not yet been deleted appear as active, /// and you can update their expiration settings. The system honors the new settings. /// </para> /// </note> /// </summary> public partial class PutAppInstanceUserExpirationSettingsRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; private ExpirationSettings _expirationSettings; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property ExpirationSettings. /// <para> /// Settings that control the interval after which an <code>AppInstanceUser</code> is /// automatically deleted. /// </para> /// </summary> public ExpirationSettings ExpirationSettings { get { return this._expirationSettings; } set { this._expirationSettings = value; } } // Check to see if ExpirationSettings property is set internal bool IsSetExpirationSettings() { return this._expirationSettings != null; } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the PutAppInstanceUserExpirationSettings operation. /// </summary> public partial class PutAppInstanceUserExpirationSettingsResponse : AmazonWebServiceResponse { private string _appInstanceUserArn; private ExpirationSettings _expirationSettings; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property ExpirationSettings. /// <para> /// Settings that control the interval after which an <code>AppInstanceUser</code> is /// automatically deleted. /// </para> /// </summary> public ExpirationSettings ExpirationSettings { get { return this._expirationSettings; } set { this._expirationSettings = value; } } // Check to see if ExpirationSettings property is set internal bool IsSetExpirationSettings() { return this._expirationSettings != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the RegisterAppInstanceUserEndpoint operation. /// Registers an endpoint under an Amazon Chime <code>AppInstanceUser</code>. The endpoint /// receives messages for a user. For push notifications, the endpoint is a mobile device /// used to receive mobile push notifications for a user. /// </summary> public partial class RegisterAppInstanceUserEndpointRequest : AmazonChimeSDKIdentityRequest { private AllowMessages _allowMessages; private string _appInstanceUserArn; private string _clientRequestToken; private EndpointAttributes _endpointAttributes; private string _name; private string _resourceArn; private AppInstanceUserEndpointType _type; /// <summary> /// Gets and sets the property AllowMessages. /// <para> /// Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. /// <code>ALL</code> indicates the endpoint receives all messages. <code>NONE</code> indicates /// the endpoint receives no messages. /// </para> /// </summary> public AllowMessages AllowMessages { get { return this._allowMessages; } set { this._allowMessages = value; } } // Check to see if AllowMessages property is set internal bool IsSetAllowMessages() { return this._allowMessages != null; } /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property ClientRequestToken. /// <para> /// The unique ID assigned to the request. Use different tokens to register other endpoints. /// </para> /// </summary> [AWSProperty(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 EndpointAttributes. /// <para> /// The attributes of an <code>Endpoint</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public EndpointAttributes EndpointAttributes { get { return this._endpointAttributes; } set { this._endpointAttributes = value; } } // Check to see if EndpointAttributes property is set internal bool IsSetEndpointAttributes() { return this._endpointAttributes != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1600)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of the resource to which the endpoint belongs. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of the <code>AppInstanceUserEndpoint</code>. Supported types: /// </para> /// <ul> <li> /// <para> /// <code>APNS</code>: The mobile notification service for an Apple device. /// </para> /// </li> <li> /// <para> /// <code>APNS_SANDBOX</code>: The sandbox environment of the mobile notification service /// for an Apple device. /// </para> /// </li> <li> /// <para> /// <code>GCM</code>: The mobile notification service for an Android device. /// </para> /// </li> </ul> /// <para> /// Populate the <code>ResourceArn</code> value of each type as <code>PinpointAppArn</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public AppInstanceUserEndpointType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the RegisterAppInstanceUserEndpoint operation. /// </summary> public partial class RegisterAppInstanceUserEndpointResponse : AmazonWebServiceResponse { private string _appInstanceUserArn; private string _endpointId; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property EndpointId. /// <para> /// The unique identifier of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string EndpointId { get { return this._endpointId; } set { this._endpointId = value; } } // Check to see if EndpointId property is set internal bool IsSetEndpointId() { return this._endpointId != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The request exceeds the resource limit. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceLimitExceededException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ResourceLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceLimitExceededException /// </summary> /// <param name="innerException"></param> public ResourceLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The service encountered an unexpected error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceFailureException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ServiceFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceFailureException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="innerException"></param> public ServiceFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceFailureException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The service is currently unavailable. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceUnavailableException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ServiceUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="innerException"></param> public ServiceUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// A tag object containing a key-value pair. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// The key in a tag. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value in a tag. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Applies the specified tags to the specified Amazon Chime SDK identity resource. /// </summary> public partial class TagResourceRequest : AmazonChimeSDKIdentityRequest { private string _resourceARN; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The resource ARN. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tag key-value pairs. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The client exceeded its request rate limit. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottledClientException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ThrottledClientException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottledClientException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottledClientException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottledClientException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottledClientException /// </summary> /// <param name="innerException"></param> public ThrottledClientException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottledClientException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottledClientException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottledClientException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottledClientException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottledClientException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottledClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// The client is not currently authorized to make the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnauthorizedClientException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new UnauthorizedClientException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnauthorizedClientException(string message) : base(message) {} /// <summary> /// Construct instance of UnauthorizedClientException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnauthorizedClientException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnauthorizedClientException /// </summary> /// <param name="innerException"></param> public UnauthorizedClientException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnauthorizedClientException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedClientException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnauthorizedClientException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedClientException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the UnauthorizedClientException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected UnauthorizedClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Code = (ErrorCode)info.GetValue("Code", typeof(ErrorCode)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Code", this.Code); } #endif /// <summary> /// Gets and sets the property Code. /// </summary> public ErrorCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Removes the specified tags from the specified Amazon Chime SDK identity resource. /// </summary> public partial class UntagResourceRequest : AmazonChimeSDKIdentityRequest { private string _resourceARN; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceARN. /// <para> /// The resource ARN. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// The tag keys. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the UpdateAppInstanceBot operation. /// Updates the name and metadata of an <code>AppInstanceBot</code>. /// </summary> public partial class UpdateAppInstanceBotRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceBotArn; private Configuration _configuration; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceBotArn { get { return this._appInstanceBotArn; } set { this._appInstanceBotArn = value; } } // Check to see if AppInstanceBotArn property is set internal bool IsSetAppInstanceBotArn() { return this._appInstanceBotArn != null; } /// <summary> /// Gets and sets the property Configuration. /// <para> /// The configuration for the bot update. /// </para> /// </summary> public Configuration Configuration { get { return this._configuration; } set { this._configuration = value; } } // Check to see if Configuration property is set internal bool IsSetConfiguration() { return this._configuration != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata of the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=0, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the UpdateAppInstanceBot operation. /// </summary> public partial class UpdateAppInstanceBotResponse : AmazonWebServiceResponse { private string _appInstanceBotArn; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the <code>AppInstanceBot</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceBotArn { get { return this._appInstanceBotArn; } set { this._appInstanceBotArn = value; } } // Check to see if AppInstanceBotArn property is set internal bool IsSetAppInstanceBotArn() { return this._appInstanceBotArn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the UpdateAppInstance operation. /// Updates <code>AppInstance</code> metadata. /// </summary> public partial class UpdateAppInstanceRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceArn; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata that you want to change. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name that you want to change. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the UpdateAppInstance operation. /// </summary> public partial class UpdateAppInstanceResponse : AmazonWebServiceResponse { private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceArn { get { return this._appInstanceArn; } set { this._appInstanceArn = value; } } // Check to see if AppInstanceArn property is set internal bool IsSetAppInstanceArn() { return this._appInstanceArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the UpdateAppInstanceUserEndpoint operation. /// Updates the details of an <code>AppInstanceUserEndpoint</code>. You can update the /// name and <code>AllowMessage</code> values. /// </summary> public partial class UpdateAppInstanceUserEndpointRequest : AmazonChimeSDKIdentityRequest { private AllowMessages _allowMessages; private string _appInstanceUserArn; private string _endpointId; private string _name; /// <summary> /// Gets and sets the property AllowMessages. /// <para> /// Boolean that controls whether the <code>AppInstanceUserEndpoint</code> is opted in /// to receive messages. <code>ALL</code> indicates the endpoint will receive all messages. /// <code>NONE</code> indicates the endpoint will receive no messages. /// </para> /// </summary> public AllowMessages AllowMessages { get { return this._allowMessages; } set { this._allowMessages = value; } } // Check to see if AllowMessages property is set internal bool IsSetAllowMessages() { return this._allowMessages != null; } /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property EndpointId. /// <para> /// The unique identifier of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string EndpointId { get { return this._endpointId; } set { this._endpointId = value; } } // Check to see if EndpointId property is set internal bool IsSetEndpointId() { return this._endpointId != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1600)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the UpdateAppInstanceUserEndpoint operation. /// </summary> public partial class UpdateAppInstanceUserEndpointResponse : AmazonWebServiceResponse { private string _appInstanceUserArn; private string _endpointId; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property EndpointId. /// <para> /// The unique identifier of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string EndpointId { get { return this._endpointId; } set { this._endpointId = value; } } // Check to see if EndpointId property is set internal bool IsSetEndpointId() { return this._endpointId != 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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// Container for the parameters to the UpdateAppInstanceUser operation. /// Updates the details of an <code>AppInstanceUser</code>. You can update names and metadata. /// </summary> public partial class UpdateAppInstanceUserRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceUserArn; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=0, Max=1024)] public string Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=100)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model { /// <summary> /// This is the response object from the UpdateAppInstanceUser operation. /// </summary> public partial class UpdateAppInstanceUserResponse : AmazonWebServiceResponse { private string _appInstanceUserArn; /// <summary> /// Gets and sets the property AppInstanceUserArn. /// <para> /// The ARN of the <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(Min=5, Max=1600)] public string AppInstanceUserArn { get { return this._appInstanceUserArn; } set { this._appInstanceUserArn = value; } } // Check to see if AppInstanceUserArn property is set internal bool IsSetAppInstanceUserArn() { return this._appInstanceUserArn != null; } } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceAdminSummary Object /// </summary> public class AppInstanceAdminSummaryUnmarshaller : IUnmarshaller<AppInstanceAdminSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceAdminSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceAdminSummary IUnmarshaller<AppInstanceAdminSummary, 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 AppInstanceAdminSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceAdminSummary unmarshalledObject = new AppInstanceAdminSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Admin", targetDepth)) { var unmarshaller = IdentityUnmarshaller.Instance; unmarshalledObject.Admin = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceAdminSummaryUnmarshaller _instance = new AppInstanceAdminSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceAdminSummaryUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceAdmin Object /// </summary> public class AppInstanceAdminUnmarshaller : IUnmarshaller<AppInstanceAdmin, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceAdmin, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceAdmin IUnmarshaller<AppInstanceAdmin, 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 AppInstanceAdmin Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceAdmin unmarshalledObject = new AppInstanceAdmin(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Admin", targetDepth)) { var unmarshaller = IdentityUnmarshaller.Instance; unmarshalledObject.Admin = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppInstanceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceAdminUnmarshaller _instance = new AppInstanceAdminUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceAdminUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceBotSummary Object /// </summary> public class AppInstanceBotSummaryUnmarshaller : IUnmarshaller<AppInstanceBotSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceBotSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceBotSummary IUnmarshaller<AppInstanceBotSummary, 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 AppInstanceBotSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceBotSummary unmarshalledObject = new AppInstanceBotSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceBotArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceBotArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceBotSummaryUnmarshaller _instance = new AppInstanceBotSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceBotSummaryUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceBot Object /// </summary> public class AppInstanceBotUnmarshaller : IUnmarshaller<AppInstanceBot, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceBot, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceBot IUnmarshaller<AppInstanceBot, 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 AppInstanceBot Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceBot unmarshalledObject = new AppInstanceBot(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceBotArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceBotArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Configuration", targetDepth)) { var unmarshaller = ConfigurationUnmarshaller.Instance; unmarshalledObject.Configuration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceBotUnmarshaller _instance = new AppInstanceBotUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceBotUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// AppInstanceRetentionSettings Marshaller /// </summary> public class AppInstanceRetentionSettingsMarshaller : IRequestMarshaller<AppInstanceRetentionSettings, 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(AppInstanceRetentionSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChannelRetentionSettings()) { context.Writer.WritePropertyName("ChannelRetentionSettings"); context.Writer.WriteObjectStart(); var marshaller = ChannelRetentionSettingsMarshaller.Instance; marshaller.Marshall(requestObject.ChannelRetentionSettings, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AppInstanceRetentionSettingsMarshaller Instance = new AppInstanceRetentionSettingsMarshaller(); } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceRetentionSettings Object /// </summary> public class AppInstanceRetentionSettingsUnmarshaller : IUnmarshaller<AppInstanceRetentionSettings, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceRetentionSettings, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceRetentionSettings IUnmarshaller<AppInstanceRetentionSettings, 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 AppInstanceRetentionSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceRetentionSettings unmarshalledObject = new AppInstanceRetentionSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChannelRetentionSettings", targetDepth)) { var unmarshaller = ChannelRetentionSettingsUnmarshaller.Instance; unmarshalledObject.ChannelRetentionSettings = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceRetentionSettingsUnmarshaller _instance = new AppInstanceRetentionSettingsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceRetentionSettingsUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceSummary Object /// </summary> public class AppInstanceSummaryUnmarshaller : IUnmarshaller<AppInstanceSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceSummary IUnmarshaller<AppInstanceSummary, 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 AppInstanceSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceSummary unmarshalledObject = new AppInstanceSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceSummaryUnmarshaller _instance = new AppInstanceSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceSummaryUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstance Object /// </summary> public class AppInstanceUnmarshaller : IUnmarshaller<AppInstance, XmlUnmarshallerContext>, IUnmarshaller<AppInstance, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstance IUnmarshaller<AppInstance, 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 AppInstance Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstance unmarshalledObject = new AppInstance(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceUnmarshaller _instance = new AppInstanceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceUserEndpointSummary Object /// </summary> public class AppInstanceUserEndpointSummaryUnmarshaller : IUnmarshaller<AppInstanceUserEndpointSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceUserEndpointSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceUserEndpointSummary IUnmarshaller<AppInstanceUserEndpointSummary, 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 AppInstanceUserEndpointSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceUserEndpointSummary unmarshalledObject = new AppInstanceUserEndpointSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AllowMessages", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AllowMessages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppInstanceUserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceUserArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EndpointId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointState", targetDepth)) { var unmarshaller = EndpointStateUnmarshaller.Instance; unmarshalledObject.EndpointState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceUserEndpointSummaryUnmarshaller _instance = new AppInstanceUserEndpointSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceUserEndpointSummaryUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceUserEndpoint Object /// </summary> public class AppInstanceUserEndpointUnmarshaller : IUnmarshaller<AppInstanceUserEndpoint, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceUserEndpoint, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceUserEndpoint IUnmarshaller<AppInstanceUserEndpoint, 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 AppInstanceUserEndpoint Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceUserEndpoint unmarshalledObject = new AppInstanceUserEndpoint(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AllowMessages", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AllowMessages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppInstanceUserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceUserArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointAttributes", targetDepth)) { var unmarshaller = EndpointAttributesUnmarshaller.Instance; unmarshalledObject.EndpointAttributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EndpointId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointState", targetDepth)) { var unmarshaller = EndpointStateUnmarshaller.Instance; unmarshalledObject.EndpointState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceUserEndpointUnmarshaller _instance = new AppInstanceUserEndpointUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceUserEndpointUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceUserSummary Object /// </summary> public class AppInstanceUserSummaryUnmarshaller : IUnmarshaller<AppInstanceUserSummary, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceUserSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceUserSummary IUnmarshaller<AppInstanceUserSummary, 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 AppInstanceUserSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceUserSummary unmarshalledObject = new AppInstanceUserSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceUserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceUserArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceUserSummaryUnmarshaller _instance = new AppInstanceUserSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceUserSummaryUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppInstanceUser Object /// </summary> public class AppInstanceUserUnmarshaller : IUnmarshaller<AppInstanceUser, XmlUnmarshallerContext>, IUnmarshaller<AppInstanceUser, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppInstanceUser IUnmarshaller<AppInstanceUser, 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 AppInstanceUser Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppInstanceUser unmarshalledObject = new AppInstanceUser(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceUserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppInstanceUserArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExpirationSettings", targetDepth)) { var unmarshaller = ExpirationSettingsUnmarshaller.Instance; unmarshalledObject.ExpirationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppInstanceUserUnmarshaller _instance = new AppInstanceUserUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppInstanceUserUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BadRequestException Object /// </summary> public class BadRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<BadRequestException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BadRequestException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public BadRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); BadRequestException unmarshalledObject = new BadRequestException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Code", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Code = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BadRequestExceptionUnmarshaller _instance = new BadRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BadRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// ChannelRetentionSettings Marshaller /// </summary> public class ChannelRetentionSettingsMarshaller : IRequestMarshaller<ChannelRetentionSettings, 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(ChannelRetentionSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetRetentionDays()) { context.Writer.WritePropertyName("RetentionDays"); context.Writer.Write(requestObject.RetentionDays); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ChannelRetentionSettingsMarshaller Instance = new ChannelRetentionSettingsMarshaller(); } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChannelRetentionSettings Object /// </summary> public class ChannelRetentionSettingsUnmarshaller : IUnmarshaller<ChannelRetentionSettings, XmlUnmarshallerContext>, IUnmarshaller<ChannelRetentionSettings, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChannelRetentionSettings IUnmarshaller<ChannelRetentionSettings, 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 ChannelRetentionSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChannelRetentionSettings unmarshalledObject = new ChannelRetentionSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("RetentionDays", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.RetentionDays = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChannelRetentionSettingsUnmarshaller _instance = new ChannelRetentionSettingsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChannelRetentionSettingsUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Configuration Marshaller /// </summary> public class ConfigurationMarshaller : IRequestMarshaller<Configuration, 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(Configuration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLex()) { context.Writer.WritePropertyName("Lex"); context.Writer.WriteObjectStart(); var marshaller = LexConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.Lex, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConfigurationMarshaller Instance = new ConfigurationMarshaller(); } }
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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Configuration Object /// </summary> public class ConfigurationUnmarshaller : IUnmarshaller<Configuration, XmlUnmarshallerContext>, IUnmarshaller<Configuration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Configuration IUnmarshaller<Configuration, 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 Configuration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Configuration unmarshalledObject = new Configuration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Lex", targetDepth)) { var unmarshaller = LexConfigurationUnmarshaller.Instance; unmarshalledObject.Lex = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConfigurationUnmarshaller _instance = new ConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConfigurationUnmarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.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; } } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// CreateAppInstanceAdmin Request Marshaller /// </summary> public class CreateAppInstanceAdminRequestMarshaller : IMarshaller<IRequest, CreateAppInstanceAdminRequest> , 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((CreateAppInstanceAdminRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAppInstanceAdminRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKIdentity"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-20"; request.HttpMethod = "POST"; if (!publicRequest.IsSetAppInstanceArn()) throw new AmazonChimeSDKIdentityException("Request object does not have required field AppInstanceArn set"); request.AddPathResource("{appInstanceArn}", StringUtils.FromString(publicRequest.AppInstanceArn)); request.ResourcePath = "/app-instances/{appInstanceArn}/admins"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAppInstanceAdminArn()) { context.Writer.WritePropertyName("AppInstanceAdminArn"); context.Writer.Write(publicRequest.AppInstanceAdminArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateAppInstanceAdminRequestMarshaller _instance = new CreateAppInstanceAdminRequestMarshaller(); internal static CreateAppInstanceAdminRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceAdminRequestMarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAppInstanceAdmin operation /// </summary> public class CreateAppInstanceAdminResponseUnmarshaller : 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) { CreateAppInstanceAdminResponse response = new CreateAppInstanceAdminResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceAdmin", targetDepth)) { var unmarshaller = IdentityUnmarshaller.Instance; response.AppInstanceAdmin = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppInstanceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppInstanceArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLimitExceededException")) { return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKIdentityException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAppInstanceAdminResponseUnmarshaller _instance = new CreateAppInstanceAdminResponseUnmarshaller(); internal static CreateAppInstanceAdminResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceAdminResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// CreateAppInstanceBot Request Marshaller /// </summary> public class CreateAppInstanceBotRequestMarshaller : IMarshaller<IRequest, CreateAppInstanceBotRequest> , 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((CreateAppInstanceBotRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAppInstanceBotRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKIdentity"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-20"; request.HttpMethod = "POST"; request.ResourcePath = "/app-instance-bots"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAppInstanceArn()) { context.Writer.WritePropertyName("AppInstanceArn"); context.Writer.Write(publicRequest.AppInstanceArn); } 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.IsSetConfiguration()) { context.Writer.WritePropertyName("Configuration"); context.Writer.WriteObjectStart(); var marshaller = ConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.Configuration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMetadata()) { context.Writer.WritePropertyName("Metadata"); context.Writer.Write(publicRequest.Metadata); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } 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 CreateAppInstanceBotRequestMarshaller _instance = new CreateAppInstanceBotRequestMarshaller(); internal static CreateAppInstanceBotRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceBotRequestMarshaller Instance { get { return _instance; } } } }
151
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAppInstanceBot operation /// </summary> public class CreateAppInstanceBotResponseUnmarshaller : 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) { CreateAppInstanceBotResponse response = new CreateAppInstanceBotResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceBotArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppInstanceBotArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLimitExceededException")) { return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKIdentityException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAppInstanceBotResponseUnmarshaller _instance = new CreateAppInstanceBotResponseUnmarshaller(); internal static CreateAppInstanceBotResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceBotResponseUnmarshaller Instance { get { return _instance; } } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// CreateAppInstance Request Marshaller /// </summary> public class CreateAppInstanceRequestMarshaller : IMarshaller<IRequest, CreateAppInstanceRequest> , 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((CreateAppInstanceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAppInstanceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKIdentity"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-20"; request.HttpMethod = "POST"; request.ResourcePath = "/app-instances"; 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.IsSetMetadata()) { context.Writer.WritePropertyName("Metadata"); context.Writer.Write(publicRequest.Metadata); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } 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 CreateAppInstanceRequestMarshaller _instance = new CreateAppInstanceRequestMarshaller(); internal static CreateAppInstanceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceRequestMarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAppInstance operation /// </summary> public class CreateAppInstanceResponseUnmarshaller : 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) { CreateAppInstanceResponse response = new CreateAppInstanceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppInstanceArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLimitExceededException")) { return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKIdentityException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAppInstanceResponseUnmarshaller _instance = new CreateAppInstanceResponseUnmarshaller(); internal static CreateAppInstanceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceResponseUnmarshaller Instance { get { return _instance; } } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// CreateAppInstanceUser Request Marshaller /// </summary> public class CreateAppInstanceUserRequestMarshaller : IMarshaller<IRequest, CreateAppInstanceUserRequest> , 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((CreateAppInstanceUserRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAppInstanceUserRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKIdentity"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-20"; request.HttpMethod = "POST"; request.ResourcePath = "/app-instance-users"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAppInstanceArn()) { context.Writer.WritePropertyName("AppInstanceArn"); context.Writer.Write(publicRequest.AppInstanceArn); } if(publicRequest.IsSetAppInstanceUserId()) { context.Writer.WritePropertyName("AppInstanceUserId"); context.Writer.Write(publicRequest.AppInstanceUserId); } 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.IsSetExpirationSettings()) { context.Writer.WritePropertyName("ExpirationSettings"); context.Writer.WriteObjectStart(); var marshaller = ExpirationSettingsMarshaller.Instance; marshaller.Marshall(publicRequest.ExpirationSettings, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMetadata()) { context.Writer.WritePropertyName("Metadata"); context.Writer.Write(publicRequest.Metadata); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } 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 CreateAppInstanceUserRequestMarshaller _instance = new CreateAppInstanceUserRequestMarshaller(); internal static CreateAppInstanceUserRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceUserRequestMarshaller Instance { get { return _instance; } } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAppInstanceUser operation /// </summary> public class CreateAppInstanceUserResponseUnmarshaller : 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) { CreateAppInstanceUserResponse response = new CreateAppInstanceUserResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppInstanceUserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppInstanceUserArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLimitExceededException")) { return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKIdentityException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAppInstanceUserResponseUnmarshaller _instance = new CreateAppInstanceUserResponseUnmarshaller(); internal static CreateAppInstanceUserResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAppInstanceUserResponseUnmarshaller Instance { get { return _instance; } } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// DeleteAppInstanceAdmin Request Marshaller /// </summary> public class DeleteAppInstanceAdminRequestMarshaller : IMarshaller<IRequest, DeleteAppInstanceAdminRequest> , 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((DeleteAppInstanceAdminRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteAppInstanceAdminRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ChimeSDKIdentity"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-20"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetAppInstanceAdminArn()) throw new AmazonChimeSDKIdentityException("Request object does not have required field AppInstanceAdminArn set"); request.AddPathResource("{appInstanceAdminArn}", StringUtils.FromString(publicRequest.AppInstanceAdminArn)); if (!publicRequest.IsSetAppInstanceArn()) throw new AmazonChimeSDKIdentityException("Request object does not have required field AppInstanceArn set"); request.AddPathResource("{appInstanceArn}", StringUtils.FromString(publicRequest.AppInstanceArn)); request.ResourcePath = "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}"; return request; } private static DeleteAppInstanceAdminRequestMarshaller _instance = new DeleteAppInstanceAdminRequestMarshaller(); internal static DeleteAppInstanceAdminRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAppInstanceAdminRequestMarshaller 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-identity-2021-04-20.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.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ChimeSDKIdentity.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteAppInstanceAdmin operation /// </summary> public class DeleteAppInstanceAdminResponseUnmarshaller : 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) { DeleteAppInstanceAdminResponse response = new DeleteAppInstanceAdminResponse(); 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("ResourceLimitExceededException")) { return ResourceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeSDKIdentityException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteAppInstanceAdminResponseUnmarshaller _instance = new DeleteAppInstanceAdminResponseUnmarshaller(); internal static DeleteAppInstanceAdminResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAppInstanceAdminResponseUnmarshaller Instance { get { return _instance; } } } }
127