public static DescribeKeyResponse Unmarshall(UnmarshallerContext context) { DescribeKeyResponse describeKeyResponse = new DescribeKeyResponse(); describeKeyResponse.HttpResponse = context.HttpResponse; describeKeyResponse.RequestId = context.StringValue("DescribeKey.RequestId"); DescribeKeyResponse.DescribeKey_KeyMetadata keyMetadata = new DescribeKeyResponse.DescribeKey_KeyMetadata(); keyMetadata.CreationDate = context.StringValue("DescribeKey.KeyMetadata.CreationDate"); keyMetadata.Description = context.StringValue("DescribeKey.KeyMetadata.Description"); keyMetadata.KeyId = context.StringValue("DescribeKey.KeyMetadata.KeyId"); keyMetadata.KeyState = context.StringValue("DescribeKey.KeyMetadata.KeyState"); keyMetadata.KeyUsage = context.StringValue("DescribeKey.KeyMetadata.KeyUsage"); keyMetadata.DeleteDate = context.StringValue("DescribeKey.KeyMetadata.DeleteDate"); keyMetadata.Creator = context.StringValue("DescribeKey.KeyMetadata.Creator"); keyMetadata.Arn = context.StringValue("DescribeKey.KeyMetadata.Arn"); keyMetadata.Origin = context.StringValue("DescribeKey.KeyMetadata.Origin"); keyMetadata.MaterialExpireTime = context.StringValue("DescribeKey.KeyMetadata.MaterialExpireTime"); keyMetadata.ProtectionLevel = context.StringValue("DescribeKey.KeyMetadata.ProtectionLevel"); keyMetadata.PrimaryKeyVersion = context.StringValue("DescribeKey.KeyMetadata.PrimaryKeyVersion"); keyMetadata.LastRotationDate = context.StringValue("DescribeKey.KeyMetadata.LastRotationDate"); keyMetadata.AutomaticRotation = context.StringValue("DescribeKey.KeyMetadata.AutomaticRotation"); keyMetadata.RotationInterval = context.StringValue("DescribeKey.KeyMetadata.RotationInterval"); keyMetadata.NextRotationDate = context.StringValue("DescribeKey.KeyMetadata.NextRotationDate"); keyMetadata.KeySpec = context.StringValue("DescribeKey.KeyMetadata.KeySpec"); describeKeyResponse.KeyMetadata = keyMetadata; return(describeKeyResponse); }
public static DescribeKeyResponse Unmarshall(UnmarshallerContext context) { DescribeKeyResponse describeKeyResponse = new DescribeKeyResponse(); describeKeyResponse.HttpResponse = context.HttpResponse; describeKeyResponse.RequestId = context.StringValue("DescribeKey.RequestId"); DescribeKeyResponse.KeyMetadata_ keyMetadata = new DescribeKeyResponse.KeyMetadata_(); keyMetadata.KeyId = context.StringValue("DescribeKey.KeyMetadata.KeyId"); keyMetadata.KeyState = context.StringValue("DescribeKey.KeyMetadata.KeyState"); keyMetadata.KeyUsage = context.StringValue("DescribeKey.KeyMetadata.KeyUsage"); keyMetadata.Description = context.StringValue("DescribeKey.KeyMetadata.Description"); describeKeyResponse.KeyMetadata = keyMetadata; return(describeKeyResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeKeyResponse response = new DescribeKeyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("KeyMetadata", targetDepth)) { var unmarshaller = KeyMetadataUnmarshaller.Instance; response.KeyMetadata = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static DescribeKeyResponse Unmarshall(UnmarshallerContext context) { DescribeKeyResponse describeKeyResponse = new DescribeKeyResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeKey.RequestId") }; DescribeKeyResponse.KeyMetadata_ keyMetadata = new DescribeKeyResponse.KeyMetadata_() { CreationDate = context.StringValue("DescribeKey.KeyMetadata.CreationDate"), Description = context.StringValue("DescribeKey.KeyMetadata.Description"), KeyId = context.StringValue("DescribeKey.KeyMetadata.KeyId"), KeyState = context.StringValue("DescribeKey.KeyMetadata.KeyState"), KeyUsage = context.StringValue("DescribeKey.KeyMetadata.KeyUsage"), DeleteDate = context.StringValue("DescribeKey.KeyMetadata.DeleteDate"), Creator = context.StringValue("DescribeKey.KeyMetadata.Creator") }; describeKeyResponse.KeyMetadata = keyMetadata; return(describeKeyResponse); }
public static DescribeKeyResponse Unmarshall(UnmarshallerContext context) { DescribeKeyResponse describeKeyResponse = new DescribeKeyResponse(); describeKeyResponse.HttpResponse = context.HttpResponse; describeKeyResponse.RequestId = context.StringValue("DescribeKey.RequestId"); DescribeKeyResponse.DescribeKey_KeyMetadata keyMetadata = new DescribeKeyResponse.DescribeKey_KeyMetadata(); keyMetadata.CreationDate = context.StringValue("DescribeKey.KeyMetadata.CreationDate"); keyMetadata.Description = context.StringValue("DescribeKey.KeyMetadata.Description"); keyMetadata.KeyId = context.StringValue("DescribeKey.KeyMetadata.KeyId"); keyMetadata.KeyState = context.StringValue("DescribeKey.KeyMetadata.KeyState"); keyMetadata.KeyUsage = context.StringValue("DescribeKey.KeyMetadata.KeyUsage"); keyMetadata.DeleteDate = context.StringValue("DescribeKey.KeyMetadata.DeleteDate"); keyMetadata.Creator = context.StringValue("DescribeKey.KeyMetadata.Creator"); keyMetadata.Arn = context.StringValue("DescribeKey.KeyMetadata.Arn"); keyMetadata.Origin = context.StringValue("DescribeKey.KeyMetadata.Origin"); keyMetadata.MaterialExpireTime = context.StringValue("DescribeKey.KeyMetadata.MaterialExpireTime"); describeKeyResponse.KeyMetadata = keyMetadata; return(describeKeyResponse); }