public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "agentId": return Optional.ofNullable(clazz.cast(agentId())); case "operationSucceeded": return Optional.ofNullable(clazz.cast(operationSucceeded())); case "description": return Optional.ofNullable(clazz.cast(description())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "agentId": return Optional.ofNullable(clazz.cast(agentId())); case "operationSucceeded": return Optional.ofNullable(clazz.cast(operationSucceeded())); case "description": return Optional.ofNullable(clazz.cast(description())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "agentId": return Optional.ofNullable(clazz.cast(agentId())); case "operationSucceeded": return Optional.ofNullable(clazz.cast(operationSucceeded())); case "description": return Optional.ofNullable(clazz.cast(description())); 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("AgentConfigurationStatus").add("AgentId", agentId()) .add("OperationSucceeded", operationSucceeded()).add("Description", description()).build(); }
@Override public String toString() { return ToString.builder("AgentConfigurationStatus").add("AgentId", agentId()) .add("OperationSucceeded", operationSucceeded()).add("Description", description()).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("AgentConfigurationStatus").add("AgentId", agentId()) .add("OperationSucceeded", operationSucceeded()).add("Description", description()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(agentId()); hashCode = 31 * hashCode + Objects.hashCode(operationSucceeded()); hashCode = 31 * hashCode + Objects.hashCode(description()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(agentId()); hashCode = 31 * hashCode + Objects.hashCode(operationSucceeded()); hashCode = 31 * hashCode + Objects.hashCode(description()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(agentId()); hashCode = 31 * hashCode + Objects.hashCode(operationSucceeded()); hashCode = 31 * hashCode + Objects.hashCode(description()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AgentConfigurationStatus)) { return false; } AgentConfigurationStatus other = (AgentConfigurationStatus) obj; return Objects.equals(agentId(), other.agentId()) && Objects.equals(operationSucceeded(), other.operationSucceeded()) && Objects.equals(description(), other.description()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AgentConfigurationStatus)) { return false; } AgentConfigurationStatus other = (AgentConfigurationStatus) obj; return Objects.equals(agentId(), other.agentId()) && Objects.equals(operationSucceeded(), other.operationSucceeded()) && Objects.equals(description(), other.description()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AgentConfigurationStatus)) { return false; } AgentConfigurationStatus other = (AgentConfigurationStatus) obj; return Objects.equals(agentId(), other.agentId()) && Objects.equals(operationSucceeded(), other.operationSucceeded()) && Objects.equals(description(), other.description()); }
/** * Marshall the given parameter object */ public void marshall(AgentConfigurationStatus agentConfigurationStatus, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(agentConfigurationStatus, "agentConfigurationStatus"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(agentConfigurationStatus.agentId(), AGENTID_BINDING); protocolMarshaller.marshall(agentConfigurationStatus.operationSucceeded(), OPERATIONSUCCEEDED_BINDING); protocolMarshaller.marshall(agentConfigurationStatus.description(), DESCRIPTION_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }