/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apigatewayv2-2018-11-29.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.ApiGatewayV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ApiGatewayV2.Model.Internal.MarshallTransformations { /// /// DomainNameConfiguration Marshaller /// public class DomainNameConfigurationMarshaller : IRequestMarshaller { /// /// Unmarshaller the response from the service to the response class. /// /// /// /// public void Marshall(DomainNameConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiGatewayDomainName()) { context.Writer.WritePropertyName("apiGatewayDomainName"); context.Writer.Write(requestObject.ApiGatewayDomainName); } if(requestObject.IsSetCertificateArn()) { context.Writer.WritePropertyName("certificateArn"); context.Writer.Write(requestObject.CertificateArn); } if(requestObject.IsSetCertificateName()) { context.Writer.WritePropertyName("certificateName"); context.Writer.Write(requestObject.CertificateName); } if(requestObject.IsSetCertificateUploadDate()) { context.Writer.WritePropertyName("certificateUploadDate"); context.Writer.Write(StringUtils.FromDateTimeToISO8601(requestObject.CertificateUploadDate)); } if(requestObject.IsSetDomainNameStatus()) { context.Writer.WritePropertyName("domainNameStatus"); context.Writer.Write(requestObject.DomainNameStatus); } if(requestObject.IsSetDomainNameStatusMessage()) { context.Writer.WritePropertyName("domainNameStatusMessage"); context.Writer.Write(requestObject.DomainNameStatusMessage); } if(requestObject.IsSetEndpointType()) { context.Writer.WritePropertyName("endpointType"); context.Writer.Write(requestObject.EndpointType); } if(requestObject.IsSetHostedZoneId()) { context.Writer.WritePropertyName("hostedZoneId"); context.Writer.Write(requestObject.HostedZoneId); } if(requestObject.IsSetOwnershipVerificationCertificateArn()) { context.Writer.WritePropertyName("ownershipVerificationCertificateArn"); context.Writer.Write(requestObject.OwnershipVerificationCertificateArn); } if(requestObject.IsSetSecurityPolicy()) { context.Writer.WritePropertyName("securityPolicy"); context.Writer.Write(requestObject.SecurityPolicy); } } /// /// Singleton Marshaller. /// public readonly static DomainNameConfigurationMarshaller Instance = new DomainNameConfigurationMarshaller(); } }