/** * <p> * Information about the target (thing group) associated with the security profile. * </p> * * @param target * Information about the target (thing group) associated with the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileTargetMapping withTarget(SecurityProfileTarget target) { setTarget(target); return this; }
securityProfileTargetMapping.setTarget(SecurityProfileTargetJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * Information about the target (thing group) associated with the security profile. * </p> * * @param target * Information about the target (thing group) associated with the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileTargetMapping withTarget(SecurityProfileTarget target) { setTarget(target); return this; }
public SecurityProfileTargetMapping unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileTargetMapping securityProfileTargetMapping = new SecurityProfileTargetMapping(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("securityProfileIdentifier")) { securityProfileTargetMapping .setSecurityProfileIdentifier(SecurityProfileIdentifierJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("target")) { securityProfileTargetMapping.setTarget(SecurityProfileTargetJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileTargetMapping; }
public SecurityProfileTargetMapping unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileTargetMapping securityProfileTargetMapping = new SecurityProfileTargetMapping(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("securityProfileIdentifier")) { securityProfileTargetMapping .setSecurityProfileIdentifier(SecurityProfileIdentifierJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("target")) { securityProfileTargetMapping.setTarget(SecurityProfileTargetJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileTargetMapping; }
securityProfileTargetMapping.setTarget(SecurityProfileTargetJsonUnmarshaller.getInstance().unmarshall(context));