public IdentityPoolShortDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } IdentityPoolShortDescription identityPoolShortDescription = new IdentityPoolShortDescription(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("IdentityPoolId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; identityPoolShortDescription.IdentityPoolId = instance.Unmarshall(context); } else if (context.TestExpression("IdentityPoolName", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; identityPoolShortDescription.IdentityPoolName = instance2.Unmarshall(context); } } return(identityPoolShortDescription); }
public IdentityDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } IdentityDescription identityDescription = new IdentityDescription(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("CreationDate", currentDepth)) { DateTimeUnmarshaller instance = DateTimeUnmarshaller.Instance; identityDescription.CreationDate = instance.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; identityDescription.IdentityId = instance2.Unmarshall(context); } else if (context.TestExpression("LastModifiedDate", currentDepth)) { DateTimeUnmarshaller instance3 = DateTimeUnmarshaller.Instance; identityDescription.LastModifiedDate = instance3.Unmarshall(context); } else if (context.TestExpression("Logins", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); identityDescription.Logins = listUnmarshaller.Unmarshall(context); } } return(identityDescription); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { LookupDeveloperIdentityResponse lookupDeveloperIdentityResponse = new LookupDeveloperIdentityResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("DeveloperUserIdentifierList", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); lookupDeveloperIdentityResponse.DeveloperUserIdentifierList = listUnmarshaller.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; lookupDeveloperIdentityResponse.IdentityId = instance.Unmarshall(context); } else if (context.TestExpression("NextToken", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; lookupDeveloperIdentityResponse.NextToken = instance2.Unmarshall(context); } } return(lookupDeveloperIdentityResponse); }
public KeysAndAttributes Unmarshall(JsonUnmarshallerContext context) { KeysAndAttributes keysAndAttributes = new KeysAndAttributes(); keysAndAttributes.Keys = null; keysAndAttributes.AttributesToGet = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Keys", targetDepth)) { keysAndAttributes.Keys = new List <Key>(); KeyUnmarshaller unmarshaller = KeyUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { keysAndAttributes.Keys.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("AttributesToGet", targetDepth)) { keysAndAttributes.AttributesToGet = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { keysAndAttributes.AttributesToGet.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(keysAndAttributes); } } return(keysAndAttributes); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetCallerIdentityResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Account", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); response.Account = instance.Unmarshall(context); } else if (context.TestExpression("Arn", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Arn = instance2.Unmarshall(context); } else if (context.TestExpression("UserId", num)) { StringUnmarshaller instance3 = StringUnmarshaller.get_Instance(); response.UserId = instance3.Unmarshall(context); } } } }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListIdentitiesResponse listIdentitiesResponse = new ListIdentitiesResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("Identities", currentDepth)) { ListUnmarshaller <IdentityDescription, IdentityDescriptionUnmarshaller> listUnmarshaller = new ListUnmarshaller <IdentityDescription, IdentityDescriptionUnmarshaller>(IdentityDescriptionUnmarshaller.Instance); listIdentitiesResponse.Identities = listUnmarshaller.Unmarshall(context); } else if (context.TestExpression("IdentityPoolId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; listIdentitiesResponse.IdentityPoolId = instance.Unmarshall(context); } else if (context.TestExpression("NextToken", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; listIdentitiesResponse.NextToken = instance2.Unmarshall(context); } } return(listIdentitiesResponse); }
public AssumedRoleUser Unmarshall(XmlUnmarshallerContext context) { AssumedRoleUser assumedRoleUser = new AssumedRoleUser(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Arn", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); assumedRoleUser.Arn = instance.Unmarshall(context); } else if (context.TestExpression("AssumedRoleId", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); assumedRoleUser.AssumedRoleId = instance2.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(assumedRoleUser); } } return(assumedRoleUser); }
public CognitoIdentityProviderInfo Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } CognitoIdentityProviderInfo cognitoIdentityProviderInfo = new CognitoIdentityProviderInfo(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("ClientId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; cognitoIdentityProviderInfo.ClientId = instance.Unmarshall(context); } else if (context.TestExpression("ProviderName", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; cognitoIdentityProviderInfo.ProviderName = instance2.Unmarshall(context); } } return(cognitoIdentityProviderInfo); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeIdentityResponse describeIdentityResponse = new DescribeIdentityResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("CreationDate", currentDepth)) { DateTimeUnmarshaller instance = DateTimeUnmarshaller.Instance; describeIdentityResponse.CreationDate = instance.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; describeIdentityResponse.IdentityId = instance2.Unmarshall(context); } else if (context.TestExpression("LastModifiedDate", currentDepth)) { DateTimeUnmarshaller instance3 = DateTimeUnmarshaller.Instance; describeIdentityResponse.LastModifiedDate = instance3.Unmarshall(context); } else if (context.TestExpression("Logins", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); describeIdentityResponse.Logins = listUnmarshaller.Unmarshall(context); } } return(describeIdentityResponse); }
public UnprocessedIdentityId Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } UnprocessedIdentityId unprocessedIdentityId = new UnprocessedIdentityId(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("ErrorCode", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; unprocessedIdentityId.ErrorCode = instance.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; unprocessedIdentityId.IdentityId = instance2.Unmarshall(context); } } return(unprocessedIdentityId); }
public Credentials Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Credentials credentials = new Credentials(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("AccessKeyId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; credentials.AccessKeyId = instance.Unmarshall(context); } else if (context.TestExpression("Expiration", currentDepth)) { DateTimeUnmarshaller instance2 = DateTimeUnmarshaller.Instance; credentials.Expiration = instance2.Unmarshall(context); } else if (context.TestExpression("SecretKey", currentDepth)) { StringUnmarshaller instance3 = StringUnmarshaller.Instance; credentials.SecretKey = instance3.Unmarshall(context); } else if (context.TestExpression("SessionToken", currentDepth)) { StringUnmarshaller instance4 = StringUnmarshaller.Instance; credentials.SessionToken = instance4.Unmarshall(context); } } return(credentials); }
public Permission Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonUnmarshallerContext.TokenType.Null) { return(null); } Permission permission = new Permission(); permission.Access = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("GranteeType", targetDepth)) { permission.GranteeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Grantee", targetDepth)) { permission.Grantee = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Access", targetDepth)) { permission.Access = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { permission.Access.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(permission); } } return(permission); }
public DescribeWorkingStorageResult Unmarshall(JsonUnmarshallerContext context) { DescribeWorkingStorageResult describeWorkingStorageResult = new DescribeWorkingStorageResult(); describeWorkingStorageResult.DiskIds = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("GatewayARN", targetDepth)) { describeWorkingStorageResult.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DiskIds", targetDepth)) { describeWorkingStorageResult.DiskIds = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { describeWorkingStorageResult.DiskIds.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("WorkingStorageUsedInBytes", targetDepth)) { describeWorkingStorageResult.WorkingStorageUsedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("WorkingStorageAllocatedInBytes", targetDepth)) { describeWorkingStorageResult.WorkingStorageAllocatedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(describeWorkingStorageResult); } } return(describeWorkingStorageResult); }
public ScriptBootstrapActionConfig Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("Path", targetDepth)) { context.Read(); scriptBootstrapActionConfig.Path = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Args", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { scriptBootstrapActionConfig.Args = null; continue; } scriptBootstrapActionConfig.Args = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } scriptBootstrapActionConfig.Args.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return(scriptBootstrapActionConfig); } } return(scriptBootstrapActionConfig); }
public VaultNotificationConfig Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } VaultNotificationConfig vaultNotificationConfig = new VaultNotificationConfig(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("SNSTopic", targetDepth)) { context.Read(); vaultNotificationConfig.SNSTopic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Events", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { vaultNotificationConfig.Events = null; continue; } vaultNotificationConfig.Events = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } vaultNotificationConfig.Events.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return(vaultNotificationConfig); } } return(vaultNotificationConfig); }
private static void UnmarshallResult(JsonUnmarshallerContext context, DescribeWorkingStorageResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("GatewayARN", targetDepth)) { context.Read(); response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DiskIds", targetDepth)) { context.Read(); response.DiskIds = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.DiskIds.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("WorkingStorageUsedInBytes", targetDepth)) { context.Read(); response.WorkingStorageUsedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("WorkingStorageAllocatedInBytes", targetDepth)) { context.Read(); response.WorkingStorageAllocatedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public Projection Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } Projection projection = new Projection(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("ProjectionType", targetDepth)) { context.Read(); projection.ProjectionType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NonKeyAttributes", targetDepth)) { context.Read(); projection.NonKeyAttributes = new List <String>(); if (context.CurrentTokenType == JsonToken.Null) { continue; } StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } projection.NonKeyAttributes.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return(projection); } } return(projection); }
private static void UnmarshallResult(XmlUnmarshallerContext context, AssumeRoleWithSAMLResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("AssumedRoleUser", num)) { AssumedRoleUserUnmarshaller instance = AssumedRoleUserUnmarshaller.Instance; response.AssumedRoleUser = instance.Unmarshall(context); } else if (context.TestExpression("Audience", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Audience = instance2.Unmarshall(context); } else if (context.TestExpression("Credentials", num)) { CredentialsUnmarshaller instance3 = CredentialsUnmarshaller.Instance; response.Credentials = instance3.Unmarshall(context); } else if (context.TestExpression("Issuer", num)) { StringUnmarshaller instance4 = StringUnmarshaller.get_Instance(); response.Issuer = instance4.Unmarshall(context); } else if (context.TestExpression("NameQualifier", num)) { StringUnmarshaller instance5 = StringUnmarshaller.get_Instance(); response.NameQualifier = instance5.Unmarshall(context); } else if (context.TestExpression("PackedPolicySize", num)) { IntUnmarshaller instance6 = IntUnmarshaller.get_Instance(); response.PackedPolicySize = instance6.Unmarshall(context); } else if (context.TestExpression("Subject", num)) { StringUnmarshaller instance7 = StringUnmarshaller.get_Instance(); response.Subject = instance7.Unmarshall(context); } else if (context.TestExpression("SubjectType", num)) { StringUnmarshaller instance8 = StringUnmarshaller.get_Instance(); response.SubjectType = instance8.Unmarshall(context); } } } }
public QueryObjectsResult Unmarshall(JsonUnmarshallerContext context) { QueryObjectsResult queryObjectsResult = new QueryObjectsResult(); queryObjectsResult.Ids = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Ids", targetDepth)) { queryObjectsResult.Ids = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { queryObjectsResult.Ids.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("Marker", targetDepth)) { queryObjectsResult.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("HasMoreResults", targetDepth)) { queryObjectsResult.HasMoreResults = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(queryObjectsResult); } } return(queryObjectsResult); }
public TestRoleResult Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonUnmarshallerContext.TokenType.Null) { return(null); } TestRoleResult testRoleResult = new TestRoleResult(); testRoleResult.Messages = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Success", targetDepth)) { testRoleResult.Success = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Messages", targetDepth)) { testRoleResult.Messages = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { testRoleResult.Messages.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(testRoleResult); } } return(testRoleResult); }
public ValidationWarning Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } ValidationWarning validationWarning = new ValidationWarning(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("id", targetDepth)) { context.Read(); validationWarning.Id = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("warnings", targetDepth)) { context.Read(); validationWarning.Warnings = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } validationWarning.Warnings.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return(validationWarning); } } return(validationWarning); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeIdentityPoolResponse describeIdentityPoolResponse = new DescribeIdentityPoolResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("AllowUnauthenticatedIdentities", currentDepth)) { BoolUnmarshaller instance = BoolUnmarshaller.Instance; describeIdentityPoolResponse.AllowUnauthenticatedIdentities = instance.Unmarshall(context); } else if (context.TestExpression("CognitoIdentityProviders", currentDepth)) { ListUnmarshaller <CognitoIdentityProviderInfo, CognitoIdentityProviderInfoUnmarshaller> listUnmarshaller = new ListUnmarshaller <CognitoIdentityProviderInfo, CognitoIdentityProviderInfoUnmarshaller>(CognitoIdentityProviderInfoUnmarshaller.Instance); describeIdentityPoolResponse.CognitoIdentityProviders = listUnmarshaller.Unmarshall(context); } else if (context.TestExpression("DeveloperProviderName", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; describeIdentityPoolResponse.DeveloperProviderName = instance2.Unmarshall(context); } else if (context.TestExpression("IdentityPoolId", currentDepth)) { StringUnmarshaller instance3 = StringUnmarshaller.Instance; describeIdentityPoolResponse.IdentityPoolId = instance3.Unmarshall(context); } else if (context.TestExpression("IdentityPoolName", currentDepth)) { StringUnmarshaller instance4 = StringUnmarshaller.Instance; describeIdentityPoolResponse.IdentityPoolName = instance4.Unmarshall(context); } else if (context.TestExpression("OpenIdConnectProviderARNs", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller2 = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); describeIdentityPoolResponse.OpenIdConnectProviderARNs = listUnmarshaller2.Unmarshall(context); } else if (context.TestExpression("SamlProviderARNs", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller3 = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); describeIdentityPoolResponse.SamlProviderARNs = listUnmarshaller3.Unmarshall(context); } else if (context.TestExpression("SupportedLoginProviders", currentDepth)) { DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller> dictionaryUnmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); describeIdentityPoolResponse.SupportedLoginProviders = dictionaryUnmarshaller.Unmarshall(context); } } return(describeIdentityPoolResponse); }
private static void UnmarshallResult(JsonUnmarshallerContext context, QueryObjectsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("ids", targetDepth)) { context.Read(); response.Ids = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.Ids.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("marker", targetDepth)) { context.Read(); response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("hasMoreResults", targetDepth)) { context.Read(); response.HasMoreResults = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public ScriptBootstrapActionConfig Unmarshall(JsonUnmarshallerContext context) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); scriptBootstrapActionConfig.Args = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Path", targetDepth)) { scriptBootstrapActionConfig.Path = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Args", targetDepth)) { scriptBootstrapActionConfig.Args = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { scriptBootstrapActionConfig.Args.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(scriptBootstrapActionConfig); } } return(scriptBootstrapActionConfig); }
public ValidationWarning Unmarshall(JsonUnmarshallerContext context) { ValidationWarning validationWarning = new ValidationWarning(); validationWarning.Warnings = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Id", targetDepth)) { validationWarning.Id = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Warnings", targetDepth)) { validationWarning.Warnings = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { validationWarning.Warnings.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(validationWarning); } } return(validationWarning); }
public Projection Unmarshall(JsonUnmarshallerContext context) { Projection projection = new Projection(); projection.NonKeyAttributes = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("ProjectionType", targetDepth)) { projection.ProjectionType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NonKeyAttributes", targetDepth)) { projection.NonKeyAttributes = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { projection.NonKeyAttributes.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(projection); } } return(projection); }
public ListTablesResult Unmarshall(JsonUnmarshallerContext context) { ListTablesResult listTablesResult = new ListTablesResult(); listTablesResult.TableNames = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("TableNames", targetDepth)) { listTablesResult.TableNames = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { listTablesResult.TableNames.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("LastEvaluatedTableName", targetDepth)) { listTablesResult.LastEvaluatedTableName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(listTablesResult); } } return(listTablesResult); }
public VaultNotificationConfig Unmarshall(JsonUnmarshallerContext context) { VaultNotificationConfig vaultNotificationConfig = new VaultNotificationConfig(); vaultNotificationConfig.Events = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("SNSTopic", targetDepth)) { vaultNotificationConfig.SNSTopic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Events", targetDepth)) { vaultNotificationConfig.Events = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { vaultNotificationConfig.Events.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(vaultNotificationConfig); } } return(vaultNotificationConfig); }
private static void UnmarshallResult(JsonUnmarshallerContext context, TestRoleResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("Success", targetDepth)) { context.Read(); response.Success = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Messages", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { response.Messages = null; continue; } response.Messages = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.Messages.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public AddInstanceGroupsResult Unmarshall(JsonUnmarshallerContext context) { AddInstanceGroupsResult addInstanceGroupsResult = new AddInstanceGroupsResult(); addInstanceGroupsResult.InstanceGroupIds = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("JobFlowId", targetDepth)) { addInstanceGroupsResult.JobFlowId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InstanceGroupIds", targetDepth)) { addInstanceGroupsResult.InstanceGroupIds = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { addInstanceGroupsResult.InstanceGroupIds.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(addInstanceGroupsResult); } } return(addInstanceGroupsResult); }