@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getLogDestinationConfigs() == null) ? 0 : getLogDestinationConfigs().hashCode()); hashCode = prime * hashCode + ((getRedactedFields() == null) ? 0 : getRedactedFields().hashCode()); return hashCode; }
/** * <p> * An array of Amazon Kinesis Data Firehose ARNs. * </p> * * @param logDestinationConfigs * An array of Amazon Kinesis Data Firehose ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withLogDestinationConfigs(java.util.Collection<String> logDestinationConfigs) { setLogDestinationConfigs(logDestinationConfigs); 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> * * @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; }
public LoggingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { LoggingConfiguration loggingConfiguration = new LoggingConfiguration(); if (context.testExpression("ResourceArn", targetDepth)) { context.nextToken(); loggingConfiguration.setResourceArn(context.getUnmarshaller(String.class).unmarshall(context)); loggingConfiguration.setLogDestinationConfigs(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); loggingConfiguration.setRedactedFields(new ListUnmarshaller<FieldToMatch>(FieldToMatchJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutLoggingConfigurationRequest == false) return false; PutLoggingConfigurationRequest other = (PutLoggingConfigurationRequest) obj; if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null) return false; if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false) return false; return true; }
/** * <p> * The Amazon Resource Name (ARN) of the web ACL that you want to associate with <code>LogDestinationConfigs</code>. * </p> * * @param resourceArn * The Amazon Resource Name (ARN) of the web ACL that you want to associate with * <code>LogDestinationConfigs</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; }
public LoggingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { LoggingConfiguration loggingConfiguration = new LoggingConfiguration(); if (context.testExpression("ResourceArn", targetDepth)) { context.nextToken(); loggingConfiguration.setResourceArn(context.getUnmarshaller(String.class).unmarshall(context)); loggingConfiguration.setLogDestinationConfigs(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); loggingConfiguration.setRedactedFields(new ListUnmarshaller<FieldToMatch>(FieldToMatchJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutLoggingConfigurationResult == false) return false; PutLoggingConfigurationResult other = (PutLoggingConfigurationResult) obj; if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null) return false; if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoggingConfiguration == false) return false; LoggingConfiguration other = (LoggingConfiguration) obj; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getLogDestinationConfigs() == null ^ this.getLogDestinationConfigs() == null) return false; if (other.getLogDestinationConfigs() != null && other.getLogDestinationConfigs().equals(this.getLogDestinationConfigs()) == false) return false; if (other.getRedactedFields() == null ^ this.getRedactedFields() == null) return false; if (other.getRedactedFields() != null && other.getRedactedFields().equals(this.getRedactedFields()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLoggingConfigurationResult == false) return false; GetLoggingConfigurationResult other = (GetLoggingConfigurationResult) obj; if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null) return false; if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false) return false; return true; }
/** * <p> * An array of Amazon Kinesis Data Firehose ARNs. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLogDestinationConfigs(java.util.Collection)} or * {@link #withLogDestinationConfigs(java.util.Collection)} if you want to override the existing values. * </p> * * @param logDestinationConfigs * An array of Amazon Kinesis Data Firehose ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withLogDestinationConfigs(String... logDestinationConfigs) { if (this.logDestinationConfigs == null) { setLogDestinationConfigs(new java.util.ArrayList<String>(logDestinationConfigs.length)); } for (String ele : logDestinationConfigs) { this.logDestinationConfigs.add(ele); } 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; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getLogDestinationConfigs() != null) sb.append("LogDestinationConfigs: ").append(getLogDestinationConfigs()).append(","); if (getRedactedFields() != null) sb.append("RedactedFields: ").append(getRedactedFields()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(LoggingConfiguration loggingConfiguration, ProtocolMarshaller protocolMarshaller) { if (loggingConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loggingConfiguration.getResourceArn(), RESOURCEARN_BINDING); protocolMarshaller.marshall(loggingConfiguration.getLogDestinationConfigs(), LOGDESTINATIONCONFIGS_BINDING); protocolMarshaller.marshall(loggingConfiguration.getRedactedFields(), REDACTEDFIELDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(LoggingConfiguration loggingConfiguration, ProtocolMarshaller protocolMarshaller) { if (loggingConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loggingConfiguration.getResourceArn(), RESOURCEARN_BINDING); protocolMarshaller.marshall(loggingConfiguration.getLogDestinationConfigs(), LOGDESTINATIONCONFIGS_BINDING); protocolMarshaller.marshall(loggingConfiguration.getRedactedFields(), REDACTEDFIELDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }