(systemIds);
}
/**
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids.
* Other group types support one system id. See https://dashif.org/identifiers/content_protection/ for more details.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSystemIds(java.util.Collection)} or {@link #withSystemIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param systemIds
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system
* ids. Other group types support one system id. See https://dashif.org/identifiers/content_protection/ for
* more details.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpekeKeyProvider withSystemIds(String... systemIds) {
if (this.systemIds == null) {
setSystemIds(new java.util.ArrayList(systemIds.length));
}
for (String ele : systemIds) {
this.systemIds.add(ele);
}
return this;
}
/**
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids.
* Other group types support one system id. See https://dashif.org/identifiers/content_protection/ for more details.
*
* @param systemIds
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system
* ids. Other group types support one system id. See https://dashif.org/identifiers/content_protection/ for
* more details.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpekeKeyProvider withSystemIds(java.util.Collection systemIds) {
setSystemIds(systemIds);
return this;
}
/**
* Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting
* your content.
*
* @param url
* Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for
* encrypting your content.
*/
public void setUrl(String url) {
this.url = url;
}
/**
* Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting
* your content.
*
* @return Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for
* encrypting your content.
*/
public String getUrl() {
return this.url;
}
/**
* Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting
* your content.
*
* @param url
* Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for
* encrypting your content.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SpekeKeyProvider withUrl(String url) {
setUrl(url);
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 (getCertificateArn() != null)
sb.append("CertificateArn: ").append(getCertificateArn()).append(",");
if (getResourceId() != null)
sb.append("ResourceId: ").append(getResourceId()).append(",");
if (getSystemIds() != null)
sb.append("SystemIds: ").append(getSystemIds()).append(",");
if (getUrl() != null)
sb.append("Url: ").append(getUrl());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SpekeKeyProvider == false)
return false;
SpekeKeyProvider other = (SpekeKeyProvider) obj;
if (other.getCertificateArn() == null ^ this.getCertificateArn() == null)
return false;
if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false)
return false;
if (other.getResourceId() == null ^ this.getResourceId() == null)
return false;
if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false)
return false;
if (other.getSystemIds() == null ^ this.getSystemIds() == null)
return false;
if (other.getSystemIds() != null && other.getSystemIds().equals(this.getSystemIds()) == false)
return false;
if (other.getUrl() == null ^ this.getUrl() == null)
return false;
if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode());
hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
hashCode = prime * hashCode + ((getSystemIds() == null) ? 0 : getSystemIds().hashCode());
hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode());
return hashCode;
}
@Override
public SpekeKeyProvider clone() {
try {
return (SpekeKeyProvider) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.mediaconvert.model.transform.SpekeKeyProviderMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}