/** * <p> * The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the * cookie field in the firehose will be <code>xxx</code>. * </p> * * @param redactedFields * The parts of the request that you want redacted from the logs. For example, if you redact the cookie * field, the cookie field in the firehose will be <code>xxx</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withRedactedFields(java.util.Collection<FieldToMatch> redactedFields) { setRedactedFields(redactedFields); return this; }
/** * <p> * The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the * cookie field in the firehose will be <code>xxx</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRedactedFields(java.util.Collection)} or {@link #withRedactedFields(java.util.Collection)} if you want * to override the existing values. * </p> * * @param redactedFields * The parts of the request that you want redacted from the logs. For example, if you redact the cookie * field, the cookie field in the firehose will be <code>xxx</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withRedactedFields(FieldToMatch... redactedFields) { if (this.redactedFields == null) { setRedactedFields(new java.util.ArrayList<FieldToMatch>(redactedFields.length)); } for (FieldToMatch ele : redactedFields) { this.redactedFields.add(ele); } return this; }
loggingConfiguration.setRedactedFields(new ListUnmarshaller<FieldToMatch>(FieldToMatchJsonUnmarshaller.getInstance()).unmarshall(context));
loggingConfiguration.setRedactedFields(new ListUnmarshaller<FieldToMatch>(FieldToMatchJsonUnmarshaller.getInstance()).unmarshall(context));