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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// IncrementalPullConfig Marshaller
/// </summary>
public class IncrementalPullConfigMarshaller : IRequestMarshaller<IncrementalPullConfig, 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(IncrementalPullConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDatetimeTypeFieldName())
{
context.Writer.WritePropertyName("datetimeTypeFieldName");
context.Writer.Write(requestObject.DatetimeTypeFieldName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static IncrementalPullConfigMarshaller Instance = new IncrementalPullConfigMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for IncrementalPullConfig Object
/// </summary>
public class IncrementalPullConfigUnmarshaller : IUnmarshaller<IncrementalPullConfig, XmlUnmarshallerContext>, IUnmarshaller<IncrementalPullConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
IncrementalPullConfig IUnmarshaller<IncrementalPullConfig, 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 IncrementalPullConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
IncrementalPullConfig unmarshalledObject = new IncrementalPullConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("datetimeTypeFieldName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DatetimeTypeFieldName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static IncrementalPullConfigUnmarshaller _instance = new IncrementalPullConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static IncrementalPullConfigUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// InforNexusConnectorProfileCredentials Marshaller
/// </summary>
public class InforNexusConnectorProfileCredentialsMarshaller : IRequestMarshaller<InforNexusConnectorProfileCredentials, 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(InforNexusConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessKeyId())
{
context.Writer.WritePropertyName("accessKeyId");
context.Writer.Write(requestObject.AccessKeyId);
}
if(requestObject.IsSetDatakey())
{
context.Writer.WritePropertyName("datakey");
context.Writer.Write(requestObject.Datakey);
}
if(requestObject.IsSetSecretAccessKey())
{
context.Writer.WritePropertyName("secretAccessKey");
context.Writer.Write(requestObject.SecretAccessKey);
}
if(requestObject.IsSetUserId())
{
context.Writer.WritePropertyName("userId");
context.Writer.Write(requestObject.UserId);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static InforNexusConnectorProfileCredentialsMarshaller Instance = new InforNexusConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// InforNexusConnectorProfileProperties Marshaller
/// </summary>
public class InforNexusConnectorProfilePropertiesMarshaller : IRequestMarshaller<InforNexusConnectorProfileProperties, 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(InforNexusConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetInstanceUrl())
{
context.Writer.WritePropertyName("instanceUrl");
context.Writer.Write(requestObject.InstanceUrl);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static InforNexusConnectorProfilePropertiesMarshaller Instance = new InforNexusConnectorProfilePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InforNexusConnectorProfileProperties Object
/// </summary>
public class InforNexusConnectorProfilePropertiesUnmarshaller : IUnmarshaller<InforNexusConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<InforNexusConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
InforNexusConnectorProfileProperties IUnmarshaller<InforNexusConnectorProfileProperties, 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 InforNexusConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
InforNexusConnectorProfileProperties unmarshalledObject = new InforNexusConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("instanceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static InforNexusConnectorProfilePropertiesUnmarshaller _instance = new InforNexusConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InforNexusConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InforNexusMetadata Object
/// </summary>
public class InforNexusMetadataUnmarshaller : IUnmarshaller<InforNexusMetadata, XmlUnmarshallerContext>, IUnmarshaller<InforNexusMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
InforNexusMetadata IUnmarshaller<InforNexusMetadata, 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 InforNexusMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
InforNexusMetadata unmarshalledObject = new InforNexusMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InforNexusMetadataUnmarshaller _instance = new InforNexusMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InforNexusMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// InforNexusSourceProperties Marshaller
/// </summary>
public class InforNexusSourcePropertiesMarshaller : IRequestMarshaller<InforNexusSourceProperties, 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(InforNexusSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static InforNexusSourcePropertiesMarshaller Instance = new InforNexusSourcePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InforNexusSourceProperties Object
/// </summary>
public class InforNexusSourcePropertiesUnmarshaller : IUnmarshaller<InforNexusSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<InforNexusSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
InforNexusSourceProperties IUnmarshaller<InforNexusSourceProperties, 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 InforNexusSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
InforNexusSourceProperties unmarshalledObject = new InforNexusSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static InforNexusSourcePropertiesUnmarshaller _instance = new InforNexusSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InforNexusSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerException Object
/// </summary>
public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerException 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 InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerExceptionUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// LambdaConnectorProvisioningConfig Marshaller
/// </summary>
public class LambdaConnectorProvisioningConfigMarshaller : IRequestMarshaller<LambdaConnectorProvisioningConfig, 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(LambdaConnectorProvisioningConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetLambdaArn())
{
context.Writer.WritePropertyName("lambdaArn");
context.Writer.Write(requestObject.LambdaArn);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static LambdaConnectorProvisioningConfigMarshaller Instance = new LambdaConnectorProvisioningConfigMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for LambdaConnectorProvisioningConfig Object
/// </summary>
public class LambdaConnectorProvisioningConfigUnmarshaller : IUnmarshaller<LambdaConnectorProvisioningConfig, XmlUnmarshallerContext>, IUnmarshaller<LambdaConnectorProvisioningConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
LambdaConnectorProvisioningConfig IUnmarshaller<LambdaConnectorProvisioningConfig, 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 LambdaConnectorProvisioningConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
LambdaConnectorProvisioningConfig unmarshalledObject = new LambdaConnectorProvisioningConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("lambdaArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LambdaArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static LambdaConnectorProvisioningConfigUnmarshaller _instance = new LambdaConnectorProvisioningConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static LambdaConnectorProvisioningConfigUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListConnectorEntities Request Marshaller
/// </summary>
public class ListConnectorEntitiesRequestMarshaller : IMarshaller<IRequest, ListConnectorEntitiesRequest> , 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((ListConnectorEntitiesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListConnectorEntitiesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "POST";
request.ResourcePath = "/list-connector-entities";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetApiVersion())
{
context.Writer.WritePropertyName("apiVersion");
context.Writer.Write(publicRequest.ApiVersion);
}
if(publicRequest.IsSetConnectorProfileName())
{
context.Writer.WritePropertyName("connectorProfileName");
context.Writer.Write(publicRequest.ConnectorProfileName);
}
if(publicRequest.IsSetConnectorType())
{
context.Writer.WritePropertyName("connectorType");
context.Writer.Write(publicRequest.ConnectorType);
}
if(publicRequest.IsSetEntitiesPath())
{
context.Writer.WritePropertyName("entitiesPath");
context.Writer.Write(publicRequest.EntitiesPath);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListConnectorEntitiesRequestMarshaller _instance = new ListConnectorEntitiesRequestMarshaller();
internal static ListConnectorEntitiesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectorEntitiesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 131 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListConnectorEntities operation
/// </summary>
public class ListConnectorEntitiesResponseUnmarshaller : 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)
{
ListConnectorEntitiesResponse response = new ListConnectorEntitiesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("connectorEntityMap", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, List<ConnectorEntity>, StringUnmarshaller, ListUnmarshaller<ConnectorEntity, ConnectorEntityUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ConnectorEntity, ConnectorEntityUnmarshaller>(ConnectorEntityUnmarshaller.Instance));
response.ConnectorEntityMap = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = 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("ConnectorAuthenticationException"))
{
return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException"))
{
return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListConnectorEntitiesResponseUnmarshaller _instance = new ListConnectorEntitiesResponseUnmarshaller();
internal static ListConnectorEntitiesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectorEntitiesResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListConnectors Request Marshaller
/// </summary>
public class ListConnectorsRequestMarshaller : IMarshaller<IRequest, ListConnectorsRequest> , 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((ListConnectorsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListConnectorsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "POST";
request.ResourcePath = "/list-connectors";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListConnectorsRequestMarshaller _instance = new ListConnectorsRequestMarshaller();
internal static ListConnectorsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectorsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListConnectors operation
/// </summary>
public class ListConnectorsResponseUnmarshaller : 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)
{
ListConnectorsResponse response = new ListConnectorsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("connectors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConnectorDetail, ConnectorDetailUnmarshaller>(ConnectorDetailUnmarshaller.Instance);
response.Connectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListConnectorsResponseUnmarshaller _instance = new ListConnectorsResponseUnmarshaller();
internal static ListConnectorsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectorsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListFlows Request Marshaller
/// </summary>
public class ListFlowsRequestMarshaller : IMarshaller<IRequest, ListFlowsRequest> , 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((ListFlowsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListFlowsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "POST";
request.ResourcePath = "/list-flows";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListFlowsRequestMarshaller _instance = new ListFlowsRequestMarshaller();
internal static ListFlowsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListFlowsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListFlows operation
/// </summary>
public class ListFlowsResponseUnmarshaller : 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)
{
ListFlowsResponse response = new ListFlowsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("flows", targetDepth))
{
var unmarshaller = new ListUnmarshaller<FlowDefinition, FlowDefinitionUnmarshaller>(FlowDefinitionUnmarshaller.Instance);
response.Flows = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListFlowsResponseUnmarshaller _instance = new ListFlowsResponseUnmarshaller();
internal static ListFlowsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListFlowsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListTagsForResource Request Marshaller
/// </summary>
public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , 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((ListTagsForResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListTagsForResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "GET";
if (!publicRequest.IsSetResourceArn())
throw new AmazonAppflowException("Request object does not have required field ResourceArn set");
request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn));
request.ResourcePath = "/tags/{resourceArn}";
return request;
}
private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller();
internal static ListTagsForResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListTagsForResource operation
/// </summary>
public class ListTagsForResourceResponseUnmarshaller : 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)
{
ListTagsForResourceResponse response = new ListTagsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller();
internal static ListTagsForResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// LookoutMetricsDestinationProperties Marshaller
/// </summary>
public class LookoutMetricsDestinationPropertiesMarshaller : IRequestMarshaller<LookoutMetricsDestinationProperties, 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(LookoutMetricsDestinationProperties requestObject, JsonMarshallerContext context)
{
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static LookoutMetricsDestinationPropertiesMarshaller Instance = new LookoutMetricsDestinationPropertiesMarshaller();
}
} | 56 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for LookoutMetricsDestinationProperties Object
/// </summary>
public class LookoutMetricsDestinationPropertiesUnmarshaller : IUnmarshaller<LookoutMetricsDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<LookoutMetricsDestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
LookoutMetricsDestinationProperties IUnmarshaller<LookoutMetricsDestinationProperties, 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 LookoutMetricsDestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
LookoutMetricsDestinationProperties unmarshalledObject = new LookoutMetricsDestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static LookoutMetricsDestinationPropertiesUnmarshaller _instance = new LookoutMetricsDestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static LookoutMetricsDestinationPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// MarketoConnectorProfileCredentials Marshaller
/// </summary>
public class MarketoConnectorProfileCredentialsMarshaller : IRequestMarshaller<MarketoConnectorProfileCredentials, 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(MarketoConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessToken())
{
context.Writer.WritePropertyName("accessToken");
context.Writer.Write(requestObject.AccessToken);
}
if(requestObject.IsSetClientId())
{
context.Writer.WritePropertyName("clientId");
context.Writer.Write(requestObject.ClientId);
}
if(requestObject.IsSetClientSecret())
{
context.Writer.WritePropertyName("clientSecret");
context.Writer.Write(requestObject.ClientSecret);
}
if(requestObject.IsSetOAuthRequest())
{
context.Writer.WritePropertyName("oAuthRequest");
context.Writer.WriteObjectStart();
var marshaller = ConnectorOAuthRequestMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthRequest, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MarketoConnectorProfileCredentialsMarshaller Instance = new MarketoConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// MarketoConnectorProfileProperties Marshaller
/// </summary>
public class MarketoConnectorProfilePropertiesMarshaller : IRequestMarshaller<MarketoConnectorProfileProperties, 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(MarketoConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetInstanceUrl())
{
context.Writer.WritePropertyName("instanceUrl");
context.Writer.Write(requestObject.InstanceUrl);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MarketoConnectorProfilePropertiesMarshaller Instance = new MarketoConnectorProfilePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MarketoConnectorProfileProperties Object
/// </summary>
public class MarketoConnectorProfilePropertiesUnmarshaller : IUnmarshaller<MarketoConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<MarketoConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MarketoConnectorProfileProperties IUnmarshaller<MarketoConnectorProfileProperties, 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 MarketoConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MarketoConnectorProfileProperties unmarshalledObject = new MarketoConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("instanceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MarketoConnectorProfilePropertiesUnmarshaller _instance = new MarketoConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MarketoConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// MarketoDestinationProperties Marshaller
/// </summary>
public class MarketoDestinationPropertiesMarshaller : IRequestMarshaller<MarketoDestinationProperties, 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(MarketoDestinationProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetErrorHandlingConfig())
{
context.Writer.WritePropertyName("errorHandlingConfig");
context.Writer.WriteObjectStart();
var marshaller = ErrorHandlingConfigMarshaller.Instance;
marshaller.Marshall(requestObject.ErrorHandlingConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MarketoDestinationPropertiesMarshaller Instance = new MarketoDestinationPropertiesMarshaller();
}
} | 73 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MarketoDestinationProperties Object
/// </summary>
public class MarketoDestinationPropertiesUnmarshaller : IUnmarshaller<MarketoDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<MarketoDestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MarketoDestinationProperties IUnmarshaller<MarketoDestinationProperties, 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 MarketoDestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MarketoDestinationProperties unmarshalledObject = new MarketoDestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("errorHandlingConfig", targetDepth))
{
var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance;
unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MarketoDestinationPropertiesUnmarshaller _instance = new MarketoDestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MarketoDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MarketoMetadata Object
/// </summary>
public class MarketoMetadataUnmarshaller : IUnmarshaller<MarketoMetadata, XmlUnmarshallerContext>, IUnmarshaller<MarketoMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MarketoMetadata IUnmarshaller<MarketoMetadata, 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 MarketoMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MarketoMetadata unmarshalledObject = new MarketoMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static MarketoMetadataUnmarshaller _instance = new MarketoMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MarketoMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// MarketoSourceProperties Marshaller
/// </summary>
public class MarketoSourcePropertiesMarshaller : IRequestMarshaller<MarketoSourceProperties, 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(MarketoSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MarketoSourcePropertiesMarshaller Instance = new MarketoSourcePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MarketoSourceProperties Object
/// </summary>
public class MarketoSourcePropertiesUnmarshaller : IUnmarshaller<MarketoSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<MarketoSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MarketoSourceProperties IUnmarshaller<MarketoSourceProperties, 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 MarketoSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MarketoSourceProperties unmarshalledObject = new MarketoSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MarketoSourcePropertiesUnmarshaller _instance = new MarketoSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MarketoSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// MetadataCatalogConfig Marshaller
/// </summary>
public class MetadataCatalogConfigMarshaller : IRequestMarshaller<MetadataCatalogConfig, 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(MetadataCatalogConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetGlueDataCatalog())
{
context.Writer.WritePropertyName("glueDataCatalog");
context.Writer.WriteObjectStart();
var marshaller = GlueDataCatalogConfigMarshaller.Instance;
marshaller.Marshall(requestObject.GlueDataCatalog, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MetadataCatalogConfigMarshaller Instance = new MetadataCatalogConfigMarshaller();
}
} | 67 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MetadataCatalogConfig Object
/// </summary>
public class MetadataCatalogConfigUnmarshaller : IUnmarshaller<MetadataCatalogConfig, XmlUnmarshallerContext>, IUnmarshaller<MetadataCatalogConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MetadataCatalogConfig IUnmarshaller<MetadataCatalogConfig, 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 MetadataCatalogConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MetadataCatalogConfig unmarshalledObject = new MetadataCatalogConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("glueDataCatalog", targetDepth))
{
var unmarshaller = GlueDataCatalogConfigUnmarshaller.Instance;
unmarshalledObject.GlueDataCatalog = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MetadataCatalogConfigUnmarshaller _instance = new MetadataCatalogConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MetadataCatalogConfigUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MetadataCatalogDetail Object
/// </summary>
public class MetadataCatalogDetailUnmarshaller : IUnmarshaller<MetadataCatalogDetail, XmlUnmarshallerContext>, IUnmarshaller<MetadataCatalogDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MetadataCatalogDetail IUnmarshaller<MetadataCatalogDetail, 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 MetadataCatalogDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MetadataCatalogDetail unmarshalledObject = new MetadataCatalogDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("catalogType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CatalogType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("partitionRegistrationOutput", targetDepth))
{
var unmarshaller = RegistrationOutputUnmarshaller.Instance;
unmarshalledObject.PartitionRegistrationOutput = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tableName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TableName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tableRegistrationOutput", targetDepth))
{
var unmarshaller = RegistrationOutputUnmarshaller.Instance;
unmarshalledObject.TableRegistrationOutput = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MetadataCatalogDetailUnmarshaller _instance = new MetadataCatalogDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MetadataCatalogDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// OAuth2Credentials Marshaller
/// </summary>
public class OAuth2CredentialsMarshaller : IRequestMarshaller<OAuth2Credentials, 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(OAuth2Credentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessToken())
{
context.Writer.WritePropertyName("accessToken");
context.Writer.Write(requestObject.AccessToken);
}
if(requestObject.IsSetClientId())
{
context.Writer.WritePropertyName("clientId");
context.Writer.Write(requestObject.ClientId);
}
if(requestObject.IsSetClientSecret())
{
context.Writer.WritePropertyName("clientSecret");
context.Writer.Write(requestObject.ClientSecret);
}
if(requestObject.IsSetOAuthRequest())
{
context.Writer.WritePropertyName("oAuthRequest");
context.Writer.WriteObjectStart();
var marshaller = ConnectorOAuthRequestMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthRequest, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRefreshToken())
{
context.Writer.WritePropertyName("refreshToken");
context.Writer.Write(requestObject.RefreshToken);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static OAuth2CredentialsMarshaller Instance = new OAuth2CredentialsMarshaller();
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for OAuth2CustomParameter Object
/// </summary>
public class OAuth2CustomParameterUnmarshaller : IUnmarshaller<OAuth2CustomParameter, XmlUnmarshallerContext>, IUnmarshaller<OAuth2CustomParameter, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
OAuth2CustomParameter IUnmarshaller<OAuth2CustomParameter, 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 OAuth2CustomParameter Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
OAuth2CustomParameter unmarshalledObject = new OAuth2CustomParameter();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("connectorSuppliedValues", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.ConnectorSuppliedValues = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isRequired", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsRequired = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isSensitiveField", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsSensitiveField = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("label", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Label = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static OAuth2CustomParameterUnmarshaller _instance = new OAuth2CustomParameterUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OAuth2CustomParameterUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for OAuth2Defaults Object
/// </summary>
public class OAuth2DefaultsUnmarshaller : IUnmarshaller<OAuth2Defaults, XmlUnmarshallerContext>, IUnmarshaller<OAuth2Defaults, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
OAuth2Defaults IUnmarshaller<OAuth2Defaults, 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 OAuth2Defaults Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
OAuth2Defaults unmarshalledObject = new OAuth2Defaults();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("authCodeUrls", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.AuthCodeUrls = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oauth2CustomProperties", targetDepth))
{
var unmarshaller = new ListUnmarshaller<OAuth2CustomParameter, OAuth2CustomParameterUnmarshaller>(OAuth2CustomParameterUnmarshaller.Instance);
unmarshalledObject.Oauth2CustomProperties = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oauth2GrantTypesSupported", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Oauth2GrantTypesSupported = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oauthScopes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.OauthScopes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tokenUrls", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.TokenUrls = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static OAuth2DefaultsUnmarshaller _instance = new OAuth2DefaultsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OAuth2DefaultsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// OAuth2Properties Marshaller
/// </summary>
public class OAuth2PropertiesMarshaller : IRequestMarshaller<OAuth2Properties, 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(OAuth2Properties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetOAuth2GrantType())
{
context.Writer.WritePropertyName("oAuth2GrantType");
context.Writer.Write(requestObject.OAuth2GrantType);
}
if(requestObject.IsSetTokenUrl())
{
context.Writer.WritePropertyName("tokenUrl");
context.Writer.Write(requestObject.TokenUrl);
}
if(requestObject.IsSetTokenUrlCustomProperties())
{
context.Writer.WritePropertyName("tokenUrlCustomProperties");
context.Writer.WriteObjectStart();
foreach (var requestObjectTokenUrlCustomPropertiesKvp in requestObject.TokenUrlCustomProperties)
{
context.Writer.WritePropertyName(requestObjectTokenUrlCustomPropertiesKvp.Key);
var requestObjectTokenUrlCustomPropertiesValue = requestObjectTokenUrlCustomPropertiesKvp.Value;
context.Writer.Write(requestObjectTokenUrlCustomPropertiesValue);
}
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static OAuth2PropertiesMarshaller Instance = new OAuth2PropertiesMarshaller();
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for OAuth2Properties Object
/// </summary>
public class OAuth2PropertiesUnmarshaller : IUnmarshaller<OAuth2Properties, XmlUnmarshallerContext>, IUnmarshaller<OAuth2Properties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
OAuth2Properties IUnmarshaller<OAuth2Properties, 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 OAuth2Properties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
OAuth2Properties unmarshalledObject = new OAuth2Properties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("oAuth2GrantType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.OAuth2GrantType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tokenUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TokenUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tokenUrlCustomProperties", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.TokenUrlCustomProperties = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static OAuth2PropertiesUnmarshaller _instance = new OAuth2PropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OAuth2PropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// OAuthCredentials Marshaller
/// </summary>
public class OAuthCredentialsMarshaller : IRequestMarshaller<OAuthCredentials, 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(OAuthCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessToken())
{
context.Writer.WritePropertyName("accessToken");
context.Writer.Write(requestObject.AccessToken);
}
if(requestObject.IsSetClientId())
{
context.Writer.WritePropertyName("clientId");
context.Writer.Write(requestObject.ClientId);
}
if(requestObject.IsSetClientSecret())
{
context.Writer.WritePropertyName("clientSecret");
context.Writer.Write(requestObject.ClientSecret);
}
if(requestObject.IsSetOAuthRequest())
{
context.Writer.WritePropertyName("oAuthRequest");
context.Writer.WriteObjectStart();
var marshaller = ConnectorOAuthRequestMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthRequest, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRefreshToken())
{
context.Writer.WritePropertyName("refreshToken");
context.Writer.Write(requestObject.RefreshToken);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static OAuthCredentialsMarshaller Instance = new OAuthCredentialsMarshaller();
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// OAuthProperties Marshaller
/// </summary>
public class OAuthPropertiesMarshaller : IRequestMarshaller<OAuthProperties, 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(OAuthProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAuthCodeUrl())
{
context.Writer.WritePropertyName("authCodeUrl");
context.Writer.Write(requestObject.AuthCodeUrl);
}
if(requestObject.IsSetOAuthScopes())
{
context.Writer.WritePropertyName("oAuthScopes");
context.Writer.WriteArrayStart();
foreach(var requestObjectOAuthScopesListValue in requestObject.OAuthScopes)
{
context.Writer.Write(requestObjectOAuthScopesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetTokenUrl())
{
context.Writer.WritePropertyName("tokenUrl");
context.Writer.Write(requestObject.TokenUrl);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static OAuthPropertiesMarshaller Instance = new OAuthPropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for OAuthProperties Object
/// </summary>
public class OAuthPropertiesUnmarshaller : IUnmarshaller<OAuthProperties, XmlUnmarshallerContext>, IUnmarshaller<OAuthProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
OAuthProperties IUnmarshaller<OAuthProperties, 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 OAuthProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
OAuthProperties unmarshalledObject = new OAuthProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("authCodeUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AuthCodeUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oAuthScopes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tokenUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TokenUrl = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static OAuthPropertiesUnmarshaller _instance = new OAuthPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OAuthPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// PardotConnectorProfileCredentials Marshaller
/// </summary>
public class PardotConnectorProfileCredentialsMarshaller : IRequestMarshaller<PardotConnectorProfileCredentials, 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(PardotConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessToken())
{
context.Writer.WritePropertyName("accessToken");
context.Writer.Write(requestObject.AccessToken);
}
if(requestObject.IsSetClientCredentialsArn())
{
context.Writer.WritePropertyName("clientCredentialsArn");
context.Writer.Write(requestObject.ClientCredentialsArn);
}
if(requestObject.IsSetOAuthRequest())
{
context.Writer.WritePropertyName("oAuthRequest");
context.Writer.WriteObjectStart();
var marshaller = ConnectorOAuthRequestMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthRequest, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRefreshToken())
{
context.Writer.WritePropertyName("refreshToken");
context.Writer.Write(requestObject.RefreshToken);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static PardotConnectorProfileCredentialsMarshaller Instance = new PardotConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// PardotConnectorProfileProperties Marshaller
/// </summary>
public class PardotConnectorProfilePropertiesMarshaller : IRequestMarshaller<PardotConnectorProfileProperties, 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(PardotConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBusinessUnitId())
{
context.Writer.WritePropertyName("businessUnitId");
context.Writer.Write(requestObject.BusinessUnitId);
}
if(requestObject.IsSetInstanceUrl())
{
context.Writer.WritePropertyName("instanceUrl");
context.Writer.Write(requestObject.InstanceUrl);
}
if(requestObject.IsSetIsSandboxEnvironment())
{
context.Writer.WritePropertyName("isSandboxEnvironment");
context.Writer.Write(requestObject.IsSandboxEnvironment);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static PardotConnectorProfilePropertiesMarshaller Instance = new PardotConnectorProfilePropertiesMarshaller();
}
} | 74 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PardotConnectorProfileProperties Object
/// </summary>
public class PardotConnectorProfilePropertiesUnmarshaller : IUnmarshaller<PardotConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<PardotConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PardotConnectorProfileProperties IUnmarshaller<PardotConnectorProfileProperties, 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 PardotConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PardotConnectorProfileProperties unmarshalledObject = new PardotConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("businessUnitId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BusinessUnitId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isSandboxEnvironment", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsSandboxEnvironment = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static PardotConnectorProfilePropertiesUnmarshaller _instance = new PardotConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PardotConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PardotMetadata Object
/// </summary>
public class PardotMetadataUnmarshaller : IUnmarshaller<PardotMetadata, XmlUnmarshallerContext>, IUnmarshaller<PardotMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PardotMetadata IUnmarshaller<PardotMetadata, 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 PardotMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PardotMetadata unmarshalledObject = new PardotMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static PardotMetadataUnmarshaller _instance = new PardotMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PardotMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// PardotSourceProperties Marshaller
/// </summary>
public class PardotSourcePropertiesMarshaller : IRequestMarshaller<PardotSourceProperties, 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(PardotSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static PardotSourcePropertiesMarshaller Instance = new PardotSourcePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PardotSourceProperties Object
/// </summary>
public class PardotSourcePropertiesUnmarshaller : IUnmarshaller<PardotSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<PardotSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PardotSourceProperties IUnmarshaller<PardotSourceProperties, 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 PardotSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PardotSourceProperties unmarshalledObject = new PardotSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static PardotSourcePropertiesUnmarshaller _instance = new PardotSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PardotSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// PrefixConfig Marshaller
/// </summary>
public class PrefixConfigMarshaller : IRequestMarshaller<PrefixConfig, 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(PrefixConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPathPrefixHierarchy())
{
context.Writer.WritePropertyName("pathPrefixHierarchy");
context.Writer.WriteArrayStart();
foreach(var requestObjectPathPrefixHierarchyListValue in requestObject.PathPrefixHierarchy)
{
context.Writer.Write(requestObjectPathPrefixHierarchyListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetPrefixFormat())
{
context.Writer.WritePropertyName("prefixFormat");
context.Writer.Write(requestObject.PrefixFormat);
}
if(requestObject.IsSetPrefixType())
{
context.Writer.WritePropertyName("prefixType");
context.Writer.Write(requestObject.PrefixType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static PrefixConfigMarshaller Instance = new PrefixConfigMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PrefixConfig Object
/// </summary>
public class PrefixConfigUnmarshaller : IUnmarshaller<PrefixConfig, XmlUnmarshallerContext>, IUnmarshaller<PrefixConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PrefixConfig IUnmarshaller<PrefixConfig, 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 PrefixConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PrefixConfig unmarshalledObject = new PrefixConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("pathPrefixHierarchy", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.PathPrefixHierarchy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("prefixFormat", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PrefixFormat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("prefixType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PrefixType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static PrefixConfigUnmarshaller _instance = new PrefixConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PrefixConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PrivateConnectionProvisioningState Object
/// </summary>
public class PrivateConnectionProvisioningStateUnmarshaller : IUnmarshaller<PrivateConnectionProvisioningState, XmlUnmarshallerContext>, IUnmarshaller<PrivateConnectionProvisioningState, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PrivateConnectionProvisioningState IUnmarshaller<PrivateConnectionProvisioningState, 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 PrivateConnectionProvisioningState Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PrivateConnectionProvisioningState unmarshalledObject = new PrivateConnectionProvisioningState();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("failureCause", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FailureCause = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("failureMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FailureMessage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static PrivateConnectionProvisioningStateUnmarshaller _instance = new PrivateConnectionProvisioningStateUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PrivateConnectionProvisioningStateUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Range Object
/// </summary>
public class RangeUnmarshaller : IUnmarshaller<Range, XmlUnmarshallerContext>, IUnmarshaller<Range, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Range IUnmarshaller<Range, 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 Range Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Range unmarshalledObject = new Range();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("maximum", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.Maximum = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("minimum", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.Minimum = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RangeUnmarshaller _instance = new RangeUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RangeUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// RedshiftConnectorProfileCredentials Marshaller
/// </summary>
public class RedshiftConnectorProfileCredentialsMarshaller : IRequestMarshaller<RedshiftConnectorProfileCredentials, 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(RedshiftConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPassword())
{
context.Writer.WritePropertyName("password");
context.Writer.Write(requestObject.Password);
}
if(requestObject.IsSetUsername())
{
context.Writer.WritePropertyName("username");
context.Writer.Write(requestObject.Username);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static RedshiftConnectorProfileCredentialsMarshaller Instance = new RedshiftConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// RedshiftConnectorProfileProperties Marshaller
/// </summary>
public class RedshiftConnectorProfilePropertiesMarshaller : IRequestMarshaller<RedshiftConnectorProfileProperties, 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(RedshiftConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucketName())
{
context.Writer.WritePropertyName("bucketName");
context.Writer.Write(requestObject.BucketName);
}
if(requestObject.IsSetBucketPrefix())
{
context.Writer.WritePropertyName("bucketPrefix");
context.Writer.Write(requestObject.BucketPrefix);
}
if(requestObject.IsSetClusterIdentifier())
{
context.Writer.WritePropertyName("clusterIdentifier");
context.Writer.Write(requestObject.ClusterIdentifier);
}
if(requestObject.IsSetDataApiRoleArn())
{
context.Writer.WritePropertyName("dataApiRoleArn");
context.Writer.Write(requestObject.DataApiRoleArn);
}
if(requestObject.IsSetDatabaseName())
{
context.Writer.WritePropertyName("databaseName");
context.Writer.Write(requestObject.DatabaseName);
}
if(requestObject.IsSetDatabaseUrl())
{
context.Writer.WritePropertyName("databaseUrl");
context.Writer.Write(requestObject.DatabaseUrl);
}
if(requestObject.IsSetIsRedshiftServerless())
{
context.Writer.WritePropertyName("isRedshiftServerless");
context.Writer.Write(requestObject.IsRedshiftServerless);
}
if(requestObject.IsSetRoleArn())
{
context.Writer.WritePropertyName("roleArn");
context.Writer.Write(requestObject.RoleArn);
}
if(requestObject.IsSetWorkgroupName())
{
context.Writer.WritePropertyName("workgroupName");
context.Writer.Write(requestObject.WorkgroupName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static RedshiftConnectorProfilePropertiesMarshaller Instance = new RedshiftConnectorProfilePropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RedshiftConnectorProfileProperties Object
/// </summary>
public class RedshiftConnectorProfilePropertiesUnmarshaller : IUnmarshaller<RedshiftConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<RedshiftConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RedshiftConnectorProfileProperties IUnmarshaller<RedshiftConnectorProfileProperties, 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 RedshiftConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RedshiftConnectorProfileProperties unmarshalledObject = new RedshiftConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bucketName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("bucketPrefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("clusterIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClusterIdentifier = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("dataApiRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataApiRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("databaseName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DatabaseName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("databaseUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DatabaseUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isRedshiftServerless", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsRedshiftServerless = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("roleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("workgroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.WorkgroupName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RedshiftConnectorProfilePropertiesUnmarshaller _instance = new RedshiftConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RedshiftConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// RedshiftDestinationProperties Marshaller
/// </summary>
public class RedshiftDestinationPropertiesMarshaller : IRequestMarshaller<RedshiftDestinationProperties, 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(RedshiftDestinationProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucketPrefix())
{
context.Writer.WritePropertyName("bucketPrefix");
context.Writer.Write(requestObject.BucketPrefix);
}
if(requestObject.IsSetErrorHandlingConfig())
{
context.Writer.WritePropertyName("errorHandlingConfig");
context.Writer.WriteObjectStart();
var marshaller = ErrorHandlingConfigMarshaller.Instance;
marshaller.Marshall(requestObject.ErrorHandlingConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetIntermediateBucketName())
{
context.Writer.WritePropertyName("intermediateBucketName");
context.Writer.Write(requestObject.IntermediateBucketName);
}
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static RedshiftDestinationPropertiesMarshaller Instance = new RedshiftDestinationPropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RedshiftDestinationProperties Object
/// </summary>
public class RedshiftDestinationPropertiesUnmarshaller : IUnmarshaller<RedshiftDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<RedshiftDestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RedshiftDestinationProperties IUnmarshaller<RedshiftDestinationProperties, 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 RedshiftDestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RedshiftDestinationProperties unmarshalledObject = new RedshiftDestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bucketPrefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("errorHandlingConfig", targetDepth))
{
var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance;
unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("intermediateBucketName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IntermediateBucketName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RedshiftDestinationPropertiesUnmarshaller _instance = new RedshiftDestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RedshiftDestinationPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RedshiftMetadata Object
/// </summary>
public class RedshiftMetadataUnmarshaller : IUnmarshaller<RedshiftMetadata, XmlUnmarshallerContext>, IUnmarshaller<RedshiftMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RedshiftMetadata IUnmarshaller<RedshiftMetadata, 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 RedshiftMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RedshiftMetadata unmarshalledObject = new RedshiftMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static RedshiftMetadataUnmarshaller _instance = new RedshiftMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RedshiftMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// RegisterConnector Request Marshaller
/// </summary>
public class RegisterConnectorRequestMarshaller : IMarshaller<IRequest, RegisterConnectorRequest> , 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((RegisterConnectorRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(RegisterConnectorRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "POST";
request.ResourcePath = "/register-connector";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetConnectorLabel())
{
context.Writer.WritePropertyName("connectorLabel");
context.Writer.Write(publicRequest.ConnectorLabel);
}
if(publicRequest.IsSetConnectorProvisioningConfig())
{
context.Writer.WritePropertyName("connectorProvisioningConfig");
context.Writer.WriteObjectStart();
var marshaller = ConnectorProvisioningConfigMarshaller.Instance;
marshaller.Marshall(publicRequest.ConnectorProvisioningConfig, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetConnectorProvisioningType())
{
context.Writer.WritePropertyName("connectorProvisioningType");
context.Writer.Write(publicRequest.ConnectorProvisioningType);
}
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("description");
context.Writer.Write(publicRequest.Description);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static RegisterConnectorRequestMarshaller _instance = new RegisterConnectorRequestMarshaller();
internal static RegisterConnectorRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegisterConnectorRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 135 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RegisterConnector operation
/// </summary>
public class RegisterConnectorResponseUnmarshaller : 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)
{
RegisterConnectorResponse response = new RegisterConnectorResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("connectorArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConnectorArn = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException"))
{
return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException"))
{
return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.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("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static RegisterConnectorResponseUnmarshaller _instance = new RegisterConnectorResponseUnmarshaller();
internal static RegisterConnectorResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegisterConnectorResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RegistrationOutput Object
/// </summary>
public class RegistrationOutputUnmarshaller : IUnmarshaller<RegistrationOutput, XmlUnmarshallerContext>, IUnmarshaller<RegistrationOutput, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RegistrationOutput IUnmarshaller<RegistrationOutput, 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 RegistrationOutput Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RegistrationOutput unmarshalledObject = new RegistrationOutput();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("message", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Message = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("result", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Result = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RegistrationOutputUnmarshaller _instance = new RegistrationOutputUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegistrationOutputUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ResetConnectorMetadataCache Request Marshaller
/// </summary>
public class ResetConnectorMetadataCacheRequestMarshaller : IMarshaller<IRequest, ResetConnectorMetadataCacheRequest> , 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((ResetConnectorMetadataCacheRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ResetConnectorMetadataCacheRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23";
request.HttpMethod = "POST";
request.ResourcePath = "/reset-connector-metadata-cache";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetApiVersion())
{
context.Writer.WritePropertyName("apiVersion");
context.Writer.Write(publicRequest.ApiVersion);
}
if(publicRequest.IsSetConnectorEntityName())
{
context.Writer.WritePropertyName("connectorEntityName");
context.Writer.Write(publicRequest.ConnectorEntityName);
}
if(publicRequest.IsSetConnectorProfileName())
{
context.Writer.WritePropertyName("connectorProfileName");
context.Writer.Write(publicRequest.ConnectorProfileName);
}
if(publicRequest.IsSetConnectorType())
{
context.Writer.WritePropertyName("connectorType");
context.Writer.Write(publicRequest.ConnectorType);
}
if(publicRequest.IsSetEntitiesPath())
{
context.Writer.WritePropertyName("entitiesPath");
context.Writer.Write(publicRequest.EntitiesPath);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ResetConnectorMetadataCacheRequestMarshaller _instance = new ResetConnectorMetadataCacheRequestMarshaller();
internal static ResetConnectorMetadataCacheRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResetConnectorMetadataCacheRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResetConnectorMetadataCache operation
/// </summary>
public class ResetConnectorMetadataCacheResponseUnmarshaller : 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)
{
ResetConnectorMetadataCacheResponse response = new ResetConnectorMetadataCacheResponse();
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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ResetConnectorMetadataCacheResponseUnmarshaller _instance = new ResetConnectorMetadataCacheResponseUnmarshaller();
internal static ResetConnectorMetadataCacheResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResetConnectorMetadataCacheResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException 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 ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// S3DestinationProperties Marshaller
/// </summary>
public class S3DestinationPropertiesMarshaller : IRequestMarshaller<S3DestinationProperties, 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(S3DestinationProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucketName())
{
context.Writer.WritePropertyName("bucketName");
context.Writer.Write(requestObject.BucketName);
}
if(requestObject.IsSetBucketPrefix())
{
context.Writer.WritePropertyName("bucketPrefix");
context.Writer.Write(requestObject.BucketPrefix);
}
if(requestObject.IsSetS3OutputFormatConfig())
{
context.Writer.WritePropertyName("s3OutputFormatConfig");
context.Writer.WriteObjectStart();
var marshaller = S3OutputFormatConfigMarshaller.Instance;
marshaller.Marshall(requestObject.S3OutputFormatConfig, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static S3DestinationPropertiesMarshaller Instance = new S3DestinationPropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3DestinationProperties Object
/// </summary>
public class S3DestinationPropertiesUnmarshaller : IUnmarshaller<S3DestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<S3DestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3DestinationProperties IUnmarshaller<S3DestinationProperties, 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 S3DestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3DestinationProperties unmarshalledObject = new S3DestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bucketName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("bucketPrefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("s3OutputFormatConfig", targetDepth))
{
var unmarshaller = S3OutputFormatConfigUnmarshaller.Instance;
unmarshalledObject.S3OutputFormatConfig = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static S3DestinationPropertiesUnmarshaller _instance = new S3DestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3DestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// S3InputFormatConfig Marshaller
/// </summary>
public class S3InputFormatConfigMarshaller : IRequestMarshaller<S3InputFormatConfig, 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(S3InputFormatConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetS3InputFileType())
{
context.Writer.WritePropertyName("s3InputFileType");
context.Writer.Write(requestObject.S3InputFileType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static S3InputFormatConfigMarshaller Instance = new S3InputFormatConfigMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3InputFormatConfig Object
/// </summary>
public class S3InputFormatConfigUnmarshaller : IUnmarshaller<S3InputFormatConfig, XmlUnmarshallerContext>, IUnmarshaller<S3InputFormatConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3InputFormatConfig IUnmarshaller<S3InputFormatConfig, 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 S3InputFormatConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3InputFormatConfig unmarshalledObject = new S3InputFormatConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("s3InputFileType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3InputFileType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static S3InputFormatConfigUnmarshaller _instance = new S3InputFormatConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3InputFormatConfigUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3Metadata Object
/// </summary>
public class S3MetadataUnmarshaller : IUnmarshaller<S3Metadata, XmlUnmarshallerContext>, IUnmarshaller<S3Metadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3Metadata IUnmarshaller<S3Metadata, 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 S3Metadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3Metadata unmarshalledObject = new S3Metadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static S3MetadataUnmarshaller _instance = new S3MetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3MetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// S3OutputFormatConfig Marshaller
/// </summary>
public class S3OutputFormatConfigMarshaller : IRequestMarshaller<S3OutputFormatConfig, 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(S3OutputFormatConfig requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAggregationConfig())
{
context.Writer.WritePropertyName("aggregationConfig");
context.Writer.WriteObjectStart();
var marshaller = AggregationConfigMarshaller.Instance;
marshaller.Marshall(requestObject.AggregationConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetFileType())
{
context.Writer.WritePropertyName("fileType");
context.Writer.Write(requestObject.FileType);
}
if(requestObject.IsSetPrefixConfig())
{
context.Writer.WritePropertyName("prefixConfig");
context.Writer.WriteObjectStart();
var marshaller = PrefixConfigMarshaller.Instance;
marshaller.Marshall(requestObject.PrefixConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetPreserveSourceDataTyping())
{
context.Writer.WritePropertyName("preserveSourceDataTyping");
context.Writer.Write(requestObject.PreserveSourceDataTyping);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static S3OutputFormatConfigMarshaller Instance = new S3OutputFormatConfigMarshaller();
}
} | 90 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3OutputFormatConfig Object
/// </summary>
public class S3OutputFormatConfigUnmarshaller : IUnmarshaller<S3OutputFormatConfig, XmlUnmarshallerContext>, IUnmarshaller<S3OutputFormatConfig, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3OutputFormatConfig IUnmarshaller<S3OutputFormatConfig, 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 S3OutputFormatConfig Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3OutputFormatConfig unmarshalledObject = new S3OutputFormatConfig();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("aggregationConfig", targetDepth))
{
var unmarshaller = AggregationConfigUnmarshaller.Instance;
unmarshalledObject.AggregationConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("fileType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FileType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("prefixConfig", targetDepth))
{
var unmarshaller = PrefixConfigUnmarshaller.Instance;
unmarshalledObject.PrefixConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("preserveSourceDataTyping", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.PreserveSourceDataTyping = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static S3OutputFormatConfigUnmarshaller _instance = new S3OutputFormatConfigUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3OutputFormatConfigUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// S3SourceProperties Marshaller
/// </summary>
public class S3SourcePropertiesMarshaller : IRequestMarshaller<S3SourceProperties, 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(S3SourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucketName())
{
context.Writer.WritePropertyName("bucketName");
context.Writer.Write(requestObject.BucketName);
}
if(requestObject.IsSetBucketPrefix())
{
context.Writer.WritePropertyName("bucketPrefix");
context.Writer.Write(requestObject.BucketPrefix);
}
if(requestObject.IsSetS3InputFormatConfig())
{
context.Writer.WritePropertyName("s3InputFormatConfig");
context.Writer.WriteObjectStart();
var marshaller = S3InputFormatConfigMarshaller.Instance;
marshaller.Marshall(requestObject.S3InputFormatConfig, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static S3SourcePropertiesMarshaller Instance = new S3SourcePropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3SourceProperties Object
/// </summary>
public class S3SourcePropertiesUnmarshaller : IUnmarshaller<S3SourceProperties, XmlUnmarshallerContext>, IUnmarshaller<S3SourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3SourceProperties IUnmarshaller<S3SourceProperties, 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 S3SourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3SourceProperties unmarshalledObject = new S3SourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bucketName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("bucketPrefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("s3InputFormatConfig", targetDepth))
{
var unmarshaller = S3InputFormatConfigUnmarshaller.Instance;
unmarshalledObject.S3InputFormatConfig = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static S3SourcePropertiesUnmarshaller _instance = new S3SourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3SourcePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SalesforceConnectorProfileCredentials Marshaller
/// </summary>
public class SalesforceConnectorProfileCredentialsMarshaller : IRequestMarshaller<SalesforceConnectorProfileCredentials, 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(SalesforceConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAccessToken())
{
context.Writer.WritePropertyName("accessToken");
context.Writer.Write(requestObject.AccessToken);
}
if(requestObject.IsSetClientCredentialsArn())
{
context.Writer.WritePropertyName("clientCredentialsArn");
context.Writer.Write(requestObject.ClientCredentialsArn);
}
if(requestObject.IsSetJwtToken())
{
context.Writer.WritePropertyName("jwtToken");
context.Writer.Write(requestObject.JwtToken);
}
if(requestObject.IsSetOAuth2GrantType())
{
context.Writer.WritePropertyName("oAuth2GrantType");
context.Writer.Write(requestObject.OAuth2GrantType);
}
if(requestObject.IsSetOAuthRequest())
{
context.Writer.WritePropertyName("oAuthRequest");
context.Writer.WriteObjectStart();
var marshaller = ConnectorOAuthRequestMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthRequest, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRefreshToken())
{
context.Writer.WritePropertyName("refreshToken");
context.Writer.Write(requestObject.RefreshToken);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SalesforceConnectorProfileCredentialsMarshaller Instance = new SalesforceConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SalesforceConnectorProfileProperties Marshaller
/// </summary>
public class SalesforceConnectorProfilePropertiesMarshaller : IRequestMarshaller<SalesforceConnectorProfileProperties, 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(SalesforceConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetInstanceUrl())
{
context.Writer.WritePropertyName("instanceUrl");
context.Writer.Write(requestObject.InstanceUrl);
}
if(requestObject.IsSetIsSandboxEnvironment())
{
context.Writer.WritePropertyName("isSandboxEnvironment");
context.Writer.Write(requestObject.IsSandboxEnvironment);
}
if(requestObject.IsSetUsePrivateLinkForMetadataAndAuthorization())
{
context.Writer.WritePropertyName("usePrivateLinkForMetadataAndAuthorization");
context.Writer.Write(requestObject.UsePrivateLinkForMetadataAndAuthorization);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SalesforceConnectorProfilePropertiesMarshaller Instance = new SalesforceConnectorProfilePropertiesMarshaller();
}
} | 74 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SalesforceConnectorProfileProperties Object
/// </summary>
public class SalesforceConnectorProfilePropertiesUnmarshaller : IUnmarshaller<SalesforceConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<SalesforceConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SalesforceConnectorProfileProperties IUnmarshaller<SalesforceConnectorProfileProperties, 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 SalesforceConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SalesforceConnectorProfileProperties unmarshalledObject = new SalesforceConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("instanceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isSandboxEnvironment", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsSandboxEnvironment = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("usePrivateLinkForMetadataAndAuthorization", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.UsePrivateLinkForMetadataAndAuthorization = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SalesforceConnectorProfilePropertiesUnmarshaller _instance = new SalesforceConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SalesforceConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SalesforceDestinationProperties Marshaller
/// </summary>
public class SalesforceDestinationPropertiesMarshaller : IRequestMarshaller<SalesforceDestinationProperties, 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(SalesforceDestinationProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDataTransferApi())
{
context.Writer.WritePropertyName("dataTransferApi");
context.Writer.Write(requestObject.DataTransferApi);
}
if(requestObject.IsSetErrorHandlingConfig())
{
context.Writer.WritePropertyName("errorHandlingConfig");
context.Writer.WriteObjectStart();
var marshaller = ErrorHandlingConfigMarshaller.Instance;
marshaller.Marshall(requestObject.ErrorHandlingConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetIdFieldNames())
{
context.Writer.WritePropertyName("idFieldNames");
context.Writer.WriteArrayStart();
foreach(var requestObjectIdFieldNamesListValue in requestObject.IdFieldNames)
{
context.Writer.Write(requestObjectIdFieldNamesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
if(requestObject.IsSetWriteOperationType())
{
context.Writer.WritePropertyName("writeOperationType");
context.Writer.Write(requestObject.WriteOperationType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SalesforceDestinationPropertiesMarshaller Instance = new SalesforceDestinationPropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SalesforceDestinationProperties Object
/// </summary>
public class SalesforceDestinationPropertiesUnmarshaller : IUnmarshaller<SalesforceDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<SalesforceDestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SalesforceDestinationProperties IUnmarshaller<SalesforceDestinationProperties, 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 SalesforceDestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SalesforceDestinationProperties unmarshalledObject = new SalesforceDestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataTransferApi", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataTransferApi = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("errorHandlingConfig", targetDepth))
{
var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance;
unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("idFieldNames", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.IdFieldNames = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("writeOperationType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.WriteOperationType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SalesforceDestinationPropertiesUnmarshaller _instance = new SalesforceDestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SalesforceDestinationPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SalesforceMetadata Object
/// </summary>
public class SalesforceMetadataUnmarshaller : IUnmarshaller<SalesforceMetadata, XmlUnmarshallerContext>, IUnmarshaller<SalesforceMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SalesforceMetadata IUnmarshaller<SalesforceMetadata, 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 SalesforceMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SalesforceMetadata unmarshalledObject = new SalesforceMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataTransferApis", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.DataTransferApis = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oauth2GrantTypesSupported", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Oauth2GrantTypesSupported = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oAuthScopes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SalesforceMetadataUnmarshaller _instance = new SalesforceMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SalesforceMetadataUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SalesforceSourceProperties Marshaller
/// </summary>
public class SalesforceSourcePropertiesMarshaller : IRequestMarshaller<SalesforceSourceProperties, 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(SalesforceSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDataTransferApi())
{
context.Writer.WritePropertyName("dataTransferApi");
context.Writer.Write(requestObject.DataTransferApi);
}
if(requestObject.IsSetEnableDynamicFieldUpdate())
{
context.Writer.WritePropertyName("enableDynamicFieldUpdate");
context.Writer.Write(requestObject.EnableDynamicFieldUpdate);
}
if(requestObject.IsSetIncludeDeletedRecords())
{
context.Writer.WritePropertyName("includeDeletedRecords");
context.Writer.Write(requestObject.IncludeDeletedRecords);
}
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SalesforceSourcePropertiesMarshaller Instance = new SalesforceSourcePropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SalesforceSourceProperties Object
/// </summary>
public class SalesforceSourcePropertiesUnmarshaller : IUnmarshaller<SalesforceSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<SalesforceSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SalesforceSourceProperties IUnmarshaller<SalesforceSourceProperties, 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 SalesforceSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SalesforceSourceProperties unmarshalledObject = new SalesforceSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataTransferApi", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataTransferApi = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("enableDynamicFieldUpdate", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.EnableDynamicFieldUpdate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("includeDeletedRecords", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IncludeDeletedRecords = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SalesforceSourcePropertiesUnmarshaller _instance = new SalesforceSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SalesforceSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SAPODataConnectorProfileCredentials Marshaller
/// </summary>
public class SAPODataConnectorProfileCredentialsMarshaller : IRequestMarshaller<SAPODataConnectorProfileCredentials, 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(SAPODataConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBasicAuthCredentials())
{
context.Writer.WritePropertyName("basicAuthCredentials");
context.Writer.WriteObjectStart();
var marshaller = BasicAuthCredentialsMarshaller.Instance;
marshaller.Marshall(requestObject.BasicAuthCredentials, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetOAuthCredentials())
{
context.Writer.WritePropertyName("oAuthCredentials");
context.Writer.WriteObjectStart();
var marshaller = OAuthCredentialsMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthCredentials, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SAPODataConnectorProfileCredentialsMarshaller Instance = new SAPODataConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SAPODataConnectorProfileProperties Marshaller
/// </summary>
public class SAPODataConnectorProfilePropertiesMarshaller : IRequestMarshaller<SAPODataConnectorProfileProperties, 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(SAPODataConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApplicationHostUrl())
{
context.Writer.WritePropertyName("applicationHostUrl");
context.Writer.Write(requestObject.ApplicationHostUrl);
}
if(requestObject.IsSetApplicationServicePath())
{
context.Writer.WritePropertyName("applicationServicePath");
context.Writer.Write(requestObject.ApplicationServicePath);
}
if(requestObject.IsSetClientNumber())
{
context.Writer.WritePropertyName("clientNumber");
context.Writer.Write(requestObject.ClientNumber);
}
if(requestObject.IsSetDisableSSO())
{
context.Writer.WritePropertyName("disableSSO");
context.Writer.Write(requestObject.DisableSSO);
}
if(requestObject.IsSetLogonLanguage())
{
context.Writer.WritePropertyName("logonLanguage");
context.Writer.Write(requestObject.LogonLanguage);
}
if(requestObject.IsSetOAuthProperties())
{
context.Writer.WritePropertyName("oAuthProperties");
context.Writer.WriteObjectStart();
var marshaller = OAuthPropertiesMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthProperties, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetPortNumber())
{
context.Writer.WritePropertyName("portNumber");
context.Writer.Write(requestObject.PortNumber);
}
if(requestObject.IsSetPrivateLinkServiceName())
{
context.Writer.WritePropertyName("privateLinkServiceName");
context.Writer.Write(requestObject.PrivateLinkServiceName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SAPODataConnectorProfilePropertiesMarshaller Instance = new SAPODataConnectorProfilePropertiesMarshaller();
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SAPODataConnectorProfileProperties Object
/// </summary>
public class SAPODataConnectorProfilePropertiesUnmarshaller : IUnmarshaller<SAPODataConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<SAPODataConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SAPODataConnectorProfileProperties IUnmarshaller<SAPODataConnectorProfileProperties, 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 SAPODataConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SAPODataConnectorProfileProperties unmarshalledObject = new SAPODataConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("applicationHostUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ApplicationHostUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("applicationServicePath", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ApplicationServicePath = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("clientNumber", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientNumber = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("disableSSO", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.DisableSSO = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("logonLanguage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogonLanguage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("oAuthProperties", targetDepth))
{
var unmarshaller = OAuthPropertiesUnmarshaller.Instance;
unmarshalledObject.OAuthProperties = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("portNumber", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.PortNumber = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("privateLinkServiceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PrivateLinkServiceName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SAPODataConnectorProfilePropertiesUnmarshaller _instance = new SAPODataConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SAPODataConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SAPODataDestinationProperties Marshaller
/// </summary>
public class SAPODataDestinationPropertiesMarshaller : IRequestMarshaller<SAPODataDestinationProperties, 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(SAPODataDestinationProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetErrorHandlingConfig())
{
context.Writer.WritePropertyName("errorHandlingConfig");
context.Writer.WriteObjectStart();
var marshaller = ErrorHandlingConfigMarshaller.Instance;
marshaller.Marshall(requestObject.ErrorHandlingConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetIdFieldNames())
{
context.Writer.WritePropertyName("idFieldNames");
context.Writer.WriteArrayStart();
foreach(var requestObjectIdFieldNamesListValue in requestObject.IdFieldNames)
{
context.Writer.Write(requestObjectIdFieldNamesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetObjectPath())
{
context.Writer.WritePropertyName("objectPath");
context.Writer.Write(requestObject.ObjectPath);
}
if(requestObject.IsSetSuccessResponseHandlingConfig())
{
context.Writer.WritePropertyName("successResponseHandlingConfig");
context.Writer.WriteObjectStart();
var marshaller = SuccessResponseHandlingConfigMarshaller.Instance;
marshaller.Marshall(requestObject.SuccessResponseHandlingConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetWriteOperationType())
{
context.Writer.WritePropertyName("writeOperationType");
context.Writer.Write(requestObject.WriteOperationType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SAPODataDestinationPropertiesMarshaller Instance = new SAPODataDestinationPropertiesMarshaller();
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SAPODataDestinationProperties Object
/// </summary>
public class SAPODataDestinationPropertiesUnmarshaller : IUnmarshaller<SAPODataDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<SAPODataDestinationProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SAPODataDestinationProperties IUnmarshaller<SAPODataDestinationProperties, 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 SAPODataDestinationProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SAPODataDestinationProperties unmarshalledObject = new SAPODataDestinationProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("errorHandlingConfig", targetDepth))
{
var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance;
unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("idFieldNames", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.IdFieldNames = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("objectPath", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObjectPath = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("successResponseHandlingConfig", targetDepth))
{
var unmarshaller = SuccessResponseHandlingConfigUnmarshaller.Instance;
unmarshalledObject.SuccessResponseHandlingConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("writeOperationType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.WriteOperationType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SAPODataDestinationPropertiesUnmarshaller _instance = new SAPODataDestinationPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SAPODataDestinationPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SAPODataMetadata Object
/// </summary>
public class SAPODataMetadataUnmarshaller : IUnmarshaller<SAPODataMetadata, XmlUnmarshallerContext>, IUnmarshaller<SAPODataMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SAPODataMetadata IUnmarshaller<SAPODataMetadata, 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 SAPODataMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SAPODataMetadata unmarshalledObject = new SAPODataMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static SAPODataMetadataUnmarshaller _instance = new SAPODataMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SAPODataMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SAPODataSourceProperties Marshaller
/// </summary>
public class SAPODataSourcePropertiesMarshaller : IRequestMarshaller<SAPODataSourceProperties, 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(SAPODataSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObjectPath())
{
context.Writer.WritePropertyName("objectPath");
context.Writer.Write(requestObject.ObjectPath);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SAPODataSourcePropertiesMarshaller Instance = new SAPODataSourcePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SAPODataSourceProperties Object
/// </summary>
public class SAPODataSourcePropertiesUnmarshaller : IUnmarshaller<SAPODataSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<SAPODataSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SAPODataSourceProperties IUnmarshaller<SAPODataSourceProperties, 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 SAPODataSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SAPODataSourceProperties unmarshalledObject = new SAPODataSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("objectPath", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObjectPath = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SAPODataSourcePropertiesUnmarshaller _instance = new SAPODataSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SAPODataSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ScheduledTriggerProperties Marshaller
/// </summary>
public class ScheduledTriggerPropertiesMarshaller : IRequestMarshaller<ScheduledTriggerProperties, 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(ScheduledTriggerProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDataPullMode())
{
context.Writer.WritePropertyName("dataPullMode");
context.Writer.Write(requestObject.DataPullMode);
}
if(requestObject.IsSetFirstExecutionFrom())
{
context.Writer.WritePropertyName("firstExecutionFrom");
context.Writer.Write(requestObject.FirstExecutionFrom);
}
if(requestObject.IsSetFlowErrorDeactivationThreshold())
{
context.Writer.WritePropertyName("flowErrorDeactivationThreshold");
context.Writer.Write(requestObject.FlowErrorDeactivationThreshold);
}
if(requestObject.IsSetScheduleEndTime())
{
context.Writer.WritePropertyName("scheduleEndTime");
context.Writer.Write(requestObject.ScheduleEndTime);
}
if(requestObject.IsSetScheduleExpression())
{
context.Writer.WritePropertyName("scheduleExpression");
context.Writer.Write(requestObject.ScheduleExpression);
}
if(requestObject.IsSetScheduleOffset())
{
context.Writer.WritePropertyName("scheduleOffset");
context.Writer.Write(requestObject.ScheduleOffset);
}
if(requestObject.IsSetScheduleStartTime())
{
context.Writer.WritePropertyName("scheduleStartTime");
context.Writer.Write(requestObject.ScheduleStartTime);
}
if(requestObject.IsSetTimezone())
{
context.Writer.WritePropertyName("timezone");
context.Writer.Write(requestObject.Timezone);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ScheduledTriggerPropertiesMarshaller Instance = new ScheduledTriggerPropertiesMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ScheduledTriggerProperties Object
/// </summary>
public class ScheduledTriggerPropertiesUnmarshaller : IUnmarshaller<ScheduledTriggerProperties, XmlUnmarshallerContext>, IUnmarshaller<ScheduledTriggerProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScheduledTriggerProperties IUnmarshaller<ScheduledTriggerProperties, 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 ScheduledTriggerProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScheduledTriggerProperties unmarshalledObject = new ScheduledTriggerProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataPullMode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataPullMode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("firstExecutionFrom", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.FirstExecutionFrom = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("flowErrorDeactivationThreshold", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.FlowErrorDeactivationThreshold = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("scheduleEndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ScheduleEndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("scheduleExpression", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScheduleExpression = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("scheduleOffset", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ScheduleOffset = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("scheduleStartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ScheduleStartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timezone", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Timezone = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScheduledTriggerPropertiesUnmarshaller _instance = new ScheduledTriggerPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScheduledTriggerPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ServiceNowConnectorProfileCredentials Marshaller
/// </summary>
public class ServiceNowConnectorProfileCredentialsMarshaller : IRequestMarshaller<ServiceNowConnectorProfileCredentials, 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(ServiceNowConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPassword())
{
context.Writer.WritePropertyName("password");
context.Writer.Write(requestObject.Password);
}
if(requestObject.IsSetUsername())
{
context.Writer.WritePropertyName("username");
context.Writer.Write(requestObject.Username);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ServiceNowConnectorProfileCredentialsMarshaller Instance = new ServiceNowConnectorProfileCredentialsMarshaller();
}
} | 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ServiceNowConnectorProfileProperties Marshaller
/// </summary>
public class ServiceNowConnectorProfilePropertiesMarshaller : IRequestMarshaller<ServiceNowConnectorProfileProperties, 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(ServiceNowConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetInstanceUrl())
{
context.Writer.WritePropertyName("instanceUrl");
context.Writer.Write(requestObject.InstanceUrl);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ServiceNowConnectorProfilePropertiesMarshaller Instance = new ServiceNowConnectorProfilePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceNowConnectorProfileProperties Object
/// </summary>
public class ServiceNowConnectorProfilePropertiesUnmarshaller : IUnmarshaller<ServiceNowConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<ServiceNowConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ServiceNowConnectorProfileProperties IUnmarshaller<ServiceNowConnectorProfileProperties, 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 ServiceNowConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ServiceNowConnectorProfileProperties unmarshalledObject = new ServiceNowConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("instanceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceNowConnectorProfilePropertiesUnmarshaller _instance = new ServiceNowConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceNowConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceNowMetadata Object
/// </summary>
public class ServiceNowMetadataUnmarshaller : IUnmarshaller<ServiceNowMetadata, XmlUnmarshallerContext>, IUnmarshaller<ServiceNowMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ServiceNowMetadata IUnmarshaller<ServiceNowMetadata, 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 ServiceNowMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ServiceNowMetadata unmarshalledObject = new ServiceNowMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceNowMetadataUnmarshaller _instance = new ServiceNowMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceNowMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// ServiceNowSourceProperties Marshaller
/// </summary>
public class ServiceNowSourcePropertiesMarshaller : IRequestMarshaller<ServiceNowSourceProperties, 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(ServiceNowSourceProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("object");
context.Writer.Write(requestObject.Object);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ServiceNowSourcePropertiesMarshaller Instance = new ServiceNowSourcePropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceNowSourceProperties Object
/// </summary>
public class ServiceNowSourcePropertiesUnmarshaller : IUnmarshaller<ServiceNowSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<ServiceNowSourceProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ServiceNowSourceProperties IUnmarshaller<ServiceNowSourceProperties, 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 ServiceNowSourceProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ServiceNowSourceProperties unmarshalledObject = new ServiceNowSourceProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceNowSourcePropertiesUnmarshaller _instance = new ServiceNowSourcePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceNowSourcePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceQuotaExceededException Object
/// </summary>
public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceQuotaExceededException 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 ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceQuotaExceededExceptionUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SingularConnectorProfileCredentials Marshaller
/// </summary>
public class SingularConnectorProfileCredentialsMarshaller : IRequestMarshaller<SingularConnectorProfileCredentials, 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(SingularConnectorProfileCredentials requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApiKey())
{
context.Writer.WritePropertyName("apiKey");
context.Writer.Write(requestObject.ApiKey);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SingularConnectorProfileCredentialsMarshaller Instance = new SingularConnectorProfileCredentialsMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// SingularConnectorProfileProperties Marshaller
/// </summary>
public class SingularConnectorProfilePropertiesMarshaller : IRequestMarshaller<SingularConnectorProfileProperties, 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(SingularConnectorProfileProperties requestObject, JsonMarshallerContext context)
{
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SingularConnectorProfilePropertiesMarshaller Instance = new SingularConnectorProfilePropertiesMarshaller();
}
} | 56 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SingularConnectorProfileProperties Object
/// </summary>
public class SingularConnectorProfilePropertiesUnmarshaller : IUnmarshaller<SingularConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<SingularConnectorProfileProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SingularConnectorProfileProperties IUnmarshaller<SingularConnectorProfileProperties, 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 SingularConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SingularConnectorProfileProperties unmarshalledObject = new SingularConnectorProfileProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static SingularConnectorProfilePropertiesUnmarshaller _instance = new SingularConnectorProfilePropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SingularConnectorProfilePropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Appflow.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SingularMetadata Object
/// </summary>
public class SingularMetadataUnmarshaller : IUnmarshaller<SingularMetadata, XmlUnmarshallerContext>, IUnmarshaller<SingularMetadata, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SingularMetadata IUnmarshaller<SingularMetadata, 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 SingularMetadata Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SingularMetadata unmarshalledObject = new SingularMetadata();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static SingularMetadataUnmarshaller _instance = new SingularMetadataUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SingularMetadataUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 86 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.