public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "name": return Optional.ofNullable(clazz.cast(name())); case "values": return Optional.ofNullable(clazz.cast(values())); case "condition": return Optional.ofNullable(clazz.cast(condition())); default: return Optional.empty(); } }
/** * 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("ExportFilter").add("Name", name()).add("Values", values()).add("Condition", condition()).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("ExportFilter").add("Name", name()).add("Values", values()).add("Condition", condition()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "name": return Optional.ofNullable(clazz.cast(name())); case "values": return Optional.ofNullable(clazz.cast(values())); case "condition": return Optional.ofNullable(clazz.cast(condition())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "name": return Optional.ofNullable(clazz.cast(name())); case "values": return Optional.ofNullable(clazz.cast(values())); case "condition": return Optional.ofNullable(clazz.cast(condition())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(values()); hashCode = 31 * hashCode + Objects.hashCode(condition()); return hashCode; }
@Override public String toString() { return ToString.builder("ExportFilter").add("Name", name()).add("Values", values()).add("Condition", condition()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(values()); hashCode = 31 * hashCode + Objects.hashCode(condition()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(values()); hashCode = 31 * hashCode + Objects.hashCode(condition()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ExportFilter)) { return false; } ExportFilter other = (ExportFilter) obj; return Objects.equals(name(), other.name()) && Objects.equals(values(), other.values()) && Objects.equals(condition(), other.condition()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ExportFilter)) { return false; } ExportFilter other = (ExportFilter) obj; return Objects.equals(name(), other.name()) && Objects.equals(values(), other.values()) && Objects.equals(condition(), other.condition()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ExportFilter)) { return false; } ExportFilter other = (ExportFilter) obj; return Objects.equals(name(), other.name()) && Objects.equals(values(), other.values()) && Objects.equals(condition(), other.condition()); }
/** * Marshall the given parameter object */ public void marshall(ExportFilter exportFilter, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(exportFilter, "exportFilter"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(exportFilter.name(), NAME_BINDING); protocolMarshaller.marshall(exportFilter.values(), VALUES_BINDING); protocolMarshaller.marshall(exportFilter.condition(), CONDITION_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }