/** * <p> * The Amazon Inspector application data metrics that are collected by the agent. * </p> * * @param telemetryMetadata * The Amazon Inspector application data metrics that are collected by the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRunAgent withTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata) { setTelemetryMetadata(telemetryMetadata); return this; }
/** * <p> * The Amazon Inspector application data metrics that are collected by the agent. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTelemetryMetadata(java.util.Collection)} or {@link #withTelemetryMetadata(java.util.Collection)} if * you want to override the existing values. * </p> * * @param telemetryMetadata * The Amazon Inspector application data metrics that are collected by the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRunAgent withTelemetryMetadata(TelemetryMetadata... telemetryMetadata) { if (this.telemetryMetadata == null) { setTelemetryMetadata(new java.util.ArrayList<TelemetryMetadata>(telemetryMetadata.length)); } for (TelemetryMetadata ele : telemetryMetadata) { this.telemetryMetadata.add(ele); } return this; }
assessmentRunAgent.setTelemetryMetadata(new ListUnmarshaller<TelemetryMetadata>(TelemetryMetadataJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * The Amazon Inspector application data metrics that are collected by the agent. * </p> * * @param telemetryMetadata * The Amazon Inspector application data metrics that are collected by the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRunAgent withTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata) { setTelemetryMetadata(telemetryMetadata); return this; }
/** * <p> * The Amazon Inspector application data metrics that are collected by the agent. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTelemetryMetadata(java.util.Collection)} or {@link #withTelemetryMetadata(java.util.Collection)} if * you want to override the existing values. * </p> * * @param telemetryMetadata * The Amazon Inspector application data metrics that are collected by the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRunAgent withTelemetryMetadata(TelemetryMetadata... telemetryMetadata) { if (this.telemetryMetadata == null) { setTelemetryMetadata(new java.util.ArrayList<TelemetryMetadata>(telemetryMetadata.length)); } for (TelemetryMetadata ele : telemetryMetadata) { this.telemetryMetadata.add(ele); } return this; }
assessmentRunAgent.setTelemetryMetadata(new ListUnmarshaller<TelemetryMetadata>(TelemetryMetadataJsonUnmarshaller.getInstance()) .unmarshall(context));