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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateUserSettings operation /// </summary> public class UpdateUserSettingsResponseUnmarshaller : 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) { UpdateUserSettingsResponse response = new UpdateUserSettingsResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateUserSettingsResponseUnmarshaller _instance = new UpdateUserSettingsResponseUnmarshaller(); internal static UpdateUserSettingsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateUserSettingsResponseUnmarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// UpdateVoiceConnectorGroup Request Marshaller /// </summary> public class UpdateVoiceConnectorGroupRequestMarshaller : IMarshaller<IRequest, UpdateVoiceConnectorGroupRequest> , 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((UpdateVoiceConnectorGroupRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVoiceConnectorGroupRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Chime"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-05-01"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetVoiceConnectorGroupId()) throw new AmazonChimeException("Request object does not have required field VoiceConnectorGroupId set"); request.AddPathResource("{voiceConnectorGroupId}", StringUtils.FromString(publicRequest.VoiceConnectorGroupId)); request.ResourcePath = "/voice-connector-groups/{voiceConnectorGroupId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetVoiceConnectorItems()) { context.Writer.WritePropertyName("VoiceConnectorItems"); context.Writer.WriteArrayStart(); foreach(var publicRequestVoiceConnectorItemsListValue in publicRequest.VoiceConnectorItems) { context.Writer.WriteObjectStart(); var marshaller = VoiceConnectorItemMarshaller.Instance; marshaller.Marshall(publicRequestVoiceConnectorItemsListValue, 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 UpdateVoiceConnectorGroupRequestMarshaller _instance = new UpdateVoiceConnectorGroupRequestMarshaller(); internal static UpdateVoiceConnectorGroupRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVoiceConnectorGroupRequestMarshaller Instance { get { return _instance; } } } }
120
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateVoiceConnectorGroup operation /// </summary> public class UpdateVoiceConnectorGroupResponseUnmarshaller : 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) { UpdateVoiceConnectorGroupResponse response = new UpdateVoiceConnectorGroupResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VoiceConnectorGroup", targetDepth)) { var unmarshaller = VoiceConnectorGroupUnmarshaller.Instance; response.VoiceConnectorGroup = 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("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateVoiceConnectorGroupResponseUnmarshaller _instance = new UpdateVoiceConnectorGroupResponseUnmarshaller(); internal static UpdateVoiceConnectorGroupResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVoiceConnectorGroupResponseUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// UpdateVoiceConnector Request Marshaller /// </summary> public class UpdateVoiceConnectorRequestMarshaller : IMarshaller<IRequest, UpdateVoiceConnectorRequest> , 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((UpdateVoiceConnectorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVoiceConnectorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Chime"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-05-01"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetVoiceConnectorId()) throw new AmazonChimeException("Request object does not have required field VoiceConnectorId set"); request.AddPathResource("{voiceConnectorId}", StringUtils.FromString(publicRequest.VoiceConnectorId)); request.ResourcePath = "/voice-connectors/{voiceConnectorId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetRequireEncryption()) { context.Writer.WritePropertyName("RequireEncryption"); context.Writer.Write(publicRequest.RequireEncryption); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateVoiceConnectorRequestMarshaller _instance = new UpdateVoiceConnectorRequestMarshaller(); internal static UpdateVoiceConnectorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVoiceConnectorRequestMarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateVoiceConnector operation /// </summary> public class UpdateVoiceConnectorResponseUnmarshaller : 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) { UpdateVoiceConnectorResponse response = new UpdateVoiceConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VoiceConnector", targetDepth)) { var unmarshaller = VoiceConnectorUnmarshaller.Instance; response.VoiceConnector = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateVoiceConnectorResponseUnmarshaller _instance = new UpdateVoiceConnectorResponseUnmarshaller(); internal static UpdateVoiceConnectorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVoiceConnectorResponseUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UserError Object /// </summary> public class UserErrorUnmarshaller : IUnmarshaller<UserError, XmlUnmarshallerContext>, IUnmarshaller<UserError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UserError IUnmarshaller<UserError, 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 UserError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UserError unmarshalledObject = new UserError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UserErrorUnmarshaller _instance = new UserErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UserErrorUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// UserSettings Marshaller /// </summary> public class UserSettingsMarshaller : IRequestMarshaller<UserSettings, 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(UserSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetTelephony()) { context.Writer.WritePropertyName("Telephony"); context.Writer.WriteObjectStart(); var marshaller = TelephonySettingsMarshaller.Instance; marshaller.Marshall(requestObject.Telephony, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UserSettingsMarshaller Instance = new UserSettingsMarshaller(); } }
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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UserSettings Object /// </summary> public class UserSettingsUnmarshaller : IUnmarshaller<UserSettings, XmlUnmarshallerContext>, IUnmarshaller<UserSettings, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UserSettings IUnmarshaller<UserSettings, 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 UserSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UserSettings unmarshalledObject = new UserSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Telephony", targetDepth)) { var unmarshaller = TelephonySettingsUnmarshaller.Instance; unmarshalledObject.Telephony = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UserSettingsUnmarshaller _instance = new UserSettingsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UserSettingsUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for User Object /// </summary> public class UserUnmarshaller : IUnmarshaller<User, XmlUnmarshallerContext>, IUnmarshaller<User, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> User IUnmarshaller<User, 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 User Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; User unmarshalledObject = new User(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AlexaForBusinessMetadata", targetDepth)) { var unmarshaller = AlexaForBusinessMetadataUnmarshaller.Instance; unmarshalledObject.AlexaForBusinessMetadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisplayName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DisplayName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InvitedOn", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.InvitedOn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LicenseType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LicenseType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PersonalPIN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PersonalPIN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrimaryEmail", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrimaryEmail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrimaryProvisionedNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrimaryProvisionedNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegisteredOn", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RegisteredOn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserInvitationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserInvitationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserRegistrationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserRegistrationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UserUnmarshaller _instance = new UserUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UserUnmarshaller Instance { get { return _instance; } } } }
164
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// ValidateE911Address Request Marshaller /// </summary> public class ValidateE911AddressRequestMarshaller : IMarshaller<IRequest, ValidateE911AddressRequest> , 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((ValidateE911AddressRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ValidateE911AddressRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Chime"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-05-01"; request.HttpMethod = "POST"; request.ResourcePath = "/emergency-calling/address"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAwsAccountId()) { context.Writer.WritePropertyName("AwsAccountId"); context.Writer.Write(publicRequest.AwsAccountId); } if(publicRequest.IsSetCity()) { context.Writer.WritePropertyName("City"); context.Writer.Write(publicRequest.City); } if(publicRequest.IsSetCountry()) { context.Writer.WritePropertyName("Country"); context.Writer.Write(publicRequest.Country); } if(publicRequest.IsSetPostalCode()) { context.Writer.WritePropertyName("PostalCode"); context.Writer.Write(publicRequest.PostalCode); } if(publicRequest.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(publicRequest.State); } if(publicRequest.IsSetStreetInfo()) { context.Writer.WritePropertyName("StreetInfo"); context.Writer.Write(publicRequest.StreetInfo); } if(publicRequest.IsSetStreetNumber()) { context.Writer.WritePropertyName("StreetNumber"); context.Writer.Write(publicRequest.StreetNumber); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ValidateE911AddressRequestMarshaller _instance = new ValidateE911AddressRequestMarshaller(); internal static ValidateE911AddressRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ValidateE911AddressRequestMarshaller Instance { get { return _instance; } } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidateE911Address operation /// </summary> public class ValidateE911AddressResponseUnmarshaller : 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) { ValidateE911AddressResponse response = new ValidateE911AddressResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Address", targetDepth)) { var unmarshaller = AddressUnmarshaller.Instance; response.Address = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AddressExternalId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AddressExternalId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CandidateAddressList", targetDepth)) { var unmarshaller = new ListUnmarshaller<CandidateAddress, CandidateAddressUnmarshaller>(CandidateAddressUnmarshaller.Instance); response.CandidateAddressList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationResult", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.ValidationResult = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException")) { return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottledClientException")) { return ThrottledClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedClientException")) { return UnauthorizedClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonChimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ValidateE911AddressResponseUnmarshaller _instance = new ValidateE911AddressResponseUnmarshaller(); internal static ValidateE911AddressResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ValidateE911AddressResponseUnmarshaller Instance { get { return _instance; } } } }
152
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// VideoArtifactsConfiguration Marshaller /// </summary> public class VideoArtifactsConfigurationMarshaller : IRequestMarshaller<VideoArtifactsConfiguration, 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(VideoArtifactsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMuxType()) { context.Writer.WritePropertyName("MuxType"); context.Writer.Write(requestObject.MuxType); } if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VideoArtifactsConfigurationMarshaller Instance = new VideoArtifactsConfigurationMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VideoArtifactsConfiguration Object /// </summary> public class VideoArtifactsConfigurationUnmarshaller : IUnmarshaller<VideoArtifactsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<VideoArtifactsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VideoArtifactsConfiguration IUnmarshaller<VideoArtifactsConfiguration, 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 VideoArtifactsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VideoArtifactsConfiguration unmarshalledObject = new VideoArtifactsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MuxType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MuxType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VideoArtifactsConfigurationUnmarshaller _instance = new VideoArtifactsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VideoArtifactsConfigurationUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VoiceConnectorGroup Object /// </summary> public class VoiceConnectorGroupUnmarshaller : IUnmarshaller<VoiceConnectorGroup, XmlUnmarshallerContext>, IUnmarshaller<VoiceConnectorGroup, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VoiceConnectorGroup IUnmarshaller<VoiceConnectorGroup, 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 VoiceConnectorGroup Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VoiceConnectorGroup unmarshalledObject = new VoiceConnectorGroup(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorGroupArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VoiceConnectorGroupArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorGroupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VoiceConnectorGroupId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorItems", targetDepth)) { var unmarshaller = new ListUnmarshaller<VoiceConnectorItem, VoiceConnectorItemUnmarshaller>(VoiceConnectorItemUnmarshaller.Instance); unmarshalledObject.VoiceConnectorItems = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VoiceConnectorGroupUnmarshaller _instance = new VoiceConnectorGroupUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VoiceConnectorGroupUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// VoiceConnectorItem Marshaller /// </summary> public class VoiceConnectorItemMarshaller : IRequestMarshaller<VoiceConnectorItem, 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(VoiceConnectorItem requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPriority()) { context.Writer.WritePropertyName("Priority"); context.Writer.Write(requestObject.Priority); } if(requestObject.IsSetVoiceConnectorId()) { context.Writer.WritePropertyName("VoiceConnectorId"); context.Writer.Write(requestObject.VoiceConnectorId); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VoiceConnectorItemMarshaller Instance = new VoiceConnectorItemMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VoiceConnectorItem Object /// </summary> public class VoiceConnectorItemUnmarshaller : IUnmarshaller<VoiceConnectorItem, XmlUnmarshallerContext>, IUnmarshaller<VoiceConnectorItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VoiceConnectorItem IUnmarshaller<VoiceConnectorItem, 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 VoiceConnectorItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VoiceConnectorItem unmarshalledObject = new VoiceConnectorItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Priority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Priority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VoiceConnectorId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VoiceConnectorItemUnmarshaller _instance = new VoiceConnectorItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VoiceConnectorItemUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// VoiceConnectorSettings Marshaller /// </summary> public class VoiceConnectorSettingsMarshaller : IRequestMarshaller<VoiceConnectorSettings, 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(VoiceConnectorSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCdrBucket()) { context.Writer.WritePropertyName("CdrBucket"); context.Writer.Write(requestObject.CdrBucket); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VoiceConnectorSettingsMarshaller Instance = new VoiceConnectorSettingsMarshaller(); } }
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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VoiceConnectorSettings Object /// </summary> public class VoiceConnectorSettingsUnmarshaller : IUnmarshaller<VoiceConnectorSettings, XmlUnmarshallerContext>, IUnmarshaller<VoiceConnectorSettings, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VoiceConnectorSettings IUnmarshaller<VoiceConnectorSettings, 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 VoiceConnectorSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VoiceConnectorSettings unmarshalledObject = new VoiceConnectorSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CdrBucket", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CdrBucket = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VoiceConnectorSettingsUnmarshaller _instance = new VoiceConnectorSettingsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VoiceConnectorSettingsUnmarshaller 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-2018-05-01.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.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Chime.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VoiceConnector Object /// </summary> public class VoiceConnectorUnmarshaller : IUnmarshaller<VoiceConnector, XmlUnmarshallerContext>, IUnmarshaller<VoiceConnector, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VoiceConnector IUnmarshaller<VoiceConnector, 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 VoiceConnector Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VoiceConnector unmarshalledObject = new VoiceConnector(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AwsRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OutboundHostName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutboundHostName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequireEncryption", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.RequireEncryption = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VoiceConnectorArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VoiceConnectorId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VoiceConnectorId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VoiceConnectorUnmarshaller _instance = new VoiceConnectorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VoiceConnectorUnmarshaller 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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Chime.Model { /// <summary> /// Paginators for the Chime service ///</summary> public class ChimePaginatorFactory : IChimePaginatorFactory { private readonly IAmazonChime client; internal ChimePaginatorFactory(IAmazonChime client) { this.client = client; } /// <summary> /// Paginator for ListAccounts operation ///</summary> public IListAccountsPaginator ListAccounts(ListAccountsRequest request) { return new ListAccountsPaginator(this.client, request); } /// <summary> /// Paginator for ListAppInstanceAdmins operation ///</summary> public IListAppInstanceAdminsPaginator ListAppInstanceAdmins(ListAppInstanceAdminsRequest request) { return new ListAppInstanceAdminsPaginator(this.client, request); } /// <summary> /// Paginator for ListAppInstances operation ///</summary> public IListAppInstancesPaginator ListAppInstances(ListAppInstancesRequest request) { return new ListAppInstancesPaginator(this.client, request); } /// <summary> /// Paginator for ListAppInstanceUsers operation ///</summary> public IListAppInstanceUsersPaginator ListAppInstanceUsers(ListAppInstanceUsersRequest request) { return new ListAppInstanceUsersPaginator(this.client, request); } /// <summary> /// Paginator for ListAttendees operation ///</summary> public IListAttendeesPaginator ListAttendees(ListAttendeesRequest request) { return new ListAttendeesPaginator(this.client, request); } /// <summary> /// Paginator for ListBots operation ///</summary> public IListBotsPaginator ListBots(ListBotsRequest request) { return new ListBotsPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelBans operation ///</summary> public IListChannelBansPaginator ListChannelBans(ListChannelBansRequest request) { return new ListChannelBansPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelMemberships operation ///</summary> public IListChannelMembershipsPaginator ListChannelMemberships(ListChannelMembershipsRequest request) { return new ListChannelMembershipsPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelMembershipsForAppInstanceUser operation ///</summary> public IListChannelMembershipsForAppInstanceUserPaginator ListChannelMembershipsForAppInstanceUser(ListChannelMembershipsForAppInstanceUserRequest request) { return new ListChannelMembershipsForAppInstanceUserPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelMessages operation ///</summary> public IListChannelMessagesPaginator ListChannelMessages(ListChannelMessagesRequest request) { return new ListChannelMessagesPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelModerators operation ///</summary> public IListChannelModeratorsPaginator ListChannelModerators(ListChannelModeratorsRequest request) { return new ListChannelModeratorsPaginator(this.client, request); } /// <summary> /// Paginator for ListChannels operation ///</summary> public IListChannelsPaginator ListChannels(ListChannelsRequest request) { return new ListChannelsPaginator(this.client, request); } /// <summary> /// Paginator for ListChannelsModeratedByAppInstanceUser operation ///</summary> public IListChannelsModeratedByAppInstanceUserPaginator ListChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest request) { return new ListChannelsModeratedByAppInstanceUserPaginator(this.client, request); } /// <summary> /// Paginator for ListMediaCapturePipelines operation ///</summary> public IListMediaCapturePipelinesPaginator ListMediaCapturePipelines(ListMediaCapturePipelinesRequest request) { return new ListMediaCapturePipelinesPaginator(this.client, request); } /// <summary> /// Paginator for ListMeetings operation ///</summary> public IListMeetingsPaginator ListMeetings(ListMeetingsRequest request) { return new ListMeetingsPaginator(this.client, request); } /// <summary> /// Paginator for ListPhoneNumberOrders operation ///</summary> public IListPhoneNumberOrdersPaginator ListPhoneNumberOrders(ListPhoneNumberOrdersRequest request) { return new ListPhoneNumberOrdersPaginator(this.client, request); } /// <summary> /// Paginator for ListPhoneNumbers operation ///</summary> public IListPhoneNumbersPaginator ListPhoneNumbers(ListPhoneNumbersRequest request) { return new ListPhoneNumbersPaginator(this.client, request); } /// <summary> /// Paginator for ListProxySessions operation ///</summary> public IListProxySessionsPaginator ListProxySessions(ListProxySessionsRequest request) { return new ListProxySessionsPaginator(this.client, request); } /// <summary> /// Paginator for ListRoomMemberships operation ///</summary> public IListRoomMembershipsPaginator ListRoomMemberships(ListRoomMembershipsRequest request) { return new ListRoomMembershipsPaginator(this.client, request); } /// <summary> /// Paginator for ListRooms operation ///</summary> public IListRoomsPaginator ListRooms(ListRoomsRequest request) { return new ListRoomsPaginator(this.client, request); } /// <summary> /// Paginator for ListSipMediaApplications operation ///</summary> public IListSipMediaApplicationsPaginator ListSipMediaApplications(ListSipMediaApplicationsRequest request) { return new ListSipMediaApplicationsPaginator(this.client, request); } /// <summary> /// Paginator for ListSipRules operation ///</summary> public IListSipRulesPaginator ListSipRules(ListSipRulesRequest request) { return new ListSipRulesPaginator(this.client, request); } /// <summary> /// Paginator for ListUsers operation ///</summary> public IListUsersPaginator ListUsers(ListUsersRequest request) { return new ListUsersPaginator(this.client, request); } /// <summary> /// Paginator for ListVoiceConnectorGroups operation ///</summary> public IListVoiceConnectorGroupsPaginator ListVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request) { return new ListVoiceConnectorGroupsPaginator(this.client, request); } /// <summary> /// Paginator for ListVoiceConnectors operation ///</summary> public IListVoiceConnectorsPaginator ListVoiceConnectors(ListVoiceConnectorsRequest request) { return new ListVoiceConnectorsPaginator(this.client, request); } /// <summary> /// Paginator for SearchAvailablePhoneNumbers operation ///</summary> public ISearchAvailablePhoneNumbersPaginator SearchAvailablePhoneNumbers(SearchAvailablePhoneNumbersRequest request) { return new SearchAvailablePhoneNumbersPaginator(this.client, request); } } }
246
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ namespace Amazon.Chime.Model { /// <summary> /// Paginators for the Chime service ///</summary> public interface IChimePaginatorFactory { /// <summary> /// Paginator for ListAccounts operation ///</summary> IListAccountsPaginator ListAccounts(ListAccountsRequest request); /// <summary> /// Paginator for ListAppInstanceAdmins operation ///</summary> IListAppInstanceAdminsPaginator ListAppInstanceAdmins(ListAppInstanceAdminsRequest request); /// <summary> /// Paginator for ListAppInstances operation ///</summary> IListAppInstancesPaginator ListAppInstances(ListAppInstancesRequest request); /// <summary> /// Paginator for ListAppInstanceUsers operation ///</summary> IListAppInstanceUsersPaginator ListAppInstanceUsers(ListAppInstanceUsersRequest request); /// <summary> /// Paginator for ListAttendees operation ///</summary> IListAttendeesPaginator ListAttendees(ListAttendeesRequest request); /// <summary> /// Paginator for ListBots operation ///</summary> IListBotsPaginator ListBots(ListBotsRequest request); /// <summary> /// Paginator for ListChannelBans operation ///</summary> IListChannelBansPaginator ListChannelBans(ListChannelBansRequest request); /// <summary> /// Paginator for ListChannelMemberships operation ///</summary> IListChannelMembershipsPaginator ListChannelMemberships(ListChannelMembershipsRequest request); /// <summary> /// Paginator for ListChannelMembershipsForAppInstanceUser operation ///</summary> IListChannelMembershipsForAppInstanceUserPaginator ListChannelMembershipsForAppInstanceUser(ListChannelMembershipsForAppInstanceUserRequest request); /// <summary> /// Paginator for ListChannelMessages operation ///</summary> IListChannelMessagesPaginator ListChannelMessages(ListChannelMessagesRequest request); /// <summary> /// Paginator for ListChannelModerators operation ///</summary> IListChannelModeratorsPaginator ListChannelModerators(ListChannelModeratorsRequest request); /// <summary> /// Paginator for ListChannels operation ///</summary> IListChannelsPaginator ListChannels(ListChannelsRequest request); /// <summary> /// Paginator for ListChannelsModeratedByAppInstanceUser operation ///</summary> IListChannelsModeratedByAppInstanceUserPaginator ListChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest request); /// <summary> /// Paginator for ListMediaCapturePipelines operation ///</summary> IListMediaCapturePipelinesPaginator ListMediaCapturePipelines(ListMediaCapturePipelinesRequest request); /// <summary> /// Paginator for ListMeetings operation ///</summary> IListMeetingsPaginator ListMeetings(ListMeetingsRequest request); /// <summary> /// Paginator for ListPhoneNumberOrders operation ///</summary> IListPhoneNumberOrdersPaginator ListPhoneNumberOrders(ListPhoneNumberOrdersRequest request); /// <summary> /// Paginator for ListPhoneNumbers operation ///</summary> IListPhoneNumbersPaginator ListPhoneNumbers(ListPhoneNumbersRequest request); /// <summary> /// Paginator for ListProxySessions operation ///</summary> IListProxySessionsPaginator ListProxySessions(ListProxySessionsRequest request); /// <summary> /// Paginator for ListRoomMemberships operation ///</summary> IListRoomMembershipsPaginator ListRoomMemberships(ListRoomMembershipsRequest request); /// <summary> /// Paginator for ListRooms operation ///</summary> IListRoomsPaginator ListRooms(ListRoomsRequest request); /// <summary> /// Paginator for ListSipMediaApplications operation ///</summary> IListSipMediaApplicationsPaginator ListSipMediaApplications(ListSipMediaApplicationsRequest request); /// <summary> /// Paginator for ListSipRules operation ///</summary> IListSipRulesPaginator ListSipRules(ListSipRulesRequest request); /// <summary> /// Paginator for ListUsers operation ///</summary> IListUsersPaginator ListUsers(ListUsersRequest request); /// <summary> /// Paginator for ListVoiceConnectorGroups operation ///</summary> IListVoiceConnectorGroupsPaginator ListVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request); /// <summary> /// Paginator for ListVoiceConnectors operation ///</summary> IListVoiceConnectorsPaginator ListVoiceConnectors(ListVoiceConnectorsRequest request); /// <summary> /// Paginator for SearchAvailablePhoneNumbers operation ///</summary> ISearchAvailablePhoneNumbersPaginator SearchAvailablePhoneNumbers(SearchAvailablePhoneNumbersRequest request); } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListAccounts operation ///</summary> public interface IListAccountsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAccountsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListAppInstanceAdmins operation ///</summary> public interface IListAppInstanceAdminsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAppInstanceAdminsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListAppInstances operation ///</summary> public interface IListAppInstancesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAppInstancesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListAppInstanceUsers operation ///</summary> public interface IListAppInstanceUsersPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAppInstanceUsersResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListAttendees operation ///</summary> public interface IListAttendeesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAttendeesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListBots operation ///</summary> public interface IListBotsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListBotsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelBans operation ///</summary> public interface IListChannelBansPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelBansResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelMembershipsForAppInstanceUser operation ///</summary> public interface IListChannelMembershipsForAppInstanceUserPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelMembershipsForAppInstanceUserResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelMemberships operation ///</summary> public interface IListChannelMembershipsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelMembershipsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelMessages operation ///</summary> public interface IListChannelMessagesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelMessagesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelModerators operation ///</summary> public interface IListChannelModeratorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelModeratorsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannelsModeratedByAppInstanceUser operation ///</summary> public interface IListChannelsModeratedByAppInstanceUserPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelsModeratedByAppInstanceUserResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListChannels operation ///</summary> public interface IListChannelsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChannelsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListMediaCapturePipelines operation ///</summary> public interface IListMediaCapturePipelinesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListMediaCapturePipelinesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListMeetings operation ///</summary> public interface IListMeetingsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListMeetingsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListPhoneNumberOrders operation ///</summary> public interface IListPhoneNumberOrdersPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListPhoneNumberOrdersResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListPhoneNumbers operation ///</summary> public interface IListPhoneNumbersPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListPhoneNumbersResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListProxySessions operation ///</summary> public interface IListProxySessionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListProxySessionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListRoomMemberships operation ///</summary> public interface IListRoomMembershipsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListRoomMembershipsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListRooms operation ///</summary> public interface IListRoomsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListRoomsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListSipMediaApplications operation ///</summary> public interface IListSipMediaApplicationsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListSipMediaApplicationsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListSipRules operation ///</summary> public interface IListSipRulesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListSipRulesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListUsers operation ///</summary> public interface IListUsersPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListUsersResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListVoiceConnectorGroups operation ///</summary> public interface IListVoiceConnectorGroupsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListVoiceConnectorGroupsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the ListVoiceConnectors operation ///</summary> public interface IListVoiceConnectorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListVoiceConnectorsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Paginator for the SearchAvailablePhoneNumbers operation ///</summary> public interface ISearchAvailablePhoneNumbersPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<SearchAvailablePhoneNumbersResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListAccounts paginators. /// </summary> internal sealed partial class ListAccountsPaginator : IPaginator<ListAccountsResponse>, IListAccountsPaginator { private readonly IAmazonChime _client; private readonly ListAccountsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAccountsResponse> Responses => new PaginatedResponse<ListAccountsResponse>(this); internal ListAccountsPaginator(IAmazonChime client, ListAccountsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAccountsResponse> IPaginator<ListAccountsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAccountsResponse response; do { _request.NextToken = nextToken; response = _client.ListAccounts(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAccountsResponse> IPaginator<ListAccountsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAccountsResponse response; do { _request.NextToken = nextToken; response = await _client.ListAccountsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListAppInstanceAdmins paginators. /// </summary> internal sealed partial class ListAppInstanceAdminsPaginator : IPaginator<ListAppInstanceAdminsResponse>, IListAppInstanceAdminsPaginator { private readonly IAmazonChime _client; private readonly ListAppInstanceAdminsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAppInstanceAdminsResponse> Responses => new PaginatedResponse<ListAppInstanceAdminsResponse>(this); internal ListAppInstanceAdminsPaginator(IAmazonChime client, ListAppInstanceAdminsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAppInstanceAdminsResponse> IPaginator<ListAppInstanceAdminsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstanceAdminsResponse response; do { _request.NextToken = nextToken; response = _client.ListAppInstanceAdmins(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAppInstanceAdminsResponse> IPaginator<ListAppInstanceAdminsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstanceAdminsResponse response; do { _request.NextToken = nextToken; response = await _client.ListAppInstanceAdminsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListAppInstances paginators. /// </summary> internal sealed partial class ListAppInstancesPaginator : IPaginator<ListAppInstancesResponse>, IListAppInstancesPaginator { private readonly IAmazonChime _client; private readonly ListAppInstancesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAppInstancesResponse> Responses => new PaginatedResponse<ListAppInstancesResponse>(this); internal ListAppInstancesPaginator(IAmazonChime client, ListAppInstancesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAppInstancesResponse> IPaginator<ListAppInstancesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstancesResponse response; do { _request.NextToken = nextToken; response = _client.ListAppInstances(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAppInstancesResponse> IPaginator<ListAppInstancesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstancesResponse response; do { _request.NextToken = nextToken; response = await _client.ListAppInstancesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListAppInstanceUsers paginators. /// </summary> internal sealed partial class ListAppInstanceUsersPaginator : IPaginator<ListAppInstanceUsersResponse>, IListAppInstanceUsersPaginator { private readonly IAmazonChime _client; private readonly ListAppInstanceUsersRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAppInstanceUsersResponse> Responses => new PaginatedResponse<ListAppInstanceUsersResponse>(this); internal ListAppInstanceUsersPaginator(IAmazonChime client, ListAppInstanceUsersRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAppInstanceUsersResponse> IPaginator<ListAppInstanceUsersResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstanceUsersResponse response; do { _request.NextToken = nextToken; response = _client.ListAppInstanceUsers(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAppInstanceUsersResponse> IPaginator<ListAppInstanceUsersResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAppInstanceUsersResponse response; do { _request.NextToken = nextToken; response = await _client.ListAppInstanceUsersAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListAttendees paginators. /// </summary> internal sealed partial class ListAttendeesPaginator : IPaginator<ListAttendeesResponse>, IListAttendeesPaginator { private readonly IAmazonChime _client; private readonly ListAttendeesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAttendeesResponse> Responses => new PaginatedResponse<ListAttendeesResponse>(this); internal ListAttendeesPaginator(IAmazonChime client, ListAttendeesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAttendeesResponse> IPaginator<ListAttendeesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAttendeesResponse response; do { _request.NextToken = nextToken; response = _client.ListAttendees(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAttendeesResponse> IPaginator<ListAttendeesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListAttendeesResponse response; do { _request.NextToken = nextToken; response = await _client.ListAttendeesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListBots paginators. /// </summary> internal sealed partial class ListBotsPaginator : IPaginator<ListBotsResponse>, IListBotsPaginator { private readonly IAmazonChime _client; private readonly ListBotsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListBotsResponse> Responses => new PaginatedResponse<ListBotsResponse>(this); internal ListBotsPaginator(IAmazonChime client, ListBotsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListBotsResponse> IPaginator<ListBotsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListBotsResponse response; do { _request.NextToken = nextToken; response = _client.ListBots(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListBotsResponse> IPaginator<ListBotsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListBotsResponse response; do { _request.NextToken = nextToken; response = await _client.ListBotsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelBans paginators. /// </summary> internal sealed partial class ListChannelBansPaginator : IPaginator<ListChannelBansResponse>, IListChannelBansPaginator { private readonly IAmazonChime _client; private readonly ListChannelBansRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelBansResponse> Responses => new PaginatedResponse<ListChannelBansResponse>(this); internal ListChannelBansPaginator(IAmazonChime client, ListChannelBansRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelBansResponse> IPaginator<ListChannelBansResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelBansResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelBans(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelBansResponse> IPaginator<ListChannelBansResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelBansResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelBansAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelMembershipsForAppInstanceUser paginators. /// </summary> internal sealed partial class ListChannelMembershipsForAppInstanceUserPaginator : IPaginator<ListChannelMembershipsForAppInstanceUserResponse>, IListChannelMembershipsForAppInstanceUserPaginator { private readonly IAmazonChime _client; private readonly ListChannelMembershipsForAppInstanceUserRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelMembershipsForAppInstanceUserResponse> Responses => new PaginatedResponse<ListChannelMembershipsForAppInstanceUserResponse>(this); internal ListChannelMembershipsForAppInstanceUserPaginator(IAmazonChime client, ListChannelMembershipsForAppInstanceUserRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelMembershipsForAppInstanceUserResponse> IPaginator<ListChannelMembershipsForAppInstanceUserResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMembershipsForAppInstanceUserResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelMembershipsForAppInstanceUser(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelMembershipsForAppInstanceUserResponse> IPaginator<ListChannelMembershipsForAppInstanceUserResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMembershipsForAppInstanceUserResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelMembershipsForAppInstanceUserAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelMemberships paginators. /// </summary> internal sealed partial class ListChannelMembershipsPaginator : IPaginator<ListChannelMembershipsResponse>, IListChannelMembershipsPaginator { private readonly IAmazonChime _client; private readonly ListChannelMembershipsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelMembershipsResponse> Responses => new PaginatedResponse<ListChannelMembershipsResponse>(this); internal ListChannelMembershipsPaginator(IAmazonChime client, ListChannelMembershipsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelMembershipsResponse> IPaginator<ListChannelMembershipsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMembershipsResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelMemberships(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelMembershipsResponse> IPaginator<ListChannelMembershipsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMembershipsResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelMembershipsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelMessages paginators. /// </summary> internal sealed partial class ListChannelMessagesPaginator : IPaginator<ListChannelMessagesResponse>, IListChannelMessagesPaginator { private readonly IAmazonChime _client; private readonly ListChannelMessagesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelMessagesResponse> Responses => new PaginatedResponse<ListChannelMessagesResponse>(this); internal ListChannelMessagesPaginator(IAmazonChime client, ListChannelMessagesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelMessagesResponse> IPaginator<ListChannelMessagesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMessagesResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelMessages(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelMessagesResponse> IPaginator<ListChannelMessagesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelMessagesResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelMessagesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelModerators paginators. /// </summary> internal sealed partial class ListChannelModeratorsPaginator : IPaginator<ListChannelModeratorsResponse>, IListChannelModeratorsPaginator { private readonly IAmazonChime _client; private readonly ListChannelModeratorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelModeratorsResponse> Responses => new PaginatedResponse<ListChannelModeratorsResponse>(this); internal ListChannelModeratorsPaginator(IAmazonChime client, ListChannelModeratorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelModeratorsResponse> IPaginator<ListChannelModeratorsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelModeratorsResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelModerators(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelModeratorsResponse> IPaginator<ListChannelModeratorsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelModeratorsResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelModeratorsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannelsModeratedByAppInstanceUser paginators. /// </summary> internal sealed partial class ListChannelsModeratedByAppInstanceUserPaginator : IPaginator<ListChannelsModeratedByAppInstanceUserResponse>, IListChannelsModeratedByAppInstanceUserPaginator { private readonly IAmazonChime _client; private readonly ListChannelsModeratedByAppInstanceUserRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelsModeratedByAppInstanceUserResponse> Responses => new PaginatedResponse<ListChannelsModeratedByAppInstanceUserResponse>(this); internal ListChannelsModeratedByAppInstanceUserPaginator(IAmazonChime client, ListChannelsModeratedByAppInstanceUserRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelsModeratedByAppInstanceUserResponse> IPaginator<ListChannelsModeratedByAppInstanceUserResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelsModeratedByAppInstanceUserResponse response; do { _request.NextToken = nextToken; response = _client.ListChannelsModeratedByAppInstanceUser(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelsModeratedByAppInstanceUserResponse> IPaginator<ListChannelsModeratedByAppInstanceUserResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelsModeratedByAppInstanceUserResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelsModeratedByAppInstanceUserAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListChannels paginators. /// </summary> internal sealed partial class ListChannelsPaginator : IPaginator<ListChannelsResponse>, IListChannelsPaginator { private readonly IAmazonChime _client; private readonly ListChannelsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChannelsResponse> Responses => new PaginatedResponse<ListChannelsResponse>(this); internal ListChannelsPaginator(IAmazonChime client, ListChannelsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChannelsResponse> IPaginator<ListChannelsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelsResponse response; do { _request.NextToken = nextToken; response = _client.ListChannels(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChannelsResponse> IPaginator<ListChannelsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChannelsResponse response; do { _request.NextToken = nextToken; response = await _client.ListChannelsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListMediaCapturePipelines paginators. /// </summary> internal sealed partial class ListMediaCapturePipelinesPaginator : IPaginator<ListMediaCapturePipelinesResponse>, IListMediaCapturePipelinesPaginator { private readonly IAmazonChime _client; private readonly ListMediaCapturePipelinesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListMediaCapturePipelinesResponse> Responses => new PaginatedResponse<ListMediaCapturePipelinesResponse>(this); internal ListMediaCapturePipelinesPaginator(IAmazonChime client, ListMediaCapturePipelinesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListMediaCapturePipelinesResponse> IPaginator<ListMediaCapturePipelinesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListMediaCapturePipelinesResponse response; do { _request.NextToken = nextToken; response = _client.ListMediaCapturePipelines(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListMediaCapturePipelinesResponse> IPaginator<ListMediaCapturePipelinesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListMediaCapturePipelinesResponse response; do { _request.NextToken = nextToken; response = await _client.ListMediaCapturePipelinesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListMeetings paginators. /// </summary> internal sealed partial class ListMeetingsPaginator : IPaginator<ListMeetingsResponse>, IListMeetingsPaginator { private readonly IAmazonChime _client; private readonly ListMeetingsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListMeetingsResponse> Responses => new PaginatedResponse<ListMeetingsResponse>(this); internal ListMeetingsPaginator(IAmazonChime client, ListMeetingsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListMeetingsResponse> IPaginator<ListMeetingsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListMeetingsResponse response; do { _request.NextToken = nextToken; response = _client.ListMeetings(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListMeetingsResponse> IPaginator<ListMeetingsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListMeetingsResponse response; do { _request.NextToken = nextToken; response = await _client.ListMeetingsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListPhoneNumberOrders paginators. /// </summary> internal sealed partial class ListPhoneNumberOrdersPaginator : IPaginator<ListPhoneNumberOrdersResponse>, IListPhoneNumberOrdersPaginator { private readonly IAmazonChime _client; private readonly ListPhoneNumberOrdersRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPhoneNumberOrdersResponse> Responses => new PaginatedResponse<ListPhoneNumberOrdersResponse>(this); internal ListPhoneNumberOrdersPaginator(IAmazonChime client, ListPhoneNumberOrdersRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPhoneNumberOrdersResponse> IPaginator<ListPhoneNumberOrdersResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPhoneNumberOrdersResponse response; do { _request.NextToken = nextToken; response = _client.ListPhoneNumberOrders(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPhoneNumberOrdersResponse> IPaginator<ListPhoneNumberOrdersResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPhoneNumberOrdersResponse response; do { _request.NextToken = nextToken; response = await _client.ListPhoneNumberOrdersAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListPhoneNumbers paginators. /// </summary> internal sealed partial class ListPhoneNumbersPaginator : IPaginator<ListPhoneNumbersResponse>, IListPhoneNumbersPaginator { private readonly IAmazonChime _client; private readonly ListPhoneNumbersRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPhoneNumbersResponse> Responses => new PaginatedResponse<ListPhoneNumbersResponse>(this); internal ListPhoneNumbersPaginator(IAmazonChime client, ListPhoneNumbersRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPhoneNumbersResponse> IPaginator<ListPhoneNumbersResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPhoneNumbersResponse response; do { _request.NextToken = nextToken; response = _client.ListPhoneNumbers(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPhoneNumbersResponse> IPaginator<ListPhoneNumbersResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPhoneNumbersResponse response; do { _request.NextToken = nextToken; response = await _client.ListPhoneNumbersAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListProxySessions paginators. /// </summary> internal sealed partial class ListProxySessionsPaginator : IPaginator<ListProxySessionsResponse>, IListProxySessionsPaginator { private readonly IAmazonChime _client; private readonly ListProxySessionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListProxySessionsResponse> Responses => new PaginatedResponse<ListProxySessionsResponse>(this); internal ListProxySessionsPaginator(IAmazonChime client, ListProxySessionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListProxySessionsResponse> IPaginator<ListProxySessionsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListProxySessionsResponse response; do { _request.NextToken = nextToken; response = _client.ListProxySessions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListProxySessionsResponse> IPaginator<ListProxySessionsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListProxySessionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListProxySessionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListRoomMemberships paginators. /// </summary> internal sealed partial class ListRoomMembershipsPaginator : IPaginator<ListRoomMembershipsResponse>, IListRoomMembershipsPaginator { private readonly IAmazonChime _client; private readonly ListRoomMembershipsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListRoomMembershipsResponse> Responses => new PaginatedResponse<ListRoomMembershipsResponse>(this); internal ListRoomMembershipsPaginator(IAmazonChime client, ListRoomMembershipsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListRoomMembershipsResponse> IPaginator<ListRoomMembershipsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListRoomMembershipsResponse response; do { _request.NextToken = nextToken; response = _client.ListRoomMemberships(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListRoomMembershipsResponse> IPaginator<ListRoomMembershipsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListRoomMembershipsResponse response; do { _request.NextToken = nextToken; response = await _client.ListRoomMembershipsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListRooms paginators. /// </summary> internal sealed partial class ListRoomsPaginator : IPaginator<ListRoomsResponse>, IListRoomsPaginator { private readonly IAmazonChime _client; private readonly ListRoomsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListRoomsResponse> Responses => new PaginatedResponse<ListRoomsResponse>(this); internal ListRoomsPaginator(IAmazonChime client, ListRoomsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListRoomsResponse> IPaginator<ListRoomsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListRoomsResponse response; do { _request.NextToken = nextToken; response = _client.ListRooms(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListRoomsResponse> IPaginator<ListRoomsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListRoomsResponse response; do { _request.NextToken = nextToken; response = await _client.ListRoomsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListSipMediaApplications paginators. /// </summary> internal sealed partial class ListSipMediaApplicationsPaginator : IPaginator<ListSipMediaApplicationsResponse>, IListSipMediaApplicationsPaginator { private readonly IAmazonChime _client; private readonly ListSipMediaApplicationsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListSipMediaApplicationsResponse> Responses => new PaginatedResponse<ListSipMediaApplicationsResponse>(this); internal ListSipMediaApplicationsPaginator(IAmazonChime client, ListSipMediaApplicationsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListSipMediaApplicationsResponse> IPaginator<ListSipMediaApplicationsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListSipMediaApplicationsResponse response; do { _request.NextToken = nextToken; response = _client.ListSipMediaApplications(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListSipMediaApplicationsResponse> IPaginator<ListSipMediaApplicationsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListSipMediaApplicationsResponse response; do { _request.NextToken = nextToken; response = await _client.ListSipMediaApplicationsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListSipRules paginators. /// </summary> internal sealed partial class ListSipRulesPaginator : IPaginator<ListSipRulesResponse>, IListSipRulesPaginator { private readonly IAmazonChime _client; private readonly ListSipRulesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListSipRulesResponse> Responses => new PaginatedResponse<ListSipRulesResponse>(this); internal ListSipRulesPaginator(IAmazonChime client, ListSipRulesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListSipRulesResponse> IPaginator<ListSipRulesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListSipRulesResponse response; do { _request.NextToken = nextToken; response = _client.ListSipRules(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListSipRulesResponse> IPaginator<ListSipRulesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListSipRulesResponse response; do { _request.NextToken = nextToken; response = await _client.ListSipRulesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListUsers paginators. /// </summary> internal sealed partial class ListUsersPaginator : IPaginator<ListUsersResponse>, IListUsersPaginator { private readonly IAmazonChime _client; private readonly ListUsersRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListUsersResponse> Responses => new PaginatedResponse<ListUsersResponse>(this); internal ListUsersPaginator(IAmazonChime client, ListUsersRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListUsersResponse> IPaginator<ListUsersResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListUsersResponse response; do { _request.NextToken = nextToken; response = _client.ListUsers(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListUsersResponse> IPaginator<ListUsersResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListUsersResponse response; do { _request.NextToken = nextToken; response = await _client.ListUsersAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListVoiceConnectorGroups paginators. /// </summary> internal sealed partial class ListVoiceConnectorGroupsPaginator : IPaginator<ListVoiceConnectorGroupsResponse>, IListVoiceConnectorGroupsPaginator { private readonly IAmazonChime _client; private readonly ListVoiceConnectorGroupsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListVoiceConnectorGroupsResponse> Responses => new PaginatedResponse<ListVoiceConnectorGroupsResponse>(this); internal ListVoiceConnectorGroupsPaginator(IAmazonChime client, ListVoiceConnectorGroupsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListVoiceConnectorGroupsResponse> IPaginator<ListVoiceConnectorGroupsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVoiceConnectorGroupsResponse response; do { _request.NextToken = nextToken; response = _client.ListVoiceConnectorGroups(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListVoiceConnectorGroupsResponse> IPaginator<ListVoiceConnectorGroupsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVoiceConnectorGroupsResponse response; do { _request.NextToken = nextToken; response = await _client.ListVoiceConnectorGroupsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for ListVoiceConnectors paginators. /// </summary> internal sealed partial class ListVoiceConnectorsPaginator : IPaginator<ListVoiceConnectorsResponse>, IListVoiceConnectorsPaginator { private readonly IAmazonChime _client; private readonly ListVoiceConnectorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListVoiceConnectorsResponse> Responses => new PaginatedResponse<ListVoiceConnectorsResponse>(this); internal ListVoiceConnectorsPaginator(IAmazonChime client, ListVoiceConnectorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListVoiceConnectorsResponse> IPaginator<ListVoiceConnectorsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVoiceConnectorsResponse response; do { _request.NextToken = nextToken; response = _client.ListVoiceConnectors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListVoiceConnectorsResponse> IPaginator<ListVoiceConnectorsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVoiceConnectorsResponse response; do { _request.NextToken = nextToken; response = await _client.ListVoiceConnectorsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Chime.Model { /// <summary> /// Base class for SearchAvailablePhoneNumbers paginators. /// </summary> internal sealed partial class SearchAvailablePhoneNumbersPaginator : IPaginator<SearchAvailablePhoneNumbersResponse>, ISearchAvailablePhoneNumbersPaginator { private readonly IAmazonChime _client; private readonly SearchAvailablePhoneNumbersRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<SearchAvailablePhoneNumbersResponse> Responses => new PaginatedResponse<SearchAvailablePhoneNumbersResponse>(this); internal SearchAvailablePhoneNumbersPaginator(IAmazonChime client, SearchAvailablePhoneNumbersRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<SearchAvailablePhoneNumbersResponse> IPaginator<SearchAvailablePhoneNumbersResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchAvailablePhoneNumbersResponse response; do { _request.NextToken = nextToken; response = _client.SearchAvailablePhoneNumbers(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<SearchAvailablePhoneNumbersResponse> IPaginator<SearchAvailablePhoneNumbersResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchAvailablePhoneNumbersResponse response; do { _request.NextToken = nextToken; response = await _client.SearchAvailablePhoneNumbersAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.Chime")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Chime. The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon Chime. The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon Chime. The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon Chime. The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.102.0")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.ChimeSDKIdentity.Internal; namespace Amazon.ChimeSDKIdentity { /// <summary> /// Configuration for accessing Amazon ChimeSDKIdentity service /// </summary> [AWSSignerType("v4")] public partial class AmazonChimeSDKIdentityConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.102.0"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonChimeSDKIdentityConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonChimeSDKIdentityDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "chime"; this.EndpointProvider = new AmazonChimeSDKIdentityEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "identity-chime"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2021-04-20"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.ChimeSDKIdentity { /// <summary> /// Configuration for accessing Amazon ChimeSDKIdentity service /// </summary> public static class AmazonChimeSDKIdentityDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// ChimeSDKIdentity /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.ChimeSDKIdentity.Endpoints { /// <summary> /// Contains parameters used for resolving ChimeSDKIdentity endpoints /// Parameters can be sourced from client config and service operations /// Used by internal ChimeSDKIdentityEndpointProvider and ChimeSDKIdentityEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class ChimeSDKIdentityEndpointParameters : EndpointParameters { /// <summary> /// ChimeSDKIdentityEndpointParameters constructor /// </summary> public ChimeSDKIdentityEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
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.Net; using System.Text; using Amazon.Runtime; namespace Amazon.ChimeSDKIdentity { ///<summary> /// Common exception for the ChimeSDKIdentity service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonChimeSDKIdentityException : AmazonServiceException { /// <summary> /// Construct instance of AmazonChimeSDKIdentityException /// </summary> /// <param name="message"></param> public AmazonChimeSDKIdentityException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonChimeSDKIdentityException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonChimeSDKIdentityException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonChimeSDKIdentityException /// </summary> /// <param name="innerException"></param> public AmazonChimeSDKIdentityException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonChimeSDKIdentityException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonChimeSDKIdentityException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonChimeSDKIdentityException /// </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 AmazonChimeSDKIdentityException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonChimeSDKIdentityException 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 AmazonChimeSDKIdentityException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 Amazon.Runtime; namespace Amazon.ChimeSDKIdentity { /// <summary> /// Constants used for properties of type AllowMessages. /// </summary> public class AllowMessages : ConstantClass { /// <summary> /// Constant ALL for AllowMessages /// </summary> public static readonly AllowMessages ALL = new AllowMessages("ALL"); /// <summary> /// Constant NONE for AllowMessages /// </summary> public static readonly AllowMessages NONE = new AllowMessages("NONE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AllowMessages(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AllowMessages FindValue(string value) { return FindValue<AllowMessages>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AllowMessages(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AppInstanceUserEndpointType. /// </summary> public class AppInstanceUserEndpointType : ConstantClass { /// <summary> /// Constant APNS for AppInstanceUserEndpointType /// </summary> public static readonly AppInstanceUserEndpointType APNS = new AppInstanceUserEndpointType("APNS"); /// <summary> /// Constant APNS_SANDBOX for AppInstanceUserEndpointType /// </summary> public static readonly AppInstanceUserEndpointType APNS_SANDBOX = new AppInstanceUserEndpointType("APNS_SANDBOX"); /// <summary> /// Constant GCM for AppInstanceUserEndpointType /// </summary> public static readonly AppInstanceUserEndpointType GCM = new AppInstanceUserEndpointType("GCM"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AppInstanceUserEndpointType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AppInstanceUserEndpointType FindValue(string value) { return FindValue<AppInstanceUserEndpointType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AppInstanceUserEndpointType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EndpointStatus. /// </summary> public class EndpointStatus : ConstantClass { /// <summary> /// Constant ACTIVE for EndpointStatus /// </summary> public static readonly EndpointStatus ACTIVE = new EndpointStatus("ACTIVE"); /// <summary> /// Constant INACTIVE for EndpointStatus /// </summary> public static readonly EndpointStatus INACTIVE = new EndpointStatus("INACTIVE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EndpointStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static EndpointStatus FindValue(string value) { return FindValue<EndpointStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator EndpointStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EndpointStatusReason. /// </summary> public class EndpointStatusReason : ConstantClass { /// <summary> /// Constant INVALID_DEVICE_TOKEN for EndpointStatusReason /// </summary> public static readonly EndpointStatusReason INVALID_DEVICE_TOKEN = new EndpointStatusReason("INVALID_DEVICE_TOKEN"); /// <summary> /// Constant INVALID_PINPOINT_ARN for EndpointStatusReason /// </summary> public static readonly EndpointStatusReason INVALID_PINPOINT_ARN = new EndpointStatusReason("INVALID_PINPOINT_ARN"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EndpointStatusReason(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static EndpointStatusReason FindValue(string value) { return FindValue<EndpointStatusReason>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator EndpointStatusReason(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ErrorCode. /// </summary> public class ErrorCode : ConstantClass { /// <summary> /// Constant AccessDenied for ErrorCode /// </summary> public static readonly ErrorCode AccessDenied = new ErrorCode("AccessDenied"); /// <summary> /// Constant BadRequest for ErrorCode /// </summary> public static readonly ErrorCode BadRequest = new ErrorCode("BadRequest"); /// <summary> /// Constant Conflict for ErrorCode /// </summary> public static readonly ErrorCode Conflict = new ErrorCode("Conflict"); /// <summary> /// Constant Forbidden for ErrorCode /// </summary> public static readonly ErrorCode Forbidden = new ErrorCode("Forbidden"); /// <summary> /// Constant NotFound for ErrorCode /// </summary> public static readonly ErrorCode NotFound = new ErrorCode("NotFound"); /// <summary> /// Constant PhoneNumberAssociationsExist for ErrorCode /// </summary> public static readonly ErrorCode PhoneNumberAssociationsExist = new ErrorCode("PhoneNumberAssociationsExist"); /// <summary> /// Constant PreconditionFailed for ErrorCode /// </summary> public static readonly ErrorCode PreconditionFailed = new ErrorCode("PreconditionFailed"); /// <summary> /// Constant ResourceLimitExceeded for ErrorCode /// </summary> public static readonly ErrorCode ResourceLimitExceeded = new ErrorCode("ResourceLimitExceeded"); /// <summary> /// Constant ServiceFailure for ErrorCode /// </summary> public static readonly ErrorCode ServiceFailure = new ErrorCode("ServiceFailure"); /// <summary> /// Constant ServiceUnavailable for ErrorCode /// </summary> public static readonly ErrorCode ServiceUnavailable = new ErrorCode("ServiceUnavailable"); /// <summary> /// Constant Throttled for ErrorCode /// </summary> public static readonly ErrorCode Throttled = new ErrorCode("Throttled"); /// <summary> /// Constant Throttling for ErrorCode /// </summary> public static readonly ErrorCode Throttling = new ErrorCode("Throttling"); /// <summary> /// Constant Unauthorized for ErrorCode /// </summary> public static readonly ErrorCode Unauthorized = new ErrorCode("Unauthorized"); /// <summary> /// Constant Unprocessable for ErrorCode /// </summary> public static readonly ErrorCode Unprocessable = new ErrorCode("Unprocessable"); /// <summary> /// Constant VoiceConnectorGroupAssociationsExist for ErrorCode /// </summary> public static readonly ErrorCode VoiceConnectorGroupAssociationsExist = new ErrorCode("VoiceConnectorGroupAssociationsExist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ErrorCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ErrorCode FindValue(string value) { return FindValue<ErrorCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ErrorCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ExpirationCriterion. /// </summary> public class ExpirationCriterion : ConstantClass { /// <summary> /// Constant CREATED_TIMESTAMP for ExpirationCriterion /// </summary> public static readonly ExpirationCriterion CREATED_TIMESTAMP = new ExpirationCriterion("CREATED_TIMESTAMP"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ExpirationCriterion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ExpirationCriterion FindValue(string value) { return FindValue<ExpirationCriterion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ExpirationCriterion(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RespondsTo. /// </summary> public class RespondsTo : ConstantClass { /// <summary> /// Constant STANDARD_MESSAGES for RespondsTo /// </summary> public static readonly RespondsTo STANDARD_MESSAGES = new RespondsTo("STANDARD_MESSAGES"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public RespondsTo(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static RespondsTo FindValue(string value) { return FindValue<RespondsTo>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator RespondsTo(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StandardMessages. /// </summary> public class StandardMessages : ConstantClass { /// <summary> /// Constant ALL for StandardMessages /// </summary> public static readonly StandardMessages ALL = new StandardMessages("ALL"); /// <summary> /// Constant AUTO for StandardMessages /// </summary> public static readonly StandardMessages AUTO = new StandardMessages("AUTO"); /// <summary> /// Constant MENTIONS for StandardMessages /// </summary> public static readonly StandardMessages MENTIONS = new StandardMessages("MENTIONS"); /// <summary> /// Constant NONE for StandardMessages /// </summary> public static readonly StandardMessages NONE = new StandardMessages("NONE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public StandardMessages(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static StandardMessages FindValue(string value) { return FindValue<StandardMessages>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator StandardMessages(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TargetedMessages. /// </summary> public class TargetedMessages : ConstantClass { /// <summary> /// Constant ALL for TargetedMessages /// </summary> public static readonly TargetedMessages ALL = new TargetedMessages("ALL"); /// <summary> /// Constant NONE for TargetedMessages /// </summary> public static readonly TargetedMessages NONE = new TargetedMessages("NONE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TargetedMessages(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TargetedMessages FindValue(string value) { return FindValue<TargetedMessages>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TargetedMessages(string value) { return FindValue(value); } } }
532
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.ChimeSDKIdentity.Internal { /// <summary> /// Amazon ChimeSDKIdentity endpoint provider. /// Resolves endpoint for given set of ChimeSDKIdentityEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonChimeSDKIdentityEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for ChimeSDKIdentityEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://identity-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://identity-chime-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://identity-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://identity-chime.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 Amazon.ChimeSDKIdentity.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.ChimeSDKIdentity.Endpoints; #pragma warning disable 1591 namespace Amazon.ChimeSDKIdentity.Internal { /// <summary> /// Amazon ChimeSDKIdentity endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ChimeSDKIdentity service requests. /// Collects values for ChimeSDKIdentityEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ChimeSDKIdentityEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonChimeSDKIdentityEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonChimeSDKIdentityConfig)requestContext.ClientConfig; var result = new ChimeSDKIdentityEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.ChimeSDKIdentity.Internal { /// <summary> /// Service metadata for Amazon ChimeSDKIdentity service /// </summary> public partial class AmazonChimeSDKIdentityMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Chime SDK Identity"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 Amazon.Runtime; namespace Amazon.ChimeSDKIdentity { /// <summary> /// Base class for ChimeSDKIdentity operation requests. /// </summary> public partial class AmazonChimeSDKIdentityRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 an <code>AppInstance</code>, an instance of an Amazon Chime SDK messaging /// application. /// </summary> public partial class AppInstance { private string _appInstanceArn; private DateTime? _createdTimestamp; private DateTime? _lastUpdatedTimestamp; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the messaging instance. /// </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 CreatedTimestamp. /// <para> /// The time at which an <code>AppInstance</code> was created. In epoch milliseconds. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property LastUpdatedTimestamp. /// <para> /// The time an <code>AppInstance</code> was last updated. In epoch milliseconds. /// </para> /// </summary> public DateTime LastUpdatedTimestamp { get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } set { this._lastUpdatedTimestamp = value; } } // Check to see if LastUpdatedTimestamp property is set internal bool IsSetLastUpdatedTimestamp() { return this._lastUpdatedTimestamp.HasValue; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata of an <code>AppInstance</code>. /// </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 an <code>AppInstance</code>. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 name and ARN of the admin for the <code>AppInstance</code>. /// </summary> public partial class AppInstanceAdmin { private Identity _admin; private string _appInstanceArn; private DateTime? _createdTimestamp; /// <summary> /// Gets and sets the property Admin. /// <para> /// The <code>AppInstanceAdmin</code> data. /// </para> /// </summary> public Identity Admin { get { return this._admin; } set { this._admin = value; } } // Check to see if Admin property is set internal bool IsSetAdmin() { return this._admin != null; } /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the <code>AppInstance</code> for which the user is an administrator. /// </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 CreatedTimestamp. /// <para> /// The time at which an administrator was created. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-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> /// Summary of the details of an <code>AppInstanceAdmin</code>. /// </summary> public partial class AppInstanceAdminSummary { private Identity _admin; /// <summary> /// Gets and sets the property Admin. /// <para> /// The details of the <code>AppInstanceAdmin</code>. /// </para> /// </summary> public Identity Admin { get { return this._admin; } set { this._admin = value; } } // Check to see if Admin property is set internal bool IsSetAdmin() { return this._admin != 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> /// An Amazon Lex V2 chat bot created under an <code>AppInstance</code>. /// </summary> public partial class AppInstanceBot { private string _appInstanceBotArn; private Configuration _configuration; private DateTime? _createdTimestamp; private DateTime? _lastUpdatedTimestamp; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the AppInstanceBot. /// </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; } /// <summary> /// Gets and sets the property Configuration. /// <para> /// The data processing instructions for an AppInstanceBot. /// </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 CreatedTimestamp. /// <para> /// The time at which the <code>AppInstanceBot</code> was created. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property LastUpdatedTimestamp. /// <para> /// The time at which the <code>AppInstanceBot</code> was last updated. /// </para> /// </summary> public DateTime LastUpdatedTimestamp { get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } set { this._lastUpdatedTimestamp = value; } } // Check to see if LastUpdatedTimestamp property is set internal bool IsSetLastUpdatedTimestamp() { return this._lastUpdatedTimestamp.HasValue; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata for an AppInstanceBot. /// </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 AppInstanceBot. /// </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; } } }
155
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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> /// High-level information about an AppInstanceBot. /// </summary> public partial class AppInstanceBotSummary { private string _appInstanceBotArn; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceBotArn. /// <para> /// The ARN of the AppInstanceBot. /// </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; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata of the AppInstanceBot. /// </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 AppInstanceBox. /// </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; } } }
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> /// The details of the data-retention settings for an <code>AppInstance</code>. /// </summary> public partial class AppInstanceRetentionSettings { private ChannelRetentionSettings _channelRetentionSettings; /// <summary> /// Gets and sets the property ChannelRetentionSettings. /// <para> /// The length of time in days to retain the messages in a channel. /// </para> /// </summary> public ChannelRetentionSettings ChannelRetentionSettings { get { return this._channelRetentionSettings; } set { this._channelRetentionSettings = value; } } // Check to see if ChannelRetentionSettings property is set internal bool IsSetChannelRetentionSettings() { return this._channelRetentionSettings != 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> /// Summary of the data for an <code>AppInstance</code>. /// </summary> public partial class AppInstanceSummary { private string _appInstanceArn; private string _metadata; private string _name; /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The <code>AppInstance</code> ARN. /// </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 Metadata. /// <para> /// The metadata of the <code>AppInstance</code>. /// </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(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; } } }
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> /// The details of an <code>AppInstanceUser</code>. /// </summary> public partial class AppInstanceUser { private string _appInstanceUserArn; private DateTime? _createdTimestamp; private ExpirationSettings _expirationSettings; private DateTime? _lastUpdatedTimestamp; private string _metadata; private string _name; /// <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 CreatedTimestamp. /// <para> /// The time at which the <code>AppInstanceUser</code> was created. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property ExpirationSettings. /// <para> /// 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; } /// <summary> /// Gets and sets the property LastUpdatedTimestamp. /// <para> /// The time at which the <code>AppInstanceUser</code> was last updated. /// </para> /// </summary> public DateTime LastUpdatedTimestamp { get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } set { this._lastUpdatedTimestamp = value; } } // Check to see if LastUpdatedTimestamp property is set internal bool IsSetLastUpdatedTimestamp() { return this._lastUpdatedTimestamp.HasValue; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata of the <code>AppInstanceUser</code>. /// </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>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(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; } } }
155
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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> /// An endpoint under an Amazon Chime <code>AppInstanceUser</code> that 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 AppInstanceUserEndpoint { private AllowMessages _allowMessages; private string _appInstanceUserArn; private DateTime? _createdTimestamp; private EndpointAttributes _endpointAttributes; private string _endpointId; private EndpointState _endpointState; private DateTime? _lastUpdatedTimestamp; private string _name; private string _resourceArn; private AppInstanceUserEndpointType _type; /// <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(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 CreatedTimestamp. /// <para> /// The time at which an <code>AppInstanceUserEndpoint</code> was created. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property EndpointAttributes. /// <para> /// The attributes of an <code>Endpoint</code>. /// </para> /// </summary> 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 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; } /// <summary> /// Gets and sets the property EndpointState. /// <para> /// A read-only field that represents the state of an <code>AppInstanceUserEndpoint</code>. /// Supported values: /// </para> /// <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 <code>INACTIVE</code>, the corresponding reason will be conveyed /// through <code>EndpointStatusReason</code>. /// </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 EndpointState EndpointState { get { return this._endpointState; } set { this._endpointState = value; } } // Check to see if EndpointState property is set internal bool IsSetEndpointState() { return this._endpointState != null; } /// <summary> /// Gets and sets the property LastUpdatedTimestamp. /// <para> /// The time at which an <code>AppInstanceUserEndpoint</code> was last updated. /// </para> /// </summary> public DateTime LastUpdatedTimestamp { get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } set { this._lastUpdatedTimestamp = value; } } // Check to see if LastUpdatedTimestamp property is set internal bool IsSetLastUpdatedTimestamp() { return this._lastUpdatedTimestamp.HasValue; } /// <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(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>. /// </para> /// </summary> 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; } } }
261
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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> /// Summary of the details of an <code>AppInstanceUserEndpoint</code>. /// </summary> public partial class AppInstanceUserEndpointSummary { private AllowMessages _allowMessages; private string _appInstanceUserArn; private string _endpointId; private EndpointState _endpointState; private string _name; private AppInstanceUserEndpointType _type; /// <summary> /// Gets and sets the property AllowMessages. /// <para> /// BBoolean 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(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; } /// <summary> /// Gets and sets the property EndpointState. /// <para> /// A read-only field that represent the state of an <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> public EndpointState EndpointState { get { return this._endpointState; } set { this._endpointState = value; } } // Check to see if EndpointState property is set internal bool IsSetEndpointState() { return this._endpointState != 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 Type. /// <para> /// The type of the <code>AppInstanceUserEndpoint</code>. /// </para> /// </summary> 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; } } }
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.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ChimeSDKIdentity.Model { /// <summary> /// Summary of the details of an <code>AppInstanceUser</code>. /// </summary> public partial class AppInstanceUserSummary { 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(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(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 an <code>AppInstanceUser</code>. /// </para> /// </summary> [AWSProperty(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; } } }
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> /// The input parameters don't match the service's restrictions. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class BadRequestException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new BadRequestException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public BadRequestException(string message) : base(message) {} /// <summary> /// Construct instance of BadRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public BadRequestException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of BadRequestException /// </summary> /// <param name="innerException"></param> public BadRequestException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of BadRequestException /// </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 BadRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of BadRequestException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public BadRequestException(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 BadRequestException 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 BadRequestException(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 details of the retention settings for a channel. /// </summary> public partial class ChannelRetentionSettings { private int? _retentionDays; /// <summary> /// Gets and sets the property RetentionDays. /// <para> /// The time in days to retain the messages in a channel. /// </para> /// </summary> [AWSProperty(Min=1, Max=5475)] public int RetentionDays { get { return this._retentionDays.GetValueOrDefault(); } set { this._retentionDays = value; } } // Check to see if RetentionDays property is set internal bool IsSetRetentionDays() { return this._retentionDays.HasValue; } } }
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> /// A structure that contains configuration data. /// </summary> public partial class Configuration { private LexConfiguration _lex; /// <summary> /// Gets and sets the property Lex. /// <para> /// The configuration for an Amazon Lex V2 bot. /// </para> /// </summary> [AWSProperty(Required=true)] public LexConfiguration Lex { get { return this._lex; } set { this._lex = value; } } // Check to see if Lex property is set internal bool IsSetLex() { return this._lex != 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> /// The request could not be processed because of conflict in the current state of the /// resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonChimeSDKIdentityException { private ErrorCode _code; /// <summary> /// Constructs a new ConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="innerException"></param> public ConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConflictException /// </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 ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(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 ConflictException 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 ConflictException(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; } } }
143
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License 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 CreateAppInstanceAdmin operation. /// Promotes an <code>AppInstanceUser</code> or <code>AppInstanceBot</code> to an <code>AppInstanceAdmin</code>. /// The promoted entity can perform the following actions. /// /// <ul> <li> /// <para> /// <code>ChannelModerator</code> actions across all channels in the <code>AppInstance</code>. /// </para> /// </li> <li> /// <para> /// <code>DeleteChannelMessage</code> actions. /// </para> /// </li> </ul> /// <para> /// Only an <code>AppInstanceUser</code> and <code>AppInstanceBot</code> can be promoted /// to an <code>AppInstanceAdmin</code> role. /// </para> /// </summary> public partial class CreateAppInstanceAdminRequest : AmazonChimeSDKIdentityRequest { private string _appInstanceAdminArn; private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceAdminArn. /// <para> /// The ARN of the administrator of the current <code>AppInstance</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; } } }
94
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-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 CreateAppInstanceAdmin operation. /// </summary> public partial class CreateAppInstanceAdminResponse : AmazonWebServiceResponse { private Identity _appInstanceAdmin; private string _appInstanceArn; /// <summary> /// Gets and sets the property AppInstanceAdmin. /// <para> /// The ARN and name of the administrator, the ARN of the <code>AppInstance</code>, and /// the created and last-updated timestamps. All timestamps use epoch milliseconds. /// </para> /// </summary> public Identity AppInstanceAdmin { get { return this._appInstanceAdmin; } set { this._appInstanceAdmin = value; } } // Check to see if AppInstanceAdmin property is set internal bool IsSetAppInstanceAdmin() { return this._appInstanceAdmin != null; } /// <summary> /// Gets and sets the property AppInstanceArn. /// <para> /// The ARN of the of the admin for 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; } } }
78