@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; }
public CloudWatchLogsLogStream unmarshall(JsonUnmarshallerContext context) throws Exception { CloudWatchLogsLogStream cloudWatchLogsLogStream = new CloudWatchLogsLogStream(); if (context.testExpression("LogGroupName", targetDepth)) { context.nextToken(); cloudWatchLogsLogStream.setLogGroupName(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setDatetimeFormat(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setTimeZone(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setFile(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setFileFingerprintLines(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setMultiLineStartPattern(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setInitialPosition(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setEncoding(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setBufferDuration(context.getUnmarshaller(Integer.class).unmarshall(context)); cloudWatchLogsLogStream.setBatchCount(context.getUnmarshaller(Integer.class).unmarshall(context)); cloudWatchLogsLogStream.setBatchSize(context.getUnmarshaller(Integer.class).unmarshall(context));
public CloudWatchLogsLogStream unmarshall(JsonUnmarshallerContext context) throws Exception { CloudWatchLogsLogStream cloudWatchLogsLogStream = new CloudWatchLogsLogStream(); if (context.testExpression("LogGroupName", targetDepth)) { context.nextToken(); cloudWatchLogsLogStream.setLogGroupName(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setDatetimeFormat(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setTimeZone(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setFile(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setFileFingerprintLines(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setMultiLineStartPattern(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setInitialPosition(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setEncoding(context.getUnmarshaller(String.class).unmarshall(context)); cloudWatchLogsLogStream.setBufferDuration(context.getUnmarshaller(Integer.class).unmarshall(context)); cloudWatchLogsLogStream.setBatchCount(context.getUnmarshaller(Integer.class).unmarshall(context)); cloudWatchLogsLogStream.setBatchSize(context.getUnmarshaller(Integer.class).unmarshall(context));
return false; CloudWatchLogsLogStream other = (CloudWatchLogsLogStream) obj; if (other.getLogGroupName() == null ^ this.getLogGroupName() == null) return false; if (other.getLogGroupName() != null && other.getLogGroupName().equals(this.getLogGroupName()) == false) return false; if (other.getDatetimeFormat() == null ^ this.getDatetimeFormat() == null) return false; if (other.getDatetimeFormat() != null && other.getDatetimeFormat().equals(this.getDatetimeFormat()) == false) return false; if (other.getTimeZone() == null ^ this.getTimeZone() == null) return false; if (other.getTimeZone() != null && other.getTimeZone().equals(this.getTimeZone()) == false) return false; if (other.getFile() == null ^ this.getFile() == null) return false; 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) return false; if (other.getMultiLineStartPattern() != null && other.getMultiLineStartPattern().equals(this.getMultiLineStartPattern()) == false) return false; if (other.getInitialPosition() == null ^ this.getInitialPosition() == null) return false; if (other.getInitialPosition() != null && other.getInitialPosition().equals(this.getInitialPosition()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLogGroupName() != null) sb.append("LogGroupName: ").append(getLogGroupName()).append(","); if (getDatetimeFormat() != null) sb.append("DatetimeFormat: ").append(getDatetimeFormat()).append(","); if (getTimeZone() != null) sb.append("TimeZone: ").append(getTimeZone()).append(","); 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(","); if (getInitialPosition() != null) sb.append("InitialPosition: ").append(getInitialPosition()).append(","); if (getEncoding() != null) sb.append("Encoding: ").append(getEncoding()).append(","); if (getBufferDuration() != null) sb.append("BufferDuration: ").append(getBufferDuration()).append(","); if (getBatchCount() != null) sb.append("BatchCount: ").append(getBatchCount()).append(","); if (getBatchSize() != null) sb.append("BatchSize: ").append(getBatchSize()); sb.append("}"); return sb.toString();
/** * 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); } }
@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; }
return false; CloudWatchLogsLogStream other = (CloudWatchLogsLogStream) obj; if (other.getLogGroupName() == null ^ this.getLogGroupName() == null) return false; if (other.getLogGroupName() != null && other.getLogGroupName().equals(this.getLogGroupName()) == false) return false; if (other.getDatetimeFormat() == null ^ this.getDatetimeFormat() == null) return false; if (other.getDatetimeFormat() != null && other.getDatetimeFormat().equals(this.getDatetimeFormat()) == false) return false; if (other.getTimeZone() == null ^ this.getTimeZone() == null) return false; if (other.getTimeZone() != null && other.getTimeZone().equals(this.getTimeZone()) == false) return false; if (other.getFile() == null ^ this.getFile() == null) return false; 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) return false; if (other.getMultiLineStartPattern() != null && other.getMultiLineStartPattern().equals(this.getMultiLineStartPattern()) == false) return false; if (other.getInitialPosition() == null ^ this.getInitialPosition() == null) return false; if (other.getInitialPosition() != null && other.getInitialPosition().equals(this.getInitialPosition()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLogGroupName() != null) sb.append("LogGroupName: ").append(getLogGroupName()).append(","); if (getDatetimeFormat() != null) sb.append("DatetimeFormat: ").append(getDatetimeFormat()).append(","); if (getTimeZone() != null) sb.append("TimeZone: ").append(getTimeZone()).append(","); 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(","); if (getInitialPosition() != null) sb.append("InitialPosition: ").append(getInitialPosition()).append(","); if (getEncoding() != null) sb.append("Encoding: ").append(getEncoding()).append(","); if (getBufferDuration() != null) sb.append("BufferDuration: ").append(getBufferDuration()).append(","); if (getBatchCount() != null) sb.append("BatchCount: ").append(getBatchCount()).append(","); if (getBatchSize() != null) sb.append("BatchSize: ").append(getBatchSize()); sb.append("}"); return sb.toString();
/** * 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); } }