use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class DescribeKeyResultJsonUnmarshaller method unmarshall.
public DescribeKeyResult unmarshall(JsonUnmarshallerContext context) throws Exception {
DescribeKeyResult describeKeyResult = new DescribeKeyResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("KeyMetadata")) {
describeKeyResult.setKeyMetadata(KeyMetadataJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return describeKeyResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ListKeyPoliciesResultJsonUnmarshaller method unmarshall.
public ListKeyPoliciesResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListKeyPoliciesResult listKeyPoliciesResult = new ListKeyPoliciesResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("PolicyNames")) {
listKeyPoliciesResult.setPolicyNames(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("NextMarker")) {
listKeyPoliciesResult.setNextMarker(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Truncated")) {
listKeyPoliciesResult.setTruncated(BooleanJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return listKeyPoliciesResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ListRetirableGrantsResultJsonUnmarshaller method unmarshall.
public ListRetirableGrantsResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListRetirableGrantsResult listRetirableGrantsResult = new ListRetirableGrantsResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Grants")) {
listRetirableGrantsResult.setGrants(new ListUnmarshaller<GrantListEntry>(GrantListEntryJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("NextMarker")) {
listRetirableGrantsResult.setNextMarker(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Truncated")) {
listRetirableGrantsResult.setTruncated(BooleanJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return listRetirableGrantsResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class GenerateRandomResultJsonUnmarshaller method unmarshall.
public GenerateRandomResult unmarshall(JsonUnmarshallerContext context) throws Exception {
GenerateRandomResult generateRandomResult = new GenerateRandomResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Plaintext")) {
generateRandomResult.setPlaintext(ByteBufferJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return generateRandomResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class GetKeyPolicyResultJsonUnmarshaller method unmarshall.
public GetKeyPolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {
GetKeyPolicyResult getKeyPolicyResult = new GetKeyPolicyResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Policy")) {
getKeyPolicyResult.setPolicy(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return getKeyPolicyResult;
}
Aggregations