/** * Simplified method form for invoking the DescribeEvents operation. * * @see #describeEventsAsync(DescribeEventsRequest) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync() { return describeEventsAsync(new DescribeEventsRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceIdentifier() == null) ? 0 : getSourceIdentifier().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
/** * <p> * The number of minutes worth of events to retrieve. * </p> * * @param duration * The number of minutes worth of events to retrieve. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventsRequest withDuration(Integer duration) { setDuration(duration); return this; }
/** * <p> * The end of the time interval for which to retrieve events, specified in ISO 8601 format. * </p> * <p> * <b>Example:</b> 2017-03-30T07:03:49.555Z * </p> * * @param endTime * The end of the time interval for which to retrieve events, specified in ISO 8601 format.</p> * <p> * <b>Example:</b> 2017-03-30T07:03:49.555Z * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventsRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; }
/** * <p> * The end of the time interval for which to retrieve events, specified in ISO 8601 format. * </p> * <p> * <b>Example:</b> 2017-03-30T07:03:49.555Z * </p> * * @param endTime * The end of the time interval for which to retrieve events, specified in ISO 8601 format.</p> * <p> * <b>Example:</b> 2017-03-30T07:03:49.555Z * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventsRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; }
return false; DescribeEventsRequest other = (DescribeEventsRequest) obj; if (other.getSourceIdentifier() == null ^ this.getSourceIdentifier() == null) return false; if (other.getSourceIdentifier() != null && other.getSourceIdentifier().equals(this.getSourceIdentifier()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
/** * Simplified method form for invoking the DescribeEvents operation. * * @see #describeEventsAsync(DescribeEventsRequest) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync() { return describeEventsAsync(new DescribeEventsRequest()); }
/** * <p> * The number of minutes worth of events to retrieve. * </p> * * @param duration * The number of minutes worth of events to retrieve. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventsRequest withDuration(Integer duration) { setDuration(duration); 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 (getSourceIdentifier() != null) sb.append("SourceIdentifier: ").append(getSourceIdentifier()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getDuration() != null) sb.append("Duration: ").append(getDuration()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the DescribeEvents operation with an AsyncHandler. * * @see #describeEventsAsync(DescribeEventsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync( com.amazonaws.handlers.AsyncHandler<DescribeEventsRequest, DescribeEventsResult> asyncHandler) { return describeEventsAsync(new DescribeEventsRequest(), asyncHandler); }
request.setHttpMethod(HttpMethodName.POST); if (describeEventsRequest.getSourceIdentifier() != null) { request.addParameter("SourceIdentifier", StringUtils.fromString(describeEventsRequest.getSourceIdentifier())); if (describeEventsRequest.getSourceType() != null) { request.addParameter("SourceType", StringUtils.fromString(describeEventsRequest.getSourceType())); if (describeEventsRequest.getStartTime() != null) { request.addParameter("StartTime", StringUtils.fromDate(describeEventsRequest.getStartTime())); if (describeEventsRequest.getEndTime() != null) { request.addParameter("EndTime", StringUtils.fromDate(describeEventsRequest.getEndTime())); if (describeEventsRequest.getDuration() != null) { request.addParameter("Duration", StringUtils.fromInteger(describeEventsRequest.getDuration())); if (describeEventsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeEventsRequest.getMaxRecords())); if (describeEventsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeEventsRequest.getMarker()));
/** * Simplified method form for invoking the DescribeEvents operation with an AsyncHandler. * * @see #describeEventsAsync(DescribeEventsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync( com.amazonaws.handlers.AsyncHandler<DescribeEventsRequest, DescribeEventsResult> asyncHandler) { return describeEventsAsync(new DescribeEventsRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceIdentifier() == null) ? 0 : getSourceIdentifier().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
@Override public DescribeEventsResult describeEvents() { return describeEvents(new DescribeEventsRequest()); }
return false; DescribeEventsRequest other = (DescribeEventsRequest) obj; if (other.getSourceIdentifier() == null ^ this.getSourceIdentifier() == null) return false; if (other.getSourceIdentifier() != null && other.getSourceIdentifier().equals(this.getSourceIdentifier()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
@Override public DescribeEventsResult describeEvents() { return describeEvents(new DescribeEventsRequest()); }
/** * 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 (getSourceIdentifier() != null) sb.append("SourceIdentifier: ").append(getSourceIdentifier()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getDuration() != null) sb.append("Duration: ").append(getDuration()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the DescribeEvents operation. * * @see #describeEventsAsync(DescribeEventsRequest) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync() { return describeEventsAsync(new DescribeEventsRequest()); }
request.setHttpMethod(HttpMethodName.POST); if (describeEventsRequest.getSourceIdentifier() != null) { request.addParameter("SourceIdentifier", StringUtils.fromString(describeEventsRequest.getSourceIdentifier())); if (describeEventsRequest.getSourceType() != null) { request.addParameter("SourceType", StringUtils.fromString(describeEventsRequest.getSourceType())); if (describeEventsRequest.getStartTime() != null) { request.addParameter("StartTime", StringUtils.fromDate(describeEventsRequest.getStartTime())); if (describeEventsRequest.getEndTime() != null) { request.addParameter("EndTime", StringUtils.fromDate(describeEventsRequest.getEndTime())); if (describeEventsRequest.getDuration() != null) { request.addParameter("Duration", StringUtils.fromInteger(describeEventsRequest.getDuration())); if (describeEventsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeEventsRequest.getMaxRecords())); if (describeEventsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeEventsRequest.getMarker()));
/** * Simplified method form for invoking the DescribeEvents operation. * * @see #describeEventsAsync(DescribeEventsRequest) */ @Override public java.util.concurrent.Future<DescribeEventsResult> describeEventsAsync() { return describeEventsAsync(new DescribeEventsRequest()); }