@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getProvider() == null) ? 0 : getProvider().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; }
/** * <p> * The ARN of the rules package. * </p> * * @param arn * The ARN of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withArn(String arn) { setArn(arn); return this; }
/** * <p> * The description of the rules package. * </p> * * @param description * The description of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withDescription(String description) { setDescription(description); return this; }
public RulesPackage unmarshall(JsonUnmarshallerContext context) throws Exception { RulesPackage rulesPackage = new RulesPackage(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); rulesPackage.setArn(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setName(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setProvider(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setDescription(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the rules package. * </p> * * @param name * The name of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withName(String name) { setName(name); return this; }
/** * <p> * The provider of the rules package. * </p> * * @param provider * The provider of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withProvider(String provider) { setProvider(provider); return this; }
public RulesPackage unmarshall(JsonUnmarshallerContext context) throws Exception { RulesPackage rulesPackage = new RulesPackage(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); rulesPackage.setArn(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setName(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setProvider(context.getUnmarshaller(String.class).unmarshall(context)); rulesPackage.setDescription(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the rules package. * </p> * * @param name * The name of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withName(String name) { setName(name); return this; }
/** * <p> * The provider of the rules package. * </p> * * @param provider * The provider of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withProvider(String provider) { setProvider(provider); return this; }
return false; RulesPackage other = (RulesPackage) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getProvider() == null ^ this.getProvider() == null) return false; if (other.getProvider() != null && other.getProvider().equals(this.getProvider()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true;
/** * <p> * The description of the rules package. * </p> * * @param description * The description of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withDescription(String description) { setDescription(description); return this; }
/** * <p> * The ARN of the rules package. * </p> * * @param arn * The ARN of the rules package. * @return Returns a reference to this object so that method calls can be chained together. */ public RulesPackage withArn(String arn) { setArn(arn); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getProvider() != null) sb.append("Provider: ").append(getProvider()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(RulesPackage rulesPackage, ProtocolMarshaller protocolMarshaller) { if (rulesPackage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(rulesPackage.getArn(), ARN_BINDING); protocolMarshaller.marshall(rulesPackage.getName(), NAME_BINDING); protocolMarshaller.marshall(rulesPackage.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(rulesPackage.getProvider(), PROVIDER_BINDING); protocolMarshaller.marshall(rulesPackage.getDescription(), DESCRIPTION_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 + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getProvider() == null) ? 0 : getProvider().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; }
return false; RulesPackage other = (RulesPackage) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getProvider() == null ^ this.getProvider() == null) return false; if (other.getProvider() != null && other.getProvider().equals(this.getProvider()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getProvider() != null) sb.append("Provider: ").append(getProvider()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(RulesPackage rulesPackage, ProtocolMarshaller protocolMarshaller) { if (rulesPackage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(rulesPackage.getArn(), ARN_BINDING); protocolMarshaller.marshall(rulesPackage.getName(), NAME_BINDING); protocolMarshaller.marshall(rulesPackage.getVersion(), VERSION_BINDING); protocolMarshaller.marshall(rulesPackage.getProvider(), PROVIDER_BINDING); protocolMarshaller.marshall(rulesPackage.getDescription(), DESCRIPTION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }