/// <summary>
        /// <para> Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are
        /// valid. </para> <para> This action returns a list of messages indicating any errors or warnings associated with the selection of option
        /// values. </para>
        /// </summary>
        ///
        /// <param name="validateConfigurationSettingsRequest">Container for the necessary parameters to execute the ValidateConfigurationSettings
        ///           service method on AmazonElasticBeanstalk.</param>
        ///
        /// <returns>The response from the ValidateConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
        ///
        public ValidateConfigurationSettingsResponse ValidateConfigurationSettings(ValidateConfigurationSettingsRequest validateConfigurationSettingsRequest)
        {
            IRequest <ValidateConfigurationSettingsRequest> request  = new ValidateConfigurationSettingsRequestMarshaller().Marshall(validateConfigurationSettingsRequest);
            ValidateConfigurationSettingsResponse           response = Invoke <ValidateConfigurationSettingsRequest, ValidateConfigurationSettingsResponse> (request, this.signer, ValidateConfigurationSettingsResponseUnmarshaller.GetInstance());

            return(response);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, ValidateConfigurationSettingsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Messages/member", targetDepth))
                    {
                        var unmarshaller = ValidationMessageUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.Messages.Add(item);
                        continue;
                    }
                }
            }

            return;
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ValidateConfigurationSettingsResponse response = new ValidateConfigurationSettingsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("ValidateConfigurationSettingsResult", 2))
                    {
                        UnmarshallResult(context, response);
                        continue;
                    }

                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
                    }
                }
            }

            return(response);
        }
Example #4
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, ValidateConfigurationSettingsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Messages/member", targetDepth))
                    {
                        response.Messages.Add(ValidationMessageUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }



            return;
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ValidateConfigurationSettingsResponse response = new ValidateConfigurationSettingsResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("ValidateConfigurationSettingsResult", 2))
                    {
                        response.ValidateConfigurationSettingsResult = ValidateConfigurationSettingsResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }