@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getConfigurationManager() == null) ? 0 : getConfigurationManager().hashCode()); return hashCode; }
/** * <p> * The configuration manager. * </p> * * @param configurationManager * The configuration manager. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentVersion withConfigurationManager(StackConfigurationManager configurationManager) { setConfigurationManager(configurationManager); return this; }
/** * <p> * The agent version. * </p> * * @param version * The agent version. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentVersion withVersion(String version) { setVersion(version); return this; }
public AgentVersion unmarshall(JsonUnmarshallerContext context) throws Exception { AgentVersion agentVersion = new AgentVersion(); if (context.testExpression("Version", targetDepth)) { context.nextToken(); agentVersion.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); agentVersion.setConfigurationManager(StackConfigurationManagerJsonUnmarshaller.getInstance().unmarshall(context));
public AgentVersion unmarshall(JsonUnmarshallerContext context) throws Exception { AgentVersion agentVersion = new AgentVersion(); if (context.testExpression("Version", targetDepth)) { context.nextToken(); agentVersion.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); agentVersion.setConfigurationManager(StackConfigurationManagerJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AgentVersion == false) return false; AgentVersion other = (AgentVersion) obj; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getConfigurationManager() == null ^ this.getConfigurationManager() == null) return false; if (other.getConfigurationManager() != null && other.getConfigurationManager().equals(this.getConfigurationManager()) == false) return false; return true; }
/** * <p> * The agent version. * </p> * * @param version * The agent version. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentVersion withVersion(String version) { setVersion(version); return this; }
/** * <p> * The configuration manager. * </p> * * @param configurationManager * The configuration manager. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentVersion withConfigurationManager(StackConfigurationManager configurationManager) { setConfigurationManager(configurationManager); 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 (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getConfigurationManager() != null) sb.append("ConfigurationManager: ").append(getConfigurationManager()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AgentVersion agentVersion, ProtocolMarshaller protocolMarshaller) { if (agentVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(agentVersion.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(agentVersion.getConfigurationManager(), CONFIGURATIONMANAGER_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 + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getConfigurationManager() == null) ? 0 : getConfigurationManager().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AgentVersion == false) return false; AgentVersion other = (AgentVersion) obj; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getConfigurationManager() == null ^ this.getConfigurationManager() == null) return false; if (other.getConfigurationManager() != null && other.getConfigurationManager().equals(this.getConfigurationManager()) == false) return false; return true; }
/** * 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 (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getConfigurationManager() != null) sb.append("ConfigurationManager: ").append(getConfigurationManager()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AgentVersion agentVersion, ProtocolMarshaller protocolMarshaller) { if (agentVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(agentVersion.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(agentVersion.getConfigurationManager(), CONFIGURATIONMANAGER_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }