if (getFile() != null) sb.append("File: ").append(getFile()).append(","); if (getFileFingerprintLines() != null) sb.append("FileFingerprintLines: ").append(getFileFingerprintLines()).append(","); if (getMultiLineStartPattern() != null) sb.append("MultiLineStartPattern: ").append(getMultiLineStartPattern()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLogGroupName() == null) ? 0 : getLogGroupName().hashCode()); hashCode = prime * hashCode + ((getDatetimeFormat() == null) ? 0 : getDatetimeFormat().hashCode()); hashCode = prime * hashCode + ((getTimeZone() == null) ? 0 : getTimeZone().hashCode()); hashCode = prime * hashCode + ((getFile() == null) ? 0 : getFile().hashCode()); hashCode = prime * hashCode + ((getFileFingerprintLines() == null) ? 0 : getFileFingerprintLines().hashCode()); hashCode = prime * hashCode + ((getMultiLineStartPattern() == null) ? 0 : getMultiLineStartPattern().hashCode()); hashCode = prime * hashCode + ((getInitialPosition() == null) ? 0 : getInitialPosition().hashCode()); hashCode = prime * hashCode + ((getEncoding() == null) ? 0 : getEncoding().hashCode()); hashCode = prime * hashCode + ((getBufferDuration() == null) ? 0 : getBufferDuration().hashCode()); hashCode = prime * hashCode + ((getBatchCount() == null) ? 0 : getBatchCount().hashCode()); hashCode = prime * hashCode + ((getBatchSize() == null) ? 0 : getBatchSize().hashCode()); return hashCode; }
if (other.getFile() != null && other.getFile().equals(this.getFile()) == false) return false; if (other.getFileFingerprintLines() == null ^ this.getFileFingerprintLines() == null) return false; if (other.getFileFingerprintLines() != null && other.getFileFingerprintLines().equals(this.getFileFingerprintLines()) == false) return false; if (other.getMultiLineStartPattern() == null ^ this.getMultiLineStartPattern() == null)
/** * Marshall the given parameter object. */ public void marshall(CloudWatchLogsLogStream cloudWatchLogsLogStream, ProtocolMarshaller protocolMarshaller) { if (cloudWatchLogsLogStream == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(cloudWatchLogsLogStream.getLogGroupName(), LOGGROUPNAME_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getDatetimeFormat(), DATETIMEFORMAT_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getTimeZone(), TIMEZONE_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getFile(), FILE_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getFileFingerprintLines(), FILEFINGERPRINTLINES_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getMultiLineStartPattern(), MULTILINESTARTPATTERN_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getInitialPosition(), INITIALPOSITION_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getEncoding(), ENCODING_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBufferDuration(), BUFFERDURATION_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBatchCount(), BATCHCOUNT_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBatchSize(), BATCHSIZE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getFile() != null) sb.append("File: ").append(getFile()).append(","); if (getFileFingerprintLines() != null) sb.append("FileFingerprintLines: ").append(getFileFingerprintLines()).append(","); if (getMultiLineStartPattern() != null) sb.append("MultiLineStartPattern: ").append(getMultiLineStartPattern()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLogGroupName() == null) ? 0 : getLogGroupName().hashCode()); hashCode = prime * hashCode + ((getDatetimeFormat() == null) ? 0 : getDatetimeFormat().hashCode()); hashCode = prime * hashCode + ((getTimeZone() == null) ? 0 : getTimeZone().hashCode()); hashCode = prime * hashCode + ((getFile() == null) ? 0 : getFile().hashCode()); hashCode = prime * hashCode + ((getFileFingerprintLines() == null) ? 0 : getFileFingerprintLines().hashCode()); hashCode = prime * hashCode + ((getMultiLineStartPattern() == null) ? 0 : getMultiLineStartPattern().hashCode()); hashCode = prime * hashCode + ((getInitialPosition() == null) ? 0 : getInitialPosition().hashCode()); hashCode = prime * hashCode + ((getEncoding() == null) ? 0 : getEncoding().hashCode()); hashCode = prime * hashCode + ((getBufferDuration() == null) ? 0 : getBufferDuration().hashCode()); hashCode = prime * hashCode + ((getBatchCount() == null) ? 0 : getBatchCount().hashCode()); hashCode = prime * hashCode + ((getBatchSize() == null) ? 0 : getBatchSize().hashCode()); return hashCode; }
if (other.getFile() != null && other.getFile().equals(this.getFile()) == false) return false; if (other.getFileFingerprintLines() == null ^ this.getFileFingerprintLines() == null) return false; if (other.getFileFingerprintLines() != null && other.getFileFingerprintLines().equals(this.getFileFingerprintLines()) == false) return false; if (other.getMultiLineStartPattern() == null ^ this.getMultiLineStartPattern() == null)
/** * Marshall the given parameter object. */ public void marshall(CloudWatchLogsLogStream cloudWatchLogsLogStream, ProtocolMarshaller protocolMarshaller) { if (cloudWatchLogsLogStream == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(cloudWatchLogsLogStream.getLogGroupName(), LOGGROUPNAME_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getDatetimeFormat(), DATETIMEFORMAT_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getTimeZone(), TIMEZONE_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getFile(), FILE_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getFileFingerprintLines(), FILEFINGERPRINTLINES_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getMultiLineStartPattern(), MULTILINESTARTPATTERN_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getInitialPosition(), INITIALPOSITION_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getEncoding(), ENCODING_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBufferDuration(), BUFFERDURATION_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBatchCount(), BATCHCOUNT_BINDING); protocolMarshaller.marshall(cloudWatchLogsLogStream.getBatchSize(), BATCHSIZE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }