@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHsmConfigurationIdentifier() == null) ? 0 : getHsmConfigurationIdentifier().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getHsmIpAddress() == null) ? 0 : getHsmIpAddress().hashCode()); hashCode = prime * hashCode + ((getHsmPartitionName() == null) ? 0 : getHsmPartitionName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
/** * <p> * A text description of the HSM configuration. * </p> * * @param description * A text description of the HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withDescription(String description) { setDescription(description); return this; }
/** * <p> * The name of the Amazon Redshift HSM configuration. * </p> * * @param hsmConfigurationIdentifier * The name of the Amazon Redshift HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmConfigurationIdentifier(String hsmConfigurationIdentifier) { setHsmConfigurationIdentifier(hsmConfigurationIdentifier); return this; }
public HsmConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { HsmConfiguration hsmConfiguration = new HsmConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; hsmConfiguration.setHsmConfigurationIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setHsmIpAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setHsmPartitionName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.withTags(new ArrayList<Tag>()); continue; hsmConfiguration.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The IP address that the Amazon Redshift cluster must use to access the HSM. * </p> * * @param hsmIpAddress * The IP address that the Amazon Redshift cluster must use to access the HSM. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmIpAddress(String hsmIpAddress) { setHsmIpAddress(hsmIpAddress); return this; }
/** * <p> * The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. * </p> * * @param hsmPartitionName * The name of the partition in the HSM where the Amazon Redshift clusters will store their database * encryption keys. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmPartitionName(String hsmPartitionName) { setHsmPartitionName(hsmPartitionName); return this; }
public HsmConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { HsmConfiguration hsmConfiguration = new HsmConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; hsmConfiguration.setHsmConfigurationIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setHsmIpAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.setHsmPartitionName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; hsmConfiguration.withTags(new ArrayList<Tag>()); continue; hsmConfiguration.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The IP address that the Amazon Redshift cluster must use to access the HSM. * </p> * * @param hsmIpAddress * The IP address that the Amazon Redshift cluster must use to access the HSM. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmIpAddress(String hsmIpAddress) { setHsmIpAddress(hsmIpAddress); return this; }
/** * <p> * The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. * </p> * * @param hsmPartitionName * The name of the partition in the HSM where the Amazon Redshift clusters will store their database * encryption keys. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmPartitionName(String hsmPartitionName) { setHsmPartitionName(hsmPartitionName); return this; }
return false; HsmConfiguration other = (HsmConfiguration) obj; if (other.getHsmConfigurationIdentifier() == null ^ this.getHsmConfigurationIdentifier() == null) return false; if (other.getHsmConfigurationIdentifier() != null && other.getHsmConfigurationIdentifier().equals(this.getHsmConfigurationIdentifier()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getHsmIpAddress() == null ^ this.getHsmIpAddress() == null) return false; if (other.getHsmIpAddress() != null && other.getHsmIpAddress().equals(this.getHsmIpAddress()) == false) return false; if (other.getHsmPartitionName() == null ^ this.getHsmPartitionName() == null) return false; if (other.getHsmPartitionName() != null && other.getHsmPartitionName().equals(this.getHsmPartitionName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true;
/** * <p> * The name of the Amazon Redshift HSM configuration. * </p> * * @param hsmConfigurationIdentifier * The name of the Amazon Redshift HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmConfigurationIdentifier(String hsmConfigurationIdentifier) { setHsmConfigurationIdentifier(hsmConfigurationIdentifier); return this; }
/** * <p> * A text description of the HSM configuration. * </p> * * @param description * A text description of the HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withDescription(String description) { setDescription(description); 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 (getHsmConfigurationIdentifier() != null) sb.append("HsmConfigurationIdentifier: ").append(getHsmConfigurationIdentifier()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getHsmIpAddress() != null) sb.append("HsmIpAddress: ").append(getHsmIpAddress()).append(","); if (getHsmPartitionName() != null) sb.append("HsmPartitionName: ").append(getHsmPartitionName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHsmConfigurationIdentifier() == null) ? 0 : getHsmConfigurationIdentifier().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getHsmIpAddress() == null) ? 0 : getHsmIpAddress().hashCode()); hashCode = prime * hashCode + ((getHsmPartitionName() == null) ? 0 : getHsmPartitionName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
return false; HsmConfiguration other = (HsmConfiguration) obj; if (other.getHsmConfigurationIdentifier() == null ^ this.getHsmConfigurationIdentifier() == null) return false; if (other.getHsmConfigurationIdentifier() != null && other.getHsmConfigurationIdentifier().equals(this.getHsmConfigurationIdentifier()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getHsmIpAddress() == null ^ this.getHsmIpAddress() == null) return false; if (other.getHsmIpAddress() != null && other.getHsmIpAddress().equals(this.getHsmIpAddress()) == false) return false; if (other.getHsmPartitionName() == null ^ this.getHsmPartitionName() == null) return false; if (other.getHsmPartitionName() != null && other.getHsmPartitionName().equals(this.getHsmPartitionName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 (getHsmConfigurationIdentifier() != null) sb.append("HsmConfigurationIdentifier: ").append(getHsmConfigurationIdentifier()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getHsmIpAddress() != null) sb.append("HsmIpAddress: ").append(getHsmIpAddress()).append(","); if (getHsmPartitionName() != null) sb.append("HsmPartitionName: ").append(getHsmPartitionName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }