@Override public String toString() { return ToString.builder("PutEventsRequestEntry").add("Time", time()).add("Source", source()) .add("Resources", resources()).add("DetailType", detailType()).add("Detail", detail()).build(); }
/** * 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. */ @Override public String toString() { return ToString.builder("PutEventsRequestEntry").add("Time", time()).add("Source", source()) .add("Resources", resources()).add("DetailType", detailType()).add("Detail", detail()).build(); }
/** * 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. */ @Override public String toString() { return ToString.builder("PutEventsRequestEntry").add("Time", time()).add("Source", source()) .add("Resources", resources()).add("DetailType", detailType()).add("Detail", detail()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Time": return Optional.ofNullable(clazz.cast(time())); case "Source": return Optional.ofNullable(clazz.cast(source())); case "Resources": return Optional.ofNullable(clazz.cast(resources())); case "DetailType": return Optional.ofNullable(clazz.cast(detailType())); case "Detail": return Optional.ofNullable(clazz.cast(detail())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Time": return Optional.ofNullable(clazz.cast(time())); case "Source": return Optional.ofNullable(clazz.cast(source())); case "Resources": return Optional.ofNullable(clazz.cast(resources())); case "DetailType": return Optional.ofNullable(clazz.cast(detailType())); case "Detail": return Optional.ofNullable(clazz.cast(detail())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Time": return Optional.ofNullable(clazz.cast(time())); case "Source": return Optional.ofNullable(clazz.cast(source())); case "Resources": return Optional.ofNullable(clazz.cast(resources())); case "DetailType": return Optional.ofNullable(clazz.cast(detailType())); case "Detail": return Optional.ofNullable(clazz.cast(detail())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(time()); hashCode = 31 * hashCode + Objects.hashCode(source()); hashCode = 31 * hashCode + Objects.hashCode(resources()); hashCode = 31 * hashCode + Objects.hashCode(detailType()); hashCode = 31 * hashCode + Objects.hashCode(detail()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(time()); hashCode = 31 * hashCode + Objects.hashCode(source()); hashCode = 31 * hashCode + Objects.hashCode(resources()); hashCode = 31 * hashCode + Objects.hashCode(detailType()); hashCode = 31 * hashCode + Objects.hashCode(detail()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(time()); hashCode = 31 * hashCode + Objects.hashCode(source()); hashCode = 31 * hashCode + Objects.hashCode(resources()); hashCode = 31 * hashCode + Objects.hashCode(detailType()); hashCode = 31 * hashCode + Objects.hashCode(detail()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof PutEventsRequestEntry)) { return false; } PutEventsRequestEntry other = (PutEventsRequestEntry) obj; return Objects.equals(time(), other.time()) && Objects.equals(source(), other.source()) && Objects.equals(resources(), other.resources()) && Objects.equals(detailType(), other.detailType()) && Objects.equals(detail(), other.detail()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof PutEventsRequestEntry)) { return false; } PutEventsRequestEntry other = (PutEventsRequestEntry) obj; return Objects.equals(time(), other.time()) && Objects.equals(source(), other.source()) && Objects.equals(resources(), other.resources()) && Objects.equals(detailType(), other.detailType()) && Objects.equals(detail(), other.detail()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof PutEventsRequestEntry)) { return false; } PutEventsRequestEntry other = (PutEventsRequestEntry) obj; return Objects.equals(time(), other.time()) && Objects.equals(source(), other.source()) && Objects.equals(resources(), other.resources()) && Objects.equals(detailType(), other.detailType()) && Objects.equals(detail(), other.detail()); }
/** * Marshall the given parameter object */ public void marshall(PutEventsRequestEntry putEventsRequestEntry, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(putEventsRequestEntry, "putEventsRequestEntry"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(putEventsRequestEntry.time(), TIME_BINDING); protocolMarshaller.marshall(putEventsRequestEntry.source(), SOURCE_BINDING); protocolMarshaller.marshall(putEventsRequestEntry.resources(), RESOURCES_BINDING); protocolMarshaller.marshall(putEventsRequestEntry.detailType(), DETAILTYPE_BINDING); protocolMarshaller.marshall(putEventsRequestEntry.detail(), DETAIL_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }