/** * <p> * The value of the tag. * </p> * * @param tagValue * The value of the tag. * @return Returns a reference to this object so that method calls can be chained together. */ public Tag withTagValue(String tagValue) { setTagValue(tagValue); return this; }
tag.setTagValue(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The value of the tag. * </p> * * @param tagValue * The value of the tag. * @return Returns a reference to this object so that method calls can be chained together. */ public Tag withTagValue(String tagValue) { setTagValue(tagValue); return this; }
/** * <p> * The value of the tag. * </p> * * @param tagValue * The value of the tag. * @return Returns a reference to this object so that method calls can be chained together. */ public Tag withTagValue(String tagValue) { setTagValue(tagValue); return this; }
public Tag unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Tag tag = new Tag(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("TagKey")) { tag.setTagKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("TagValue")) { tag.setTagValue(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return tag; }
public Tag unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Tag tag = new Tag(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("TagKey")) { tag.setTagKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("TagValue")) { tag.setTagValue(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return tag; }
tag.setTagValue(context.getUnmarshaller(String.class).unmarshall(context));
tag.setTagValue(context.getUnmarshaller(String.class).unmarshall(context));