public NotificationChannel unmarshall(JsonUnmarshallerContext context) throws Exception { NotificationChannel notificationChannel = new NotificationChannel();
public NotificationChannel unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } NotificationChannel notificationChannel = new NotificationChannel(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("SNSTopicArn")) { notificationChannel.setSNSTopicArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("RoleArn")) { notificationChannel.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return notificationChannel; }