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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidTokenException Object /// </summary> public class InvalidTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidTokenException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidTokenException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidTokenException unmarshalledObject = new InvalidTokenException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidTokenExceptionUnmarshaller _instance = new InvalidTokenExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidTokenExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidUsageAllocationsException Object /// </summary> public class InvalidUsageAllocationsExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidUsageAllocationsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidUsageAllocationsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidUsageAllocationsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidUsageAllocationsException unmarshalledObject = new InvalidUsageAllocationsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidUsageAllocationsExceptionUnmarshaller _instance = new InvalidUsageAllocationsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidUsageAllocationsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidUsageDimensionException Object /// </summary> public class InvalidUsageDimensionExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidUsageDimensionException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidUsageDimensionException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidUsageDimensionException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidUsageDimensionException unmarshalledObject = new InvalidUsageDimensionException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidUsageDimensionExceptionUnmarshaller _instance = new InvalidUsageDimensionExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidUsageDimensionExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// MeterUsage Request Marshaller /// </summary> public class MeterUsageRequestMarshaller : IMarshaller<IRequest, MeterUsageRequest> , 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((MeterUsageRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(MeterUsageRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceMetering"); string target = "AWSMPMeteringService.MeterUsage"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-01-14"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDryRun()) { context.Writer.WritePropertyName("DryRun"); context.Writer.Write(publicRequest.DryRun); } if(publicRequest.IsSetProductCode()) { context.Writer.WritePropertyName("ProductCode"); context.Writer.Write(publicRequest.ProductCode); } if(publicRequest.IsSetTimestamp()) { context.Writer.WritePropertyName("Timestamp"); context.Writer.Write(publicRequest.Timestamp); } if(publicRequest.IsSetUsageAllocations()) { context.Writer.WritePropertyName("UsageAllocations"); context.Writer.WriteArrayStart(); foreach(var publicRequestUsageAllocationsListValue in publicRequest.UsageAllocations) { context.Writer.WriteObjectStart(); var marshaller = UsageAllocationMarshaller.Instance; marshaller.Marshall(publicRequestUsageAllocationsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetUsageDimension()) { context.Writer.WritePropertyName("UsageDimension"); context.Writer.Write(publicRequest.UsageDimension); } if(publicRequest.IsSetUsageQuantity()) { context.Writer.WritePropertyName("UsageQuantity"); context.Writer.Write(publicRequest.UsageQuantity); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static MeterUsageRequestMarshaller _instance = new MeterUsageRequestMarshaller(); internal static MeterUsageRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static MeterUsageRequestMarshaller Instance { get { return _instance; } } } }
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeterUsage operation /// </summary> public class MeterUsageResponseUnmarshaller : 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) { MeterUsageResponse response = new MeterUsageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MeteringRecordId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MeteringRecordId = 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("CustomerNotEntitledException")) { return CustomerNotEntitledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DuplicateRequestException")) { return DuplicateRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidEndpointRegionException")) { return InvalidEndpointRegionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidProductCodeException")) { return InvalidProductCodeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException")) { return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidUsageAllocationsException")) { return InvalidUsageAllocationsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidUsageDimensionException")) { return InvalidUsageDimensionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TimestampOutOfBoundsException")) { return TimestampOutOfBoundsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSMarketplaceMeteringException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static MeterUsageResponseUnmarshaller _instance = new MeterUsageResponseUnmarshaller(); internal static MeterUsageResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static MeterUsageResponseUnmarshaller Instance { get { return _instance; } } } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PlatformNotSupportedException Object /// </summary> public class PlatformNotSupportedExceptionUnmarshaller : IErrorResponseUnmarshaller<PlatformNotSupportedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PlatformNotSupportedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public PlatformNotSupportedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); PlatformNotSupportedException unmarshalledObject = new PlatformNotSupportedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static PlatformNotSupportedExceptionUnmarshaller _instance = new PlatformNotSupportedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PlatformNotSupportedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// RegisterUsage Request Marshaller /// </summary> public class RegisterUsageRequestMarshaller : IMarshaller<IRequest, RegisterUsageRequest> , 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((RegisterUsageRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RegisterUsageRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceMetering"); string target = "AWSMPMeteringService.RegisterUsage"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-01-14"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetNonce()) { context.Writer.WritePropertyName("Nonce"); context.Writer.Write(publicRequest.Nonce); } if(publicRequest.IsSetProductCode()) { context.Writer.WritePropertyName("ProductCode"); context.Writer.Write(publicRequest.ProductCode); } if(publicRequest.IsSetPublicKeyVersion()) { context.Writer.WritePropertyName("PublicKeyVersion"); context.Writer.Write(publicRequest.PublicKeyVersion); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RegisterUsageRequestMarshaller _instance = new RegisterUsageRequestMarshaller(); internal static RegisterUsageRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterUsageRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RegisterUsage operation /// </summary> public class RegisterUsageResponseUnmarshaller : 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) { RegisterUsageResponse response = new RegisterUsageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PublicKeyRotationTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.PublicKeyRotationTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Signature", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Signature = 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("CustomerNotEntitledException")) { return CustomerNotEntitledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DisabledApiException")) { return DisabledApiExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidProductCodeException")) { return InvalidProductCodeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPublicKeyVersionException")) { return InvalidPublicKeyVersionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRegionException")) { return InvalidRegionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PlatformNotSupportedException")) { return PlatformNotSupportedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSMarketplaceMeteringException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RegisterUsageResponseUnmarshaller _instance = new RegisterUsageResponseUnmarshaller(); internal static RegisterUsageResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterUsageResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// ResolveCustomer Request Marshaller /// </summary> public class ResolveCustomerRequestMarshaller : IMarshaller<IRequest, ResolveCustomerRequest> , 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((ResolveCustomerRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ResolveCustomerRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceMetering"); string target = "AWSMPMeteringService.ResolveCustomer"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-01-14"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetRegistrationToken()) { context.Writer.WritePropertyName("RegistrationToken"); context.Writer.Write(publicRequest.RegistrationToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ResolveCustomerRequestMarshaller _instance = new ResolveCustomerRequestMarshaller(); internal static ResolveCustomerRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ResolveCustomerRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResolveCustomer operation /// </summary> public class ResolveCustomerResponseUnmarshaller : 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) { ResolveCustomerResponse response = new ResolveCustomerResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomerAWSAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CustomerAWSAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomerIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CustomerIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProductCode = 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("DisabledApiException")) { return DisabledApiExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ExpiredTokenException")) { return ExpiredTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTokenException")) { return InvalidTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSMarketplaceMeteringException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ResolveCustomerResponseUnmarshaller _instance = new ResolveCustomerResponseUnmarshaller(); internal static ResolveCustomerResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ResolveCustomerResponseUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TimestampOutOfBoundsException Object /// </summary> public class TimestampOutOfBoundsExceptionUnmarshaller : IErrorResponseUnmarshaller<TimestampOutOfBoundsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TimestampOutOfBoundsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TimestampOutOfBoundsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TimestampOutOfBoundsException unmarshalledObject = new TimestampOutOfBoundsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TimestampOutOfBoundsExceptionUnmarshaller _instance = new TimestampOutOfBoundsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TimestampOutOfBoundsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// UsageAllocation Marshaller /// </summary> public class UsageAllocationMarshaller : IRequestMarshaller<UsageAllocation, 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(UsageAllocation requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAllocatedUsageQuantity()) { context.Writer.WritePropertyName("AllocatedUsageQuantity"); context.Writer.Write(requestObject.AllocatedUsageQuantity); } if(requestObject.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var requestObjectTagsListValue in requestObject.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(requestObjectTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UsageAllocationMarshaller Instance = new UsageAllocationMarshaller(); } }
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UsageAllocation Object /// </summary> public class UsageAllocationUnmarshaller : IUnmarshaller<UsageAllocation, XmlUnmarshallerContext>, IUnmarshaller<UsageAllocation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UsageAllocation IUnmarshaller<UsageAllocation, 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 UsageAllocation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UsageAllocation unmarshalledObject = new UsageAllocation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AllocatedUsageQuantity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AllocatedUsageQuantity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UsageAllocationUnmarshaller _instance = new UsageAllocationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UsageAllocationUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// UsageRecord Marshaller /// </summary> public class UsageRecordMarshaller : IRequestMarshaller<UsageRecord, 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(UsageRecord requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomerIdentifier()) { context.Writer.WritePropertyName("CustomerIdentifier"); context.Writer.Write(requestObject.CustomerIdentifier); } if(requestObject.IsSetDimension()) { context.Writer.WritePropertyName("Dimension"); context.Writer.Write(requestObject.Dimension); } if(requestObject.IsSetQuantity()) { context.Writer.WritePropertyName("Quantity"); context.Writer.Write(requestObject.Quantity); } if(requestObject.IsSetTimestamp()) { context.Writer.WritePropertyName("Timestamp"); context.Writer.Write(requestObject.Timestamp); } if(requestObject.IsSetUsageAllocations()) { context.Writer.WritePropertyName("UsageAllocations"); context.Writer.WriteArrayStart(); foreach(var requestObjectUsageAllocationsListValue in requestObject.UsageAllocations) { context.Writer.WriteObjectStart(); var marshaller = UsageAllocationMarshaller.Instance; marshaller.Marshall(requestObjectUsageAllocationsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UsageRecordMarshaller Instance = new UsageRecordMarshaller(); } }
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UsageRecordResult Object /// </summary> public class UsageRecordResultUnmarshaller : IUnmarshaller<UsageRecordResult, XmlUnmarshallerContext>, IUnmarshaller<UsageRecordResult, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UsageRecordResult IUnmarshaller<UsageRecordResult, 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 UsageRecordResult Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UsageRecordResult unmarshalledObject = new UsageRecordResult(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MeteringRecordId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeteringRecordId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UsageRecord", targetDepth)) { var unmarshaller = UsageRecordUnmarshaller.Instance; unmarshalledObject.UsageRecord = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UsageRecordResultUnmarshaller _instance = new UsageRecordResultUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UsageRecordResultUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UsageRecord Object /// </summary> public class UsageRecordUnmarshaller : IUnmarshaller<UsageRecord, XmlUnmarshallerContext>, IUnmarshaller<UsageRecord, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UsageRecord IUnmarshaller<UsageRecord, 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 UsageRecord Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UsageRecord unmarshalledObject = new UsageRecord(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomerIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CustomerIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Dimension", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Dimension = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Quantity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Quantity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Timestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UsageAllocations", targetDepth)) { var unmarshaller = new ListUnmarshaller<UsageAllocation, UsageAllocationUnmarshaller>(UsageAllocationUnmarshaller.Instance); unmarshalledObject.UsageAllocations = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UsageRecordUnmarshaller _instance = new UsageRecordUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UsageRecordUnmarshaller Instance { get { return _instance; } } } }
116
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.AWSMarketplaceMetering")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWSMarketplace Metering. The AWS Marketplace Metering Service enables sellers to price their products along new pricing dimensions. After a integrating their product with the AWS Marketplace Metering Service, that product will emit an hourly record capturing the usage of any single pricing dimension. Buyers can easily subscribe to software priced by this new dimension on the AWS Marketplace website and only pay for what they use.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWSMarketplace Metering. The AWS Marketplace Metering Service enables sellers to price their products along new pricing dimensions. After a integrating their product with the AWS Marketplace Metering Service, that product will emit an hourly record capturing the usage of any single pricing dimension. Buyers can easily subscribe to software priced by this new dimension on the AWS Marketplace website and only pay for what they use.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWSMarketplace Metering. The AWS Marketplace Metering Service enables sellers to price their products along new pricing dimensions. After a integrating their product with the AWS Marketplace Metering Service, that product will emit an hourly record capturing the usage of any single pricing dimension. Buyers can easily subscribe to software priced by this new dimension on the AWS Marketplace website and only pay for what they use.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWSMarketplace Metering. The AWS Marketplace Metering Service enables sellers to price their products along new pricing dimensions. After a integrating their product with the AWS Marketplace Metering Service, that product will emit an hourly record capturing the usage of any single pricing dimension. Buyers can easily subscribe to software priced by this new dimension on the AWS Marketplace website and only pay for what they use.")] #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.100.147")] [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 support-2013-04-15.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.AWSSupport.Internal; namespace Amazon.AWSSupport { /// <summary> /// Configuration for accessing Amazon AWSSupport service /// </summary> [AWSSignerType("v4")] public partial class AmazonAWSSupportConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.102.19"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonAWSSupportConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAWSSupportDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "support"; this.EndpointProvider = new AmazonAWSSupportEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "support"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2013-04-15"; } } /// <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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.AWSSupport { /// <summary> /// Configuration for accessing Amazon AWSSupport service /// </summary> public static class AmazonAWSSupportDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// AWSSupport /// </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 support-2013-04-15.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.AWSSupport.Endpoints { /// <summary> /// Contains parameters used for resolving AWSSupport endpoints /// Parameters can be sourced from client config and service operations /// Used by internal AWSSupportEndpointProvider and AWSSupportEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class AWSSupportEndpointParameters : EndpointParameters { /// <summary> /// AWSSupportEndpointParameters constructor /// </summary> public AWSSupportEndpointParameters() { 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.AWSSupport { ///<summary> /// Common exception for the AWSSupport service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonAWSSupportException : AmazonServiceException { /// <summary> /// Construct instance of AmazonAWSSupportException /// </summary> /// <param name="message"></param> public AmazonAWSSupportException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonAWSSupportException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonAWSSupportException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonAWSSupportException /// </summary> /// <param name="innerException"></param> public AmazonAWSSupportException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonAWSSupportException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAWSSupportException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonAWSSupportException /// </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 AmazonAWSSupportException(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 AmazonAWSSupportException 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 AmazonAWSSupportException(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 support-2013-04-15.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.AWSSupport { }
26
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.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.AWSSupport.Internal { /// <summary> /// Amazon AWSSupport endpoint provider. /// Resolves endpoint for given set of AWSSupportEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonAWSSupportEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for AWSSupportEndpointParameters /// </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(GetAttr(refs["PartitionResult"], "name"), "aws") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://support.us-east-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""support"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-cn") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://support.cn-north-1.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""support"",""signingRegion"":""cn-north-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-us-gov") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://support.us-gov-west-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""support"",""signingRegion"":""us-gov-west-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-iso") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://support.us-iso-east-1.c2s.ic.gov", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""support"",""signingRegion"":""us-iso-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-iso-b") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://support.us-isob-east-1.sc2s.sgov.gov", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""support"",""signingRegion"":""us-isob-east-1""}]}", refs), InterpolateJson(@"", refs)); } 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://support-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://support-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://support.{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://support.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 support-2013-04-15.normal.json service model. */ using System; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.AWSSupport.Endpoints; #pragma warning disable 1591 namespace Amazon.AWSSupport.Internal { /// <summary> /// Amazon AWSSupport endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AWSSupport service requests. /// Collects values for AWSSupportEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AWSSupportEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonAWSSupportEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonAWSSupportConfig)requestContext.ClientConfig; var result = new AWSSupportEndpointParameters(); 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 support-2013-04-15.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Internal { /// <summary> /// Service metadata for Amazon AWSSupport service /// </summary> public partial class AmazonAWSSupportMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Support"; } } /// <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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the AddAttachmentsToSet operation. /// Adds one or more attachments to an attachment set. /// /// /// <para> /// An attachment set is a temporary container for attachments that you add to a case /// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code> /// returned in the response is when the set expires. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class AddAttachmentsToSetRequest : AmazonAWSSupportRequest { private List<Attachment> _attachments = new List<Attachment>(); private string _attachmentSetId; /// <summary> /// Gets and sets the property Attachments. /// <para> /// One or more attachments to add to the set. You can add up to three attachments per /// set. The size limit is 5 MB per attachment. /// </para> /// /// <para> /// In the <code>Attachment</code> object, use the <code>data</code> parameter to specify /// the contents of the attachment file. In the previous request syntax, the value for /// <code>data</code> appear as <code>blob</code>, which is represented as a base64-encoded /// string. The value for <code>fileName</code> is the name of the attachment, such as /// <code>troubleshoot-screenshot.png</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public List<Attachment> Attachments { get { return this._attachments; } set { this._attachments = value; } } // Check to see if Attachments property is set internal bool IsSetAttachments() { return this._attachments != null && this._attachments.Count > 0; } /// <summary> /// Gets and sets the property AttachmentSetId. /// <para> /// The ID of the attachment set. If an <code>attachmentSetId</code> is not specified, /// a new attachment set is created, and the ID of the set is returned in the response. /// If an <code>attachmentSetId</code> is specified, the attachments are added to the /// specified set, if it exists. /// </para> /// </summary> public string AttachmentSetId { get { return this._attachmentSetId; } set { this._attachmentSetId = value; } } // Check to see if AttachmentSetId property is set internal bool IsSetAttachmentSetId() { return this._attachmentSetId != null; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The ID and expiry time of the attachment set returned by the <a>AddAttachmentsToSet</a> /// operation. /// </summary> public partial class AddAttachmentsToSetResponse : AmazonWebServiceResponse { private string _attachmentSetId; private string _expiryTime; /// <summary> /// Gets and sets the property AttachmentSetId. /// <para> /// The ID of the attachment set. If an <code>attachmentSetId</code> was not specified, /// a new attachment set is created, and the ID of the set is returned in the response. /// If an <code>attachmentSetId</code> was specified, the attachments are added to the /// specified set, if it exists. /// </para> /// </summary> public string AttachmentSetId { get { return this._attachmentSetId; } set { this._attachmentSetId = value; } } // Check to see if AttachmentSetId property is set internal bool IsSetAttachmentSetId() { return this._attachmentSetId != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The time and date when the attachment set expires. /// </para> /// </summary> public string ExpiryTime { get { return this._expiryTime; } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the AddCommunicationToCase operation. /// Adds additional customer communication to an Amazon Web Services Support case. Use /// the <code>caseId</code> parameter to identify the case to which to add communication. /// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code> /// parameter. The <code>communicationBody</code> value contains the text of the communication. /// /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class AddCommunicationToCaseRequest : AmazonAWSSupportRequest { private string _attachmentSetId; private string _caseId; private List<string> _ccEmailAddresses = new List<string>(); private string _communicationBody; /// <summary> /// Gets and sets the property AttachmentSetId. /// <para> /// The ID of a set of one or more attachments for the communication to add to the case. /// Create the set by calling <a>AddAttachmentsToSet</a> /// </para> /// </summary> public string AttachmentSetId { get { return this._attachmentSetId; } set { this._attachmentSetId = value; } } // Check to see if AttachmentSetId property is set internal bool IsSetAttachmentSetId() { return this._attachmentSetId != null; } /// <summary> /// Gets and sets the property CaseId. /// <para> /// The support case ID requested or returned in the call. The case ID is an alphanumeric /// string formatted as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> /// /// </para> /// </summary> public string CaseId { get { return this._caseId; } set { this._caseId = value; } } // Check to see if CaseId property is set internal bool IsSetCaseId() { return this._caseId != null; } /// <summary> /// Gets and sets the property CcEmailAddresses. /// <para> /// The email addresses in the CC line of an email to be added to the support case. /// </para> /// </summary> [AWSProperty(Min=0, Max=10)] public List<string> CcEmailAddresses { get { return this._ccEmailAddresses; } set { this._ccEmailAddresses = value; } } // Check to see if CcEmailAddresses property is set internal bool IsSetCcEmailAddresses() { return this._ccEmailAddresses != null && this._ccEmailAddresses.Count > 0; } /// <summary> /// Gets and sets the property CommunicationBody. /// <para> /// The body of an email communication to add to the support case. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=8000)] public string CommunicationBody { get { return this._communicationBody; } set { this._communicationBody = value; } } // Check to see if CommunicationBody property is set internal bool IsSetCommunicationBody() { return this._communicationBody != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The result of the <a>AddCommunicationToCase</a> operation. /// </summary> public partial class AddCommunicationToCaseResponse : AmazonWebServiceResponse { private bool? _result; /// <summary> /// Gets and sets the property Result. /// <para> /// True if <a>AddCommunicationToCase</a> succeeds. Otherwise, returns an error. /// </para> /// </summary> public bool Result { get { return this._result.GetValueOrDefault(); } set { this._result = value; } } // Check to see if Result property is set internal bool IsSetResult() { return this._result.HasValue; } } }
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 support-2013-04-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.AWSSupport { /// <summary> /// Base class for AWSSupport operation requests. /// </summary> public partial class AmazonAWSSupportRequest : 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// An attachment to a case communication. The attachment consists of the file name and /// the content of the file. /// </summary> public partial class Attachment { private MemoryStream _data; private string _fileName; /// <summary> /// Gets and sets the property Data. /// <para> /// The content of the attachment file. /// </para> /// </summary> public MemoryStream Data { get { return this._data; } set { this._data = value; } } // Check to see if Data property is set internal bool IsSetData() { return this._data != null; } /// <summary> /// Gets and sets the property FileName. /// <para> /// The name of the attachment file. /// </para> /// </summary> public string FileName { get { return this._fileName; } set { this._fileName = value; } } // Check to see if FileName property is set internal bool IsSetFileName() { return this._fileName != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The file name and ID of an attachment to a case communication. You can use the ID /// to retrieve the attachment with the <a>DescribeAttachment</a> operation. /// </summary> public partial class AttachmentDetails { private string _attachmentId; private string _fileName; /// <summary> /// Gets and sets the property AttachmentId. /// <para> /// The ID of the attachment. /// </para> /// </summary> public string AttachmentId { get { return this._attachmentId; } set { this._attachmentId = value; } } // Check to see if AttachmentId property is set internal bool IsSetAttachmentId() { return this._attachmentId != null; } /// <summary> /// Gets and sets the property FileName. /// <para> /// The file name of the attachment. /// </para> /// </summary> public string FileName { get { return this._fileName; } set { this._fileName = value; } } // Check to see if FileName property is set internal bool IsSetFileName() { return this._fileName != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// An attachment with the specified ID could not be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AttachmentIdNotFoundException : AmazonAWSSupportException { /// <summary> /// Constructs a new AttachmentIdNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AttachmentIdNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of AttachmentIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AttachmentIdNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AttachmentIdNotFoundException /// </summary> /// <param name="innerException"></param> public AttachmentIdNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AttachmentIdNotFoundException /// </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 AttachmentIdNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AttachmentIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AttachmentIdNotFoundException(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 AttachmentIdNotFoundException 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 AttachmentIdNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The limit for the number of attachment sets created in a short period of time has /// been exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AttachmentLimitExceededException : AmazonAWSSupportException { /// <summary> /// Constructs a new AttachmentLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AttachmentLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of AttachmentLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AttachmentLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AttachmentLimitExceededException /// </summary> /// <param name="innerException"></param> public AttachmentLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AttachmentLimitExceededException /// </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 AttachmentLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AttachmentLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AttachmentLimitExceededException(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 AttachmentLimitExceededException 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 AttachmentLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The expiration time of the attachment set has passed. The set expires 1 hour after /// it is created. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AttachmentSetExpiredException : AmazonAWSSupportException { /// <summary> /// Constructs a new AttachmentSetExpiredException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AttachmentSetExpiredException(string message) : base(message) {} /// <summary> /// Construct instance of AttachmentSetExpiredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AttachmentSetExpiredException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AttachmentSetExpiredException /// </summary> /// <param name="innerException"></param> public AttachmentSetExpiredException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AttachmentSetExpiredException /// </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 AttachmentSetExpiredException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AttachmentSetExpiredException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AttachmentSetExpiredException(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 AttachmentSetExpiredException 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 AttachmentSetExpiredException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// An attachment set with the specified ID could not be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AttachmentSetIdNotFoundException : AmazonAWSSupportException { /// <summary> /// Constructs a new AttachmentSetIdNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AttachmentSetIdNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of AttachmentSetIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AttachmentSetIdNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AttachmentSetIdNotFoundException /// </summary> /// <param name="innerException"></param> public AttachmentSetIdNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AttachmentSetIdNotFoundException /// </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 AttachmentSetIdNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AttachmentSetIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AttachmentSetIdNotFoundException(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 AttachmentSetIdNotFoundException 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 AttachmentSetIdNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A limit for the size of an attachment set has been exceeded. The limits are three /// attachments and 5 MB per attachment. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AttachmentSetSizeLimitExceededException : AmazonAWSSupportException { /// <summary> /// Constructs a new AttachmentSetSizeLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AttachmentSetSizeLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of AttachmentSetSizeLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AttachmentSetSizeLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AttachmentSetSizeLimitExceededException /// </summary> /// <param name="innerException"></param> public AttachmentSetSizeLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AttachmentSetSizeLimitExceededException /// </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 AttachmentSetSizeLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AttachmentSetSizeLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AttachmentSetSizeLimitExceededException(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 AttachmentSetSizeLimitExceededException 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 AttachmentSetSizeLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The case creation limit for the account has been exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CaseCreationLimitExceededException : AmazonAWSSupportException { /// <summary> /// Constructs a new CaseCreationLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CaseCreationLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of CaseCreationLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CaseCreationLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CaseCreationLimitExceededException /// </summary> /// <param name="innerException"></param> public CaseCreationLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CaseCreationLimitExceededException /// </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 CaseCreationLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CaseCreationLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CaseCreationLimitExceededException(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 CaseCreationLimitExceededException 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 CaseCreationLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The requested <code>caseId</code> couldn't be located. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CaseIdNotFoundException : AmazonAWSSupportException { /// <summary> /// Constructs a new CaseIdNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CaseIdNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of CaseIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CaseIdNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CaseIdNotFoundException /// </summary> /// <param name="innerException"></param> public CaseIdNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CaseIdNotFoundException /// </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 CaseIdNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CaseIdNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CaseIdNotFoundException(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 CaseIdNotFoundException 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 CaseIdNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A JSON-formatted name/value pair that represents the category name and category code /// of the problem, selected from the <a>DescribeServices</a> response for each Amazon /// Web Services service. /// </summary> public partial class Category { private string _code; private string _name; /// <summary> /// Gets and sets the property Code. /// <para> /// The category code for the support case. /// </para> /// </summary> public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The category name for the support case. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A communication associated with a support case. The communication consists of the /// case ID, the message body, attachment information, the submitter of the communication, /// and the date and time of the communication. /// </summary> public partial class Communication { private List<AttachmentDetails> _attachmentSet = new List<AttachmentDetails>(); private string _body; private string _caseId; private string _submittedBy; private string _timeCreated; /// <summary> /// Gets and sets the property AttachmentSet. /// <para> /// Information about the attachments to the case communication. /// </para> /// </summary> public List<AttachmentDetails> AttachmentSet { get { return this._attachmentSet; } set { this._attachmentSet = value; } } // Check to see if AttachmentSet property is set internal bool IsSetAttachmentSet() { return this._attachmentSet != null && this._attachmentSet.Count > 0; } /// <summary> /// Gets and sets the property Body. /// <para> /// The text of the communication between the customer and Amazon Web Services Support. /// </para> /// </summary> [AWSProperty(Min=1, Max=8000)] public string Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property CaseId. /// <para> /// The support case ID requested or returned in the call. The case ID is an alphanumeric /// string formatted as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> /// /// </para> /// </summary> public string CaseId { get { return this._caseId; } set { this._caseId = value; } } // Check to see if CaseId property is set internal bool IsSetCaseId() { return this._caseId != null; } /// <summary> /// Gets and sets the property SubmittedBy. /// <para> /// The identity of the account that submitted, or responded to, the support case. Customer /// entries include the IAM role as well as the email address (for example, "AdminRole /// (Role) &lt;[email protected]&gt;). Entries from the Amazon Web Services Support /// team display "Amazon Web Services," and don't show an email address. /// </para> /// </summary> public string SubmittedBy { get { return this._submittedBy; } set { this._submittedBy = value; } } // Check to see if SubmittedBy property is set internal bool IsSetSubmittedBy() { return this._submittedBy != null; } /// <summary> /// Gets and sets the property TimeCreated. /// <para> /// The time the communication was created. /// </para> /// </summary> public string TimeCreated { get { return this._timeCreated; } set { this._timeCreated = value; } } // Check to see if TimeCreated property is set internal bool IsSetTimeCreated() { return this._timeCreated != null; } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A JSON-formatted object that contains the CommunicationTypeOptions for creating a /// case for a certain communication channel. It is contained in the response from a <a>DescribeCreateCaseOptions</a> /// request. <b>CommunicationTypeOptions</b> contains the following fields: /// /// <ul> <li> /// <para> /// <b>datesWithoutSupport</b> - A JSON-formatted list containing date and time ranges /// for periods without support in UTC time. Date and time format is RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. /// /// </para> /// </li> <li> /// <para> /// <b>supportedHours</b> - A JSON-formatted list containing time ranges when support /// are available. Time format is RFC 3339 : 'HH:mm:ss.SSS'. /// </para> /// </li> <li> /// <para> /// <b>type</b> - A string value indicating the communication type that the aforementioned /// rules apply to. At the moment the type value can assume one of 3 values at the moment /// <code>chat</code>, <code>web</code> and <code>call</code>. /// </para> /// </li> </ul> /// </summary> public partial class CommunicationTypeOptions { private List<DateInterval> _datesWithoutSupport = new List<DateInterval>(); private List<SupportedHour> _supportedHours = new List<SupportedHour>(); private string _type; /// <summary> /// Gets and sets the property DatesWithoutSupport. /// <para> /// A JSON-formatted list containing date and time ranges for periods without support /// /// </para> /// </summary> public List<DateInterval> DatesWithoutSupport { get { return this._datesWithoutSupport; } set { this._datesWithoutSupport = value; } } // Check to see if DatesWithoutSupport property is set internal bool IsSetDatesWithoutSupport() { return this._datesWithoutSupport != null && this._datesWithoutSupport.Count > 0; } /// <summary> /// Gets and sets the property SupportedHours. /// <para> /// A JSON-formatted list containing time ranges when support is available. /// </para> /// </summary> public List<SupportedHour> SupportedHours { get { return this._supportedHours; } set { this._supportedHours = value; } } // Check to see if SupportedHours property is set internal bool IsSetSupportedHours() { return this._supportedHours != null && this._supportedHours.Count > 0; } /// <summary> /// Gets and sets the property Type. /// <para> /// A string value indicating the communication type. At the moment the type value can /// assume one of 3 values at the moment chat, web and call. /// </para> /// </summary> public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The support case ID returned by a successful completion of the <a>CreateCase</a> operation. /// </summary> public partial class CreateCaseResponse : AmazonWebServiceResponse { private string _caseId; /// <summary> /// Gets and sets the property CaseId. /// <para> /// The support case ID requested or returned in the call. The case ID is an alphanumeric /// string in the following format: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> /// </para> /// </summary> public string CaseId { get { return this._caseId; } set { this._caseId = value; } } // Check to see if CaseId property is set internal bool IsSetCaseId() { return this._caseId != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Date and time (UTC) format in RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. /// </summary> public partial class DateInterval { private string _endDateTime; private string _startDateTime; /// <summary> /// Gets and sets the property EndDateTime. /// <para> /// End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. /// </para> /// </summary> [AWSProperty(Min=8, Max=30)] public string EndDateTime { get { return this._endDateTime; } set { this._endDateTime = value; } } // Check to see if EndDateTime property is set internal bool IsSetEndDateTime() { return this._endDateTime != null; } /// <summary> /// Gets and sets the property StartDateTime. /// <para> /// A JSON object containing start and date time (UTC). Date and time format is RFC 3339 /// : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. /// </para> /// </summary> [AWSProperty(Min=8, Max=30)] public string StartDateTime { get { return this._startDateTime; } set { this._startDateTime = value; } } // Check to see if StartDateTime property is set internal bool IsSetStartDateTime() { return this._startDateTime != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The limit for the number of <a>DescribeAttachment</a> requests in a short period of /// time has been exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DescribeAttachmentLimitExceededException : AmazonAWSSupportException { /// <summary> /// Constructs a new DescribeAttachmentLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DescribeAttachmentLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of DescribeAttachmentLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DescribeAttachmentLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DescribeAttachmentLimitExceededException /// </summary> /// <param name="innerException"></param> public DescribeAttachmentLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DescribeAttachmentLimitExceededException /// </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 DescribeAttachmentLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DescribeAttachmentLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DescribeAttachmentLimitExceededException(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 DescribeAttachmentLimitExceededException 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 DescribeAttachmentLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeAttachment operation. /// Returns the attachment that has the specified ID. Attachments can include screenshots, /// error logs, or other files that describe your issue. Attachment IDs are generated /// by the case management system when you add an attachment to a case or case communication. /// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned /// by the <a>DescribeCommunications</a> operation. /// /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeAttachmentRequest : AmazonAWSSupportRequest { private string _attachmentId; /// <summary> /// Gets and sets the property AttachmentId. /// <para> /// The ID of the attachment to return. Attachment IDs are returned by the <a>DescribeCommunications</a> /// operation. /// </para> /// </summary> [AWSProperty(Required=true)] public string AttachmentId { get { return this._attachmentId; } set { this._attachmentId = value; } } // Check to see if AttachmentId property is set internal bool IsSetAttachmentId() { return this._attachmentId != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The content and file name of the attachment returned by the <a>DescribeAttachment</a> /// operation. /// </summary> public partial class DescribeAttachmentResponse : AmazonWebServiceResponse { private Attachment _attachment; /// <summary> /// Gets and sets the property Attachment. /// <para> /// This object includes the attachment content and file name. /// </para> /// /// <para> /// In the previous response syntax, the value for the <code>data</code> parameter appears /// as <code>blob</code>, which is represented as a base64-encoded string. The value for /// <code>fileName</code> is the name of the attachment, such as <code>troubleshoot-screenshot.png</code>. /// </para> /// </summary> public Attachment Attachment { get { return this._attachment; } set { this._attachment = value; } } // Check to see if Attachment property is set internal bool IsSetAttachment() { return this._attachment != null; } } }
64
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Returns an array of <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a> /// objects and a <code>nextToken</code> that defines a point for pagination in the result /// set. /// </summary> public partial class DescribeCasesResponse : AmazonWebServiceResponse { private List<CaseDetails> _cases = new List<CaseDetails>(); private string _nextToken; /// <summary> /// Gets and sets the property Cases. /// <para> /// The details for the cases that match the request. /// </para> /// </summary> public List<CaseDetails> Cases { get { return this._cases; } set { this._cases = value; } } // Check to see if Cases property is set internal bool IsSetCases() { return this._cases != null && this._cases.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A resumption point for pagination. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeCommunications operation. /// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code> /// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code> /// parameter to restrict the results to a specific case. /// /// /// <para> /// Case data is available for 12 months after creation. If a case was created more than /// 12 months ago, a request for data might cause an error. /// </para> /// /// <para> /// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control /// the pagination of the results. Set <code>maxResults</code> to the number of cases /// that you want to display on each page, and use <code>nextToken</code> to specify the /// resumption of pagination. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeCommunicationsRequest : AmazonAWSSupportRequest { private string _afterTime; private string _beforeTime; private string _caseId; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AfterTime. /// <para> /// The start date for a filtered date search on support case communications. Case communications /// are available for 12 months after creation. /// </para> /// </summary> public string AfterTime { get { return this._afterTime; } set { this._afterTime = value; } } // Check to see if AfterTime property is set internal bool IsSetAfterTime() { return this._afterTime != null; } /// <summary> /// Gets and sets the property BeforeTime. /// <para> /// The end date for a filtered date search on support case communications. Case communications /// are available for 12 months after creation. /// </para> /// </summary> public string BeforeTime { get { return this._beforeTime; } set { this._beforeTime = value; } } // Check to see if BeforeTime property is set internal bool IsSetBeforeTime() { return this._beforeTime != null; } /// <summary> /// Gets and sets the property CaseId. /// <para> /// The support case ID requested or returned in the call. The case ID is an alphanumeric /// string formatted as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> /// /// </para> /// </summary> [AWSProperty(Required=true)] public string CaseId { get { return this._caseId; } set { this._caseId = value; } } // Check to see if CaseId property is set internal bool IsSetCaseId() { return this._caseId != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to return before paginating. /// </para> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A resumption point for pagination. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The communications returned by the <a>DescribeCommunications</a> operation. /// </summary> public partial class DescribeCommunicationsResponse : AmazonWebServiceResponse { private List<Communication> _communications = new List<Communication>(); private string _nextToken; /// <summary> /// Gets and sets the property Communications. /// <para> /// The communications for the case. /// </para> /// </summary> public List<Communication> Communications { get { return this._communications; } set { this._communications = value; } } // Check to see if Communications property is set internal bool IsSetCommunications() { return this._communications != null && this._communications.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A resumption point for pagination. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// This is the response object from the DescribeCreateCaseOptions operation. /// </summary> public partial class DescribeCreateCaseOptionsResponse : AmazonWebServiceResponse { private List<CommunicationTypeOptions> _communicationTypes = new List<CommunicationTypeOptions>(); private string _languageAvailability; /// <summary> /// Gets and sets the property CommunicationTypes. /// <para> /// A JSON-formatted array that contains the available communication type options, along /// with the available support timeframes for the given inputs. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<CommunicationTypeOptions> CommunicationTypes { get { return this._communicationTypes; } set { this._communicationTypes = value; } } // Check to see if CommunicationTypes property is set internal bool IsSetCommunicationTypes() { return this._communicationTypes != null && this._communicationTypes.Count > 0; } /// <summary> /// Gets and sets the property LanguageAvailability. /// <para> /// Language availability can be any of the following: /// </para> /// <ul> <li> /// <para> /// available /// </para> /// </li> <li> /// <para> /// best_effort /// </para> /// </li> <li> /// <para> /// unavailable /// </para> /// </li> </ul> /// </summary> [AWSProperty(Min=0, Max=100)] public string LanguageAvailability { get { return this._languageAvailability; } set { this._languageAvailability = value; } } // Check to see if LanguageAvailability property is set internal bool IsSetLanguageAvailability() { return this._languageAvailability != null; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The list of Amazon Web Services services returned by the <a>DescribeServices</a> operation. /// </summary> public partial class DescribeServicesResponse : AmazonWebServiceResponse { private List<Service> _services = new List<Service>(); /// <summary> /// Gets and sets the property Services. /// <para> /// A JSON-formatted list of Amazon Web Services services. /// </para> /// </summary> public List<Service> Services { get { return this._services; } set { this._services = value; } } // Check to see if Services property is set internal bool IsSetServices() { return this._services != null && this._services.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The list of severity levels returned by the <a>DescribeSeverityLevels</a> operation. /// </summary> public partial class DescribeSeverityLevelsResponse : AmazonWebServiceResponse { private List<SeverityLevel> _severityLevels = new List<SeverityLevel>(); /// <summary> /// Gets and sets the property SeverityLevels. /// <para> /// The available severity levels for the support case. Available severity levels are /// defined by your service level agreement with Amazon Web Services. /// </para> /// </summary> public List<SeverityLevel> SeverityLevels { get { return this._severityLevels; } set { this._severityLevels = value; } } // Check to see if SeverityLevels property is set internal bool IsSetSeverityLevels() { return this._severityLevels != null && this._severityLevels.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeSupportedLanguages operation. /// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code> /// and <code>serviceCode</code>. The returned supported languages will include a ISO /// 639-1 code for the <code>language</code>, and the language display name. /// /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeSupportedLanguagesRequest : AmazonAWSSupportRequest { private string _categoryCode; private string _issueType; private string _serviceCode; /// <summary> /// Gets and sets the property CategoryCode. /// <para> /// The category of problem for the support case. You also use the <a>DescribeServices</a> /// operation to get the category code for a service. Each Amazon Web Services service /// defines its own set of category codes. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public string CategoryCode { get { return this._categoryCode; } set { this._categoryCode = value; } } // Check to see if CategoryCode property is set internal bool IsSetCategoryCode() { return this._categoryCode != null; } /// <summary> /// Gets and sets the property IssueType. /// <para> /// The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=9, Max=22)] public string IssueType { get { return this._issueType; } set { this._issueType = value; } } // Check to see if IssueType property is set internal bool IsSetIssueType() { return this._issueType != null; } /// <summary> /// Gets and sets the property ServiceCode. /// <para> /// The code for the Amazon Web Services service. You can use the <a>DescribeServices</a> /// operation to get the possible <code>serviceCode</code> values. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public string ServiceCode { get { return this._serviceCode; } set { this._serviceCode = value; } } // Check to see if ServiceCode property is set internal bool IsSetServiceCode() { return this._serviceCode != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// This is the response object from the DescribeSupportedLanguages operation. /// </summary> public partial class DescribeSupportedLanguagesResponse : AmazonWebServiceResponse { private List<SupportedLanguage> _supportedLanguages = new List<SupportedLanguage>(); /// <summary> /// Gets and sets the property SupportedLanguages. /// <para> /// A JSON-formatted array that contains the available ISO 639-1 language codes. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public List<SupportedLanguage> SupportedLanguages { get { return this._supportedLanguages; } set { this._supportedLanguages = value; } } // Check to see if SupportedLanguages property is set internal bool IsSetSupportedLanguages() { return this._supportedLanguages != null && this._supportedLanguages.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeTrustedAdvisorCheckRefreshStatuses operation. /// Returns the refresh status of the Trusted Advisor checks that have the specified check /// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> /// operation. /// /// /// <para> /// Some checks are refreshed automatically, and you can't return their refresh statuses /// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If /// you call this operation for these checks, you might see an <code>InvalidParameterValue</code> /// error. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// <para> /// To call the Trusted Advisor operations in the Amazon Web Services Support API, you /// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe /// (Ireland) endpoints don't support the Trusted Advisor operations. For more information, /// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About /// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User /// Guide</i>. /// </para> /// </summary> public partial class DescribeTrustedAdvisorCheckRefreshStatusesRequest : AmazonAWSSupportRequest { private List<string> _checkIds = new List<string>(); /// <summary> /// Gets and sets the property CheckIds. /// <para> /// The IDs of the Trusted Advisor checks to get the status. /// </para> /// <note> /// <para> /// If you specify the check ID of a check that is automatically refreshed, you might /// see an <code>InvalidParameterValue</code> error. /// </para> /// </note> /// </summary> [AWSProperty(Required=true)] public List<string> CheckIds { get { return this._checkIds; } set { this._checkIds = value; } } // Check to see if CheckIds property is set internal bool IsSetCheckIds() { return this._checkIds != null && this._checkIds.Count > 0; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The statuses of the Trusted Advisor checks returned by the <a>DescribeTrustedAdvisorCheckRefreshStatuses</a> /// operation. /// </summary> public partial class DescribeTrustedAdvisorCheckRefreshStatusesResponse : AmazonWebServiceResponse { private List<TrustedAdvisorCheckRefreshStatus> _statuses = new List<TrustedAdvisorCheckRefreshStatus>(); /// <summary> /// Gets and sets the property Statuses. /// <para> /// The refresh status of the specified Trusted Advisor checks. /// </para> /// </summary> [AWSProperty(Required=true)] public List<TrustedAdvisorCheckRefreshStatus> Statuses { get { return this._statuses; } set { this._statuses = value; } } // Check to see if Statuses property is set internal bool IsSetStatuses() { return this._statuses != null && this._statuses.Count > 0; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeTrustedAdvisorCheckResult operation. /// Returns the results of the Trusted Advisor check that has the specified check ID. /// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation. /// /// /// <para> /// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these /// three objects: /// </para> /// <ul> <li> /// <para> /// <a>TrustedAdvisorCategorySpecificSummary</a> /// </para> /// </li> <li> /// <para> /// <a>TrustedAdvisorResourceDetail</a> /// </para> /// </li> <li> /// <para> /// <a>TrustedAdvisorResourcesSummary</a> /// </para> /// </li> </ul> /// <para> /// In addition, the response contains these fields: /// </para> /// <ul> <li> /// <para> /// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code> /// (yellow), <code>error</code> (red), or <code>not_available</code>. /// </para> /// </li> <li> /// <para> /// <b>timestamp</b> - The time of the last refresh of the check. /// </para> /// </li> <li> /// <para> /// <b>checkId</b> - The unique identifier for the check. /// </para> /// </li> </ul> <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// <para> /// To call the Trusted Advisor operations in the Amazon Web Services Support API, you /// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe /// (Ireland) endpoints don't support the Trusted Advisor operations. For more information, /// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About /// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User /// Guide</i>. /// </para> /// </summary> public partial class DescribeTrustedAdvisorCheckResultRequest : AmazonAWSSupportRequest { private string _checkId; private string _language; /// <summary> /// Gets and sets the property CheckId. /// <para> /// The unique identifier for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string CheckId { get { return this._checkId; } set { this._checkId = value; } } // Check to see if CheckId property is set internal bool IsSetCheckId() { return this._checkId != null; } /// <summary> /// Gets and sets the property Language. /// <para> /// The ISO 639-1 code for the language that you want your check results to appear in. /// </para> /// /// <para> /// The Amazon Web Services Support API currently supports the following languages for /// Trusted Advisor: /// </para> /// <ul> <li> /// <para> /// Chinese, Simplified - <code>zh</code> /// </para> /// </li> <li> /// <para> /// Chinese, Traditional - <code>zh_TW</code> /// </para> /// </li> <li> /// <para> /// English - <code>en</code> /// </para> /// </li> <li> /// <para> /// French - <code>fr</code> /// </para> /// </li> <li> /// <para> /// German - <code>de</code> /// </para> /// </li> <li> /// <para> /// Indonesian - <code>id</code> /// </para> /// </li> <li> /// <para> /// Italian - <code>it</code> /// </para> /// </li> <li> /// <para> /// Japanese - <code>ja</code> /// </para> /// </li> <li> /// <para> /// Korean - <code>ko</code> /// </para> /// </li> <li> /// <para> /// Portuguese, Brazilian - <code>pt_BR</code> /// </para> /// </li> <li> /// <para> /// Spanish - <code>es</code> /// </para> /// </li> </ul> /// </summary> public string Language { get { return this._language; } set { this._language = value; } } // Check to see if Language property is set internal bool IsSetLanguage() { return this._language != null; } } }
185
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The result of the Trusted Advisor check returned by the <a>DescribeTrustedAdvisorCheckResult</a> /// operation. /// </summary> public partial class DescribeTrustedAdvisorCheckResultResponse : AmazonWebServiceResponse { private TrustedAdvisorCheckResult _result; /// <summary> /// Gets and sets the property Result. /// <para> /// The detailed results of the Trusted Advisor check. /// </para> /// </summary> public TrustedAdvisorCheckResult Result { get { return this._result; } set { this._result = value; } } // Check to see if Result property is set internal bool IsSetResult() { return this._result != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeTrustedAdvisorChecks operation. /// Returns information about all available Trusted Advisor checks, including the name, /// ID, category, description, and metadata. You must specify a language code. /// /// /// <para> /// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check. /// You must set the Amazon Web Services Region to us-east-1. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> <li> /// <para> /// The names and descriptions for Trusted Advisor checks are subject to change. We recommend /// that you specify the check ID in your code to uniquely identify a check. /// </para> /// </li> </ul> </note> /// <para> /// To call the Trusted Advisor operations in the Amazon Web Services Support API, you /// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe /// (Ireland) endpoints don't support the Trusted Advisor operations. For more information, /// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About /// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User /// Guide</i>. /// </para> /// </summary> public partial class DescribeTrustedAdvisorChecksRequest : AmazonAWSSupportRequest { private string _language; /// <summary> /// Gets and sets the property Language. /// <para> /// The ISO 639-1 code for the language that you want your checks to appear in. /// </para> /// /// <para> /// The Amazon Web Services Support API currently supports the following languages for /// Trusted Advisor: /// </para> /// <ul> <li> /// <para> /// Chinese, Simplified - <code>zh</code> /// </para> /// </li> <li> /// <para> /// Chinese, Traditional - <code>zh_TW</code> /// </para> /// </li> <li> /// <para> /// English - <code>en</code> /// </para> /// </li> <li> /// <para> /// French - <code>fr</code> /// </para> /// </li> <li> /// <para> /// German - <code>de</code> /// </para> /// </li> <li> /// <para> /// Indonesian - <code>id</code> /// </para> /// </li> <li> /// <para> /// Italian - <code>it</code> /// </para> /// </li> <li> /// <para> /// Japanese - <code>ja</code> /// </para> /// </li> <li> /// <para> /// Korean - <code>ko</code> /// </para> /// </li> <li> /// <para> /// Portuguese, Brazilian - <code>pt_BR</code> /// </para> /// </li> <li> /// <para> /// Spanish - <code>es</code> /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public string Language { get { return this._language; } set { this._language = value; } } // Check to see if Language property is set internal bool IsSetLanguage() { return this._language != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Information about the Trusted Advisor checks returned by the <a>DescribeTrustedAdvisorChecks</a> /// operation. /// </summary> public partial class DescribeTrustedAdvisorChecksResponse : AmazonWebServiceResponse { private List<TrustedAdvisorCheckDescription> _checks = new List<TrustedAdvisorCheckDescription>(); /// <summary> /// Gets and sets the property Checks. /// <para> /// Information about all available Trusted Advisor checks. /// </para> /// </summary> [AWSProperty(Required=true)] public List<TrustedAdvisorCheckDescription> Checks { get { return this._checks; } set { this._checks = value; } } // Check to see if Checks property is set internal bool IsSetChecks() { return this._checks != null && this._checks.Count > 0; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the DescribeTrustedAdvisorCheckSummaries operation. /// Returns the results for the Trusted Advisor check summaries for the check IDs that /// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> /// operation. /// /// /// <para> /// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// <para> /// To call the Trusted Advisor operations in the Amazon Web Services Support API, you /// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe /// (Ireland) endpoints don't support the Trusted Advisor operations. For more information, /// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About /// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User /// Guide</i>. /// </para> /// </summary> public partial class DescribeTrustedAdvisorCheckSummariesRequest : AmazonAWSSupportRequest { private List<string> _checkIds = new List<string>(); /// <summary> /// Gets and sets the property CheckIds. /// <para> /// The IDs of the Trusted Advisor checks. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> CheckIds { get { return this._checkIds; } set { this._checkIds = value; } } // Check to see if CheckIds property is set internal bool IsSetCheckIds() { return this._checkIds != null && this._checkIds.Count > 0; } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The summaries of the Trusted Advisor checks returned by the <a>DescribeTrustedAdvisorCheckSummaries</a> /// operation. /// </summary> public partial class DescribeTrustedAdvisorCheckSummariesResponse : AmazonWebServiceResponse { private List<TrustedAdvisorCheckSummary> _summaries = new List<TrustedAdvisorCheckSummary>(); /// <summary> /// Gets and sets the property Summaries. /// <para> /// The summary information for the requested Trusted Advisor checks. /// </para> /// </summary> [AWSProperty(Required=true)] public List<TrustedAdvisorCheckSummary> Summaries { get { return this._summaries; } set { this._summaries = value; } } // Check to see if Summaries property is set internal bool IsSetSummaries() { return this._summaries != null && this._summaries.Count > 0; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// An internal server error occurred. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServerErrorException : AmazonAWSSupportException { /// <summary> /// Constructs a new InternalServerErrorException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServerErrorException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServerErrorException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServerErrorException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServerErrorException /// </summary> /// <param name="innerException"></param> public InternalServerErrorException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServerErrorException /// </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 InternalServerErrorException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServerErrorException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServerErrorException(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 InternalServerErrorException 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 InternalServerErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The five most recent communications associated with the case. /// </summary> public partial class RecentCaseCommunications { private List<Communication> _communications = new List<Communication>(); private string _nextToken; /// <summary> /// Gets and sets the property Communications. /// <para> /// The five most recent communications associated with the case. /// </para> /// </summary> public List<Communication> Communications { get { return this._communications; } set { this._communications = value; } } // Check to see if Communications property is set internal bool IsSetCommunications() { return this._communications != null && this._communications.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A resumption point for pagination. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the RefreshTrustedAdvisorCheck operation. /// Refreshes the Trusted Advisor check that you specify using the check ID. You can get /// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation. /// /// /// <para> /// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code> /// operation to refresh them, you might see the <code>InvalidParameterValue</code> error. /// </para> /// /// <para> /// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object. /// </para> /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// <para> /// To call the Trusted Advisor operations in the Amazon Web Services Support API, you /// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe /// (Ireland) endpoints don't support the Trusted Advisor operations. For more information, /// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About /// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User /// Guide</i>. /// </para> /// </summary> public partial class RefreshTrustedAdvisorCheckRequest : AmazonAWSSupportRequest { private string _checkId; /// <summary> /// Gets and sets the property CheckId. /// <para> /// The unique identifier for the Trusted Advisor check to refresh. /// </para> /// <note> /// <para> /// Specifying the check ID of a check that is automatically refreshed causes an <code>InvalidParameterValue</code> /// error. /// </para> /// </note> /// </summary> [AWSProperty(Required=true)] public string CheckId { get { return this._checkId; } set { this._checkId = value; } } // Check to see if CheckId property is set internal bool IsSetCheckId() { return this._checkId != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The current refresh status of a Trusted Advisor check. /// </summary> public partial class RefreshTrustedAdvisorCheckResponse : AmazonWebServiceResponse { private TrustedAdvisorCheckRefreshStatus _status; /// <summary> /// Gets and sets the property Status. /// <para> /// The current refresh status for a check, including the amount of time until the check /// is eligible for refresh. /// </para> /// </summary> [AWSProperty(Required=true)] public TrustedAdvisorCheckRefreshStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Container for the parameters to the ResolveCase operation. /// Resolves a support case. This operation takes a <code>caseId</code> and returns the /// initial and final state of the case. /// /// <note> <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the /// Amazon Web Services Support API. /// </para> /// </li> <li> /// <para> /// If you call the Amazon Web Services Support API from an account that doesn't have /// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code> /// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a>. /// </para> /// </li> </ul> </note> /// </summary> public partial class ResolveCaseRequest : AmazonAWSSupportRequest { private string _caseId; /// <summary> /// Gets and sets the property CaseId. /// <para> /// The support case ID requested or returned in the call. The case ID is an alphanumeric /// string formatted as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> /// /// </para> /// </summary> public string CaseId { get { return this._caseId; } set { this._caseId = value; } } // Check to see if CaseId property is set internal bool IsSetCaseId() { return this._caseId != null; } } }
75
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The status of the case returned by the <a>ResolveCase</a> operation. /// </summary> public partial class ResolveCaseResponse : AmazonWebServiceResponse { private string _finalCaseStatus; private string _initialCaseStatus; /// <summary> /// Gets and sets the property FinalCaseStatus. /// <para> /// The status of the case after the <a>ResolveCase</a> request was processed. /// </para> /// </summary> public string FinalCaseStatus { get { return this._finalCaseStatus; } set { this._finalCaseStatus = value; } } // Check to see if FinalCaseStatus property is set internal bool IsSetFinalCaseStatus() { return this._finalCaseStatus != null; } /// <summary> /// Gets and sets the property InitialCaseStatus. /// <para> /// The status of the case when the <a>ResolveCase</a> request was sent. /// </para> /// </summary> public string InitialCaseStatus { get { return this._initialCaseStatus; } set { this._initialCaseStatus = value; } } // Check to see if InitialCaseStatus property is set internal bool IsSetInitialCaseStatus() { return this._initialCaseStatus != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Information about an Amazon Web Services service returned by the <a>DescribeServices</a> /// operation. /// </summary> public partial class Service { private List<Category> _categories = new List<Category>(); private string _code; private string _name; /// <summary> /// Gets and sets the property Categories. /// <para> /// A list of categories that describe the type of support issue a case describes. Categories /// consist of a category name and a category code. Category names and codes are passed /// to Amazon Web Services Support when you call <a>CreateCase</a>. /// </para> /// </summary> public List<Category> Categories { get { return this._categories; } set { this._categories = value; } } // Check to see if Categories property is set internal bool IsSetCategories() { return this._categories != null && this._categories.Count > 0; } /// <summary> /// Gets and sets the property Code. /// <para> /// The code for an Amazon Web Services service returned by the <a>DescribeServices</a> /// response. The <code>name</code> element contains the corresponding friendly name. /// </para> /// </summary> public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The friendly name for an Amazon Web Services service. The <code>code</code> element /// contains the corresponding code. /// </para> /// </summary> 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; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A code and name pair that represents the severity level of a support case. The available /// values depend on the support plan for the account. For more information, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#choosing-severity">Choosing /// a severity</a> in the <i>Amazon Web Services Support User Guide</i>. /// </summary> public partial class SeverityLevel { private string _code; private string _name; /// <summary> /// Gets and sets the property Code. /// <para> /// The code for case severity level. /// </para> /// /// <para> /// Valid values: <code>low</code> | <code>normal</code> | <code>high</code> | <code>urgent</code> /// | <code>critical</code> /// </para> /// </summary> public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the severity level that corresponds to the severity level code. /// </para> /// <note> /// <para> /// The values returned by the API are different from the values that appear in the Amazon /// Web Services Support Center. For example, the API uses the code <code>low</code>, /// but the name appears as General guidance in Support Center. /// </para> /// /// <para> /// The following are the API code names and how they appear in the console: /// </para> /// <ul> <li> /// <para> /// <code>low</code> - General guidance /// </para> /// </li> <li> /// <para> /// <code>normal</code> - System impaired /// </para> /// </li> <li> /// <para> /// <code>high</code> - Production system impaired /// </para> /// </li> <li> /// <para> /// <code>urgent</code> - Production system down /// </para> /// </li> <li> /// <para> /// <code>critical</code> - Business-critical system down /// </para> /// </li> </ul> </note> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#choosing-severity">Choosing /// a severity</a> in the <i>Amazon Web Services Support User Guide</i>. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Time range object with <code>startTime</code> and <code>endTime</code> range in RFC /// 3339 format. <code>'HH:mm:ss.SSS'</code>. /// </summary> public partial class SupportedHour { private string _endTime; private string _startTime; /// <summary> /// Gets and sets the property EndTime. /// <para> /// End Time. RFC 3339 format <code>'HH:mm:ss.SSS'</code>. /// </para> /// </summary> public string EndTime { get { return this._endTime; } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// Start Time. RFC 3339 format <code>'HH:mm:ss.SSS'</code>. /// </para> /// </summary> public string StartTime { get { return this._startTime; } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A JSON-formatted object that contains the available ISO 639-1 language <code>code</code>, /// <code>language</code> name and langauge <code>display</code> value. The language code /// is what should be used in the <a>CreateCase</a> call. /// </summary> public partial class SupportedLanguage { private string _code; private string _display; private string _language; /// <summary> /// Gets and sets the property Code. /// <para> /// 2 digit ISO 639-1 code. e.g. <code>en</code> /// </para> /// </summary> public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property Display. /// <para> /// Language display value e.g. <code>ENGLISH</code> /// </para> /// </summary> public string Display { get { return this._display; } set { this._display = value; } } // Check to see if Display property is set internal bool IsSetDisplay() { return this._display != null; } /// <summary> /// Gets and sets the property Language. /// <para> /// Full language description e.g. <code>ENGLISH</code> /// </para> /// </summary> public string Language { get { return this._language; } set { this._language = value; } } // Check to see if Language property is set internal bool IsSetLanguage() { return this._language != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonAWSSupportException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The container for summary information that relates to the category of the Trusted /// Advisor check. /// </summary> public partial class TrustedAdvisorCategorySpecificSummary { private TrustedAdvisorCostOptimizingSummary _costOptimizing; /// <summary> /// Gets and sets the property CostOptimizing. /// <para> /// The summary information about cost savings for a Trusted Advisor check that is in /// the Cost Optimizing category. /// </para> /// </summary> public TrustedAdvisorCostOptimizingSummary CostOptimizing { get { return this._costOptimizing; } set { this._costOptimizing = value; } } // Check to see if CostOptimizing property is set internal bool IsSetCostOptimizing() { return this._costOptimizing != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The description and metadata for a Trusted Advisor check. /// </summary> public partial class TrustedAdvisorCheckDescription { private string _category; private string _description; private string _id; private List<string> _metadata = new List<string>(); private string _name; /// <summary> /// Gets and sets the property Category. /// <para> /// The category of the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string Category { get { return this._category; } set { this._category = value; } } // Check to see if Category property is set internal bool IsSetCategory() { return this._category != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the Trusted Advisor check, which includes the alert criteria and /// recommended operations (contains HTML markup). /// </para> /// </summary> [AWSProperty(Required=true)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The column headings for the data returned by the Trusted Advisor check. The order /// of the headings corresponds to the order of the data in the <b>Metadata</b> element /// of the <a>TrustedAdvisorResourceDetail</a> for the check. <b>Metadata</b> contains /// all the data that is shown in the Excel download, even in those cases where the UI /// shows just summary data. /// </para> /// </summary> [AWSProperty(Required=true)] public List<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 && this._metadata.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The display name for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The refresh status of a Trusted Advisor check. /// </summary> public partial class TrustedAdvisorCheckRefreshStatus { private string _checkId; private long? _millisUntilNextRefreshable; private string _status; /// <summary> /// Gets and sets the property CheckId. /// <para> /// The unique identifier for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string CheckId { get { return this._checkId; } set { this._checkId = value; } } // Check to see if CheckId property is set internal bool IsSetCheckId() { return this._checkId != null; } /// <summary> /// Gets and sets the property MillisUntilNextRefreshable. /// <para> /// The amount of time, in milliseconds, until the Trusted Advisor check is eligible for /// refresh. /// </para> /// </summary> [AWSProperty(Required=true)] public long MillisUntilNextRefreshable { get { return this._millisUntilNextRefreshable.GetValueOrDefault(); } set { this._millisUntilNextRefreshable = value; } } // Check to see if MillisUntilNextRefreshable property is set internal bool IsSetMillisUntilNextRefreshable() { return this._millisUntilNextRefreshable.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the Trusted Advisor check for which a refresh has been requested: /// </para> /// <ul> <li> /// <para> /// <code>none</code> - The check is not refreshed or the non-success status exceeds /// the timeout /// </para> /// </li> <li> /// <para> /// <code>enqueued</code> - The check refresh requests has entered the refresh queue /// </para> /// </li> <li> /// <para> /// <code>processing</code> - The check refresh request is picked up by the rule processing /// engine /// </para> /// </li> <li> /// <para> /// <code>success</code> - The check is successfully refreshed /// </para> /// </li> <li> /// <para> /// <code>abandoned</code> - The check refresh has failed /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The results of a Trusted Advisor check returned by <a>DescribeTrustedAdvisorCheckResult</a>. /// </summary> public partial class TrustedAdvisorCheckResult { private TrustedAdvisorCategorySpecificSummary _categorySpecificSummary; private string _checkId; private List<TrustedAdvisorResourceDetail> _flaggedResources = new List<TrustedAdvisorResourceDetail>(); private TrustedAdvisorResourcesSummary _resourcesSummary; private string _status; private string _timestamp; /// <summary> /// Gets and sets the property CategorySpecificSummary. /// <para> /// Summary information that relates to the category of the check. Cost Optimizing is /// the only category that is currently supported. /// </para> /// </summary> [AWSProperty(Required=true)] public TrustedAdvisorCategorySpecificSummary CategorySpecificSummary { get { return this._categorySpecificSummary; } set { this._categorySpecificSummary = value; } } // Check to see if CategorySpecificSummary property is set internal bool IsSetCategorySpecificSummary() { return this._categorySpecificSummary != null; } /// <summary> /// Gets and sets the property CheckId. /// <para> /// The unique identifier for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string CheckId { get { return this._checkId; } set { this._checkId = value; } } // Check to see if CheckId property is set internal bool IsSetCheckId() { return this._checkId != null; } /// <summary> /// Gets and sets the property FlaggedResources. /// <para> /// The details about each resource listed in the check result. /// </para> /// </summary> [AWSProperty(Required=true)] public List<TrustedAdvisorResourceDetail> FlaggedResources { get { return this._flaggedResources; } set { this._flaggedResources = value; } } // Check to see if FlaggedResources property is set internal bool IsSetFlaggedResources() { return this._flaggedResources != null && this._flaggedResources.Count > 0; } /// <summary> /// Gets and sets the property ResourcesSummary. /// </summary> [AWSProperty(Required=true)] public TrustedAdvisorResourcesSummary ResourcesSummary { get { return this._resourcesSummary; } set { this._resourcesSummary = value; } } // Check to see if ResourcesSummary property is set internal bool IsSetResourcesSummary() { return this._resourcesSummary != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or /// "not_available". /// </para> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Timestamp. /// <para> /// The time of the last refresh of the check. /// </para> /// </summary> [AWSProperty(Required=true)] public string Timestamp { get { return this._timestamp; } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// A summary of a Trusted Advisor check result, including the alert status, last refresh, /// and number of resources examined. /// </summary> public partial class TrustedAdvisorCheckSummary { private TrustedAdvisorCategorySpecificSummary _categorySpecificSummary; private string _checkId; private bool? _hasFlaggedResources; private TrustedAdvisorResourcesSummary _resourcesSummary; private string _status; private string _timestamp; /// <summary> /// Gets and sets the property CategorySpecificSummary. /// <para> /// Summary information that relates to the category of the check. Cost Optimizing is /// the only category that is currently supported. /// </para> /// </summary> [AWSProperty(Required=true)] public TrustedAdvisorCategorySpecificSummary CategorySpecificSummary { get { return this._categorySpecificSummary; } set { this._categorySpecificSummary = value; } } // Check to see if CategorySpecificSummary property is set internal bool IsSetCategorySpecificSummary() { return this._categorySpecificSummary != null; } /// <summary> /// Gets and sets the property CheckId. /// <para> /// The unique identifier for the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string CheckId { get { return this._checkId; } set { this._checkId = value; } } // Check to see if CheckId property is set internal bool IsSetCheckId() { return this._checkId != null; } /// <summary> /// Gets and sets the property HasFlaggedResources. /// <para> /// Specifies whether the Trusted Advisor check has flagged resources. /// </para> /// </summary> public bool HasFlaggedResources { get { return this._hasFlaggedResources.GetValueOrDefault(); } set { this._hasFlaggedResources = value; } } // Check to see if HasFlaggedResources property is set internal bool IsSetHasFlaggedResources() { return this._hasFlaggedResources.HasValue; } /// <summary> /// Gets and sets the property ResourcesSummary. /// </summary> [AWSProperty(Required=true)] public TrustedAdvisorResourcesSummary ResourcesSummary { get { return this._resourcesSummary; } set { this._resourcesSummary = value; } } // Check to see if ResourcesSummary property is set internal bool IsSetResourcesSummary() { return this._resourcesSummary != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or /// "not_available". /// </para> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Timestamp. /// <para> /// The time of the last refresh of the check. /// </para> /// </summary> [AWSProperty(Required=true)] public string Timestamp { get { return this._timestamp; } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp != 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// The estimated cost savings that might be realized if the recommended operations are /// taken. /// </summary> public partial class TrustedAdvisorCostOptimizingSummary { private double? _estimatedMonthlySavings; private double? _estimatedPercentMonthlySavings; /// <summary> /// Gets and sets the property EstimatedMonthlySavings. /// <para> /// The estimated monthly savings that might be realized if the recommended operations /// are taken. /// </para> /// </summary> [AWSProperty(Required=true)] public double EstimatedMonthlySavings { get { return this._estimatedMonthlySavings.GetValueOrDefault(); } set { this._estimatedMonthlySavings = value; } } // Check to see if EstimatedMonthlySavings property is set internal bool IsSetEstimatedMonthlySavings() { return this._estimatedMonthlySavings.HasValue; } /// <summary> /// Gets and sets the property EstimatedPercentMonthlySavings. /// <para> /// The estimated percentage of savings that might be realized if the recommended operations /// are taken. /// </para> /// </summary> [AWSProperty(Required=true)] public double EstimatedPercentMonthlySavings { get { return this._estimatedPercentMonthlySavings.GetValueOrDefault(); } set { this._estimatedPercentMonthlySavings = value; } } // Check to see if EstimatedPercentMonthlySavings property is set internal bool IsSetEstimatedPercentMonthlySavings() { return this._estimatedPercentMonthlySavings.HasValue; } } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Contains information about a resource identified by a Trusted Advisor check. /// </summary> public partial class TrustedAdvisorResourceDetail { private bool? _isSuppressed; private List<string> _metadata = new List<string>(); private string _region; private string _resourceId; private string _status; /// <summary> /// Gets and sets the property IsSuppressed. /// <para> /// Specifies whether the Amazon Web Services resource was ignored by Trusted Advisor /// because it was marked as suppressed by the user. /// </para> /// </summary> public bool IsSuppressed { get { return this._isSuppressed.GetValueOrDefault(); } set { this._isSuppressed = value; } } // Check to see if IsSuppressed property is set internal bool IsSetIsSuppressed() { return this._isSuppressed.HasValue; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// Additional information about the identified resource. The exact metadata and its order /// can be obtained by inspecting the <a>TrustedAdvisorCheckDescription</a> object returned /// by the call to <a>DescribeTrustedAdvisorChecks</a>. <b>Metadata</b> contains all the /// data that is shown in the Excel download, even in those cases where the UI shows just /// summary data. /// </para> /// </summary> [AWSProperty(Required=true)] public List<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 && this._metadata.Count > 0; } /// <summary> /// Gets and sets the property Region. /// <para> /// The Amazon Web Services Region in which the identified resource is located. /// </para> /// </summary> public string Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The unique identifier for the identified resource. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status code for the resource identified in the Trusted Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AWSSupport.Model { /// <summary> /// Details about Amazon Web Services resources that were analyzed in a call to Trusted /// Advisor <a>DescribeTrustedAdvisorCheckSummaries</a>. /// </summary> public partial class TrustedAdvisorResourcesSummary { private long? _resourcesFlagged; private long? _resourcesIgnored; private long? _resourcesProcessed; private long? _resourcesSuppressed; /// <summary> /// Gets and sets the property ResourcesFlagged. /// <para> /// The number of Amazon Web Services resources that were flagged (listed) by the Trusted /// Advisor check. /// </para> /// </summary> [AWSProperty(Required=true)] public long ResourcesFlagged { get { return this._resourcesFlagged.GetValueOrDefault(); } set { this._resourcesFlagged = value; } } // Check to see if ResourcesFlagged property is set internal bool IsSetResourcesFlagged() { return this._resourcesFlagged.HasValue; } /// <summary> /// Gets and sets the property ResourcesIgnored. /// <para> /// The number of Amazon Web Services resources ignored by Trusted Advisor because information /// was unavailable. /// </para> /// </summary> [AWSProperty(Required=true)] public long ResourcesIgnored { get { return this._resourcesIgnored.GetValueOrDefault(); } set { this._resourcesIgnored = value; } } // Check to see if ResourcesIgnored property is set internal bool IsSetResourcesIgnored() { return this._resourcesIgnored.HasValue; } /// <summary> /// Gets and sets the property ResourcesProcessed. /// <para> /// The number of Amazon Web Services resources that were analyzed by the Trusted Advisor /// check. /// </para> /// </summary> [AWSProperty(Required=true)] public long ResourcesProcessed { get { return this._resourcesProcessed.GetValueOrDefault(); } set { this._resourcesProcessed = value; } } // Check to see if ResourcesProcessed property is set internal bool IsSetResourcesProcessed() { return this._resourcesProcessed.HasValue; } /// <summary> /// Gets and sets the property ResourcesSuppressed. /// <para> /// The number of Amazon Web Services resources ignored by Trusted Advisor because they /// were marked as suppressed by the user. /// </para> /// </summary> [AWSProperty(Required=true)] public long ResourcesSuppressed { get { return this._resourcesSuppressed.GetValueOrDefault(); } set { this._resourcesSuppressed = value; } } // Check to see if ResourcesSuppressed property is set internal bool IsSetResourcesSuppressed() { return this._resourcesSuppressed.HasValue; } } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// AddAttachmentsToSet Request Marshaller /// </summary> public class AddAttachmentsToSetRequestMarshaller : IMarshaller<IRequest, AddAttachmentsToSetRequest> , 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((AddAttachmentsToSetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AddAttachmentsToSetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport"); string target = "AWSSupport_20130415.AddAttachmentsToSet"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttachments()) { context.Writer.WritePropertyName("attachments"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttachmentsListValue in publicRequest.Attachments) { context.Writer.WriteObjectStart(); var marshaller = AttachmentMarshaller.Instance; marshaller.Marshall(publicRequestAttachmentsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetAttachmentSetId()) { context.Writer.WritePropertyName("attachmentSetId"); context.Writer.Write(publicRequest.AttachmentSetId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AddAttachmentsToSetRequestMarshaller _instance = new AddAttachmentsToSetRequestMarshaller(); internal static AddAttachmentsToSetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddAttachmentsToSetRequestMarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AddAttachmentsToSet operation /// </summary> public class AddAttachmentsToSetResponseUnmarshaller : 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) { AddAttachmentsToSetResponse response = new AddAttachmentsToSetResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attachmentSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AttachmentSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ExpiryTime = 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("AttachmentLimitExceeded")) { return AttachmentLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetExpired")) { return AttachmentSetExpiredExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetIdNotFound")) { return AttachmentSetIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetSizeLimitExceeded")) { return AttachmentSetSizeLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AddAttachmentsToSetResponseUnmarshaller _instance = new AddAttachmentsToSetResponseUnmarshaller(); internal static AddAttachmentsToSetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddAttachmentsToSetResponseUnmarshaller Instance { get { return _instance; } } } }
132
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// AddCommunicationToCase Request Marshaller /// </summary> public class AddCommunicationToCaseRequestMarshaller : IMarshaller<IRequest, AddCommunicationToCaseRequest> , 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((AddCommunicationToCaseRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AddCommunicationToCaseRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport"); string target = "AWSSupport_20130415.AddCommunicationToCase"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttachmentSetId()) { context.Writer.WritePropertyName("attachmentSetId"); context.Writer.Write(publicRequest.AttachmentSetId); } if(publicRequest.IsSetCaseId()) { context.Writer.WritePropertyName("caseId"); context.Writer.Write(publicRequest.CaseId); } if(publicRequest.IsSetCcEmailAddresses()) { context.Writer.WritePropertyName("ccEmailAddresses"); context.Writer.WriteArrayStart(); foreach(var publicRequestCcEmailAddressesListValue in publicRequest.CcEmailAddresses) { context.Writer.Write(publicRequestCcEmailAddressesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetCommunicationBody()) { context.Writer.WritePropertyName("communicationBody"); context.Writer.Write(publicRequest.CommunicationBody); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AddCommunicationToCaseRequestMarshaller _instance = new AddCommunicationToCaseRequestMarshaller(); internal static AddCommunicationToCaseRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddCommunicationToCaseRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AddCommunicationToCase operation /// </summary> public class AddCommunicationToCaseResponseUnmarshaller : 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) { AddCommunicationToCaseResponse response = new AddCommunicationToCaseResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("result", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.Result = 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("AttachmentSetExpired")) { return AttachmentSetExpiredExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetIdNotFound")) { return AttachmentSetIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CaseIdNotFound")) { return CaseIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AddCommunicationToCaseResponseUnmarshaller _instance = new AddCommunicationToCaseResponseUnmarshaller(); internal static AddCommunicationToCaseResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddCommunicationToCaseResponseUnmarshaller 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentDetails Object /// </summary> public class AttachmentDetailsUnmarshaller : IUnmarshaller<AttachmentDetails, XmlUnmarshallerContext>, IUnmarshaller<AttachmentDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AttachmentDetails IUnmarshaller<AttachmentDetails, 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 AttachmentDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AttachmentDetails unmarshalledObject = new AttachmentDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attachmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AttachmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FileName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AttachmentDetailsUnmarshaller _instance = new AttachmentDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentDetailsUnmarshaller 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentIdNotFoundException Object /// </summary> public class AttachmentIdNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<AttachmentIdNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AttachmentIdNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AttachmentIdNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AttachmentIdNotFoundException unmarshalledObject = new AttachmentIdNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AttachmentIdNotFoundExceptionUnmarshaller _instance = new AttachmentIdNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentIdNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentLimitExceededException Object /// </summary> public class AttachmentLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<AttachmentLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AttachmentLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AttachmentLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AttachmentLimitExceededException unmarshalledObject = new AttachmentLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AttachmentLimitExceededExceptionUnmarshaller _instance = new AttachmentLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Attachment Marshaller /// </summary> public class AttachmentMarshaller : IRequestMarshaller<Attachment, 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(Attachment requestObject, JsonMarshallerContext context) { if(requestObject.IsSetData()) { context.Writer.WritePropertyName("data"); context.Writer.Write(StringUtils.FromMemoryStream(requestObject.Data)); } if(requestObject.IsSetFileName()) { context.Writer.WritePropertyName("fileName"); context.Writer.Write(requestObject.FileName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AttachmentMarshaller Instance = new AttachmentMarshaller(); } }
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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentSetExpiredException Object /// </summary> public class AttachmentSetExpiredExceptionUnmarshaller : IErrorResponseUnmarshaller<AttachmentSetExpiredException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AttachmentSetExpiredException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AttachmentSetExpiredException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AttachmentSetExpiredException unmarshalledObject = new AttachmentSetExpiredException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AttachmentSetExpiredExceptionUnmarshaller _instance = new AttachmentSetExpiredExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentSetExpiredExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentSetIdNotFoundException Object /// </summary> public class AttachmentSetIdNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<AttachmentSetIdNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AttachmentSetIdNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AttachmentSetIdNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AttachmentSetIdNotFoundException unmarshalledObject = new AttachmentSetIdNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AttachmentSetIdNotFoundExceptionUnmarshaller _instance = new AttachmentSetIdNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentSetIdNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AttachmentSetSizeLimitExceededException Object /// </summary> public class AttachmentSetSizeLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<AttachmentSetSizeLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AttachmentSetSizeLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AttachmentSetSizeLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AttachmentSetSizeLimitExceededException unmarshalledObject = new AttachmentSetSizeLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AttachmentSetSizeLimitExceededExceptionUnmarshaller _instance = new AttachmentSetSizeLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentSetSizeLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Attachment Object /// </summary> public class AttachmentUnmarshaller : IUnmarshaller<Attachment, XmlUnmarshallerContext>, IUnmarshaller<Attachment, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Attachment IUnmarshaller<Attachment, 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 Attachment Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Attachment unmarshalledObject = new Attachment(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("data", targetDepth)) { var unmarshaller = MemoryStreamUnmarshaller.Instance; unmarshalledObject.Data = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FileName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AttachmentUnmarshaller _instance = new AttachmentUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AttachmentUnmarshaller 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 support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CaseCreationLimitExceededException Object /// </summary> public class CaseCreationLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<CaseCreationLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CaseCreationLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CaseCreationLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CaseCreationLimitExceededException unmarshalledObject = new CaseCreationLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CaseCreationLimitExceededExceptionUnmarshaller _instance = new CaseCreationLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CaseCreationLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CaseDetails Object /// </summary> public class CaseDetailsUnmarshaller : IUnmarshaller<CaseDetails, XmlUnmarshallerContext>, IUnmarshaller<CaseDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CaseDetails IUnmarshaller<CaseDetails, 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 CaseDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CaseDetails unmarshalledObject = new CaseDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("caseId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CaseId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("categoryCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CategoryCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ccEmailAddresses", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.CcEmailAddresses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("displayId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DisplayId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("language", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Language = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("recentCommunications", targetDepth)) { var unmarshaller = RecentCaseCommunicationsUnmarshaller.Instance; unmarshalledObject.RecentCommunications = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("severityCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SeverityCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("subject", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Subject = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("submittedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SubmittedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeCreated", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TimeCreated = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CaseDetailsUnmarshaller _instance = new CaseDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CaseDetailsUnmarshaller Instance { get { return _instance; } } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AWSSupport.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CaseIdNotFoundException Object /// </summary> public class CaseIdNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<CaseIdNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CaseIdNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CaseIdNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CaseIdNotFoundException unmarshalledObject = new CaseIdNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CaseIdNotFoundExceptionUnmarshaller _instance = new CaseIdNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CaseIdNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85