All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediaconvert.model.SpekeKeyProvider Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.mediaconvert.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * Settings for use with a SPEKE key provider
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SpekeKeyProvider implements Serializable, Cloneable, StructuredPojo {

    /** The SPEKE-compliant server uses Resource ID (ResourceId) to identify content. */
    private String resourceId;
    /**
     * Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids.
     * Other group types support one system id.
     */
    private java.util.List systemIds;
    /** Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. */
    private String url;

    /**
     * The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     * 
     * @param resourceId
     *        The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     */

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     * 
     * @return The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     */

    public String getResourceId() {
        return this.resourceId;
    }

    /**
     * The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     * 
     * @param resourceId
     *        The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public SpekeKeyProvider withResourceId(String resourceId) {
        setResourceId(resourceId);
        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.
     * 
     * @return Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system
     *         ids. Other group types support one system id.
     */

    public java.util.List getSystemIds() {
        return 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.
     * 
     * @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.
     */

    public void setSystemIds(java.util.Collection systemIds) {
        if (systemIds == null) {
            this.systemIds = null;
            return;
        }

        this.systemIds = new java.util.ArrayList(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.
     * 

* 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. * @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. * * @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. * @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; } /** * Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. * * @param url * Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. */ public void setUrl(String url) { this.url = url; } /** * Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. * * @return Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. */ public String getUrl() { return this.url; } /** * Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. * * @param url * Use URL (Url) to specify the SPEKE-compliant server that will provide keys for 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; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.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.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 + ((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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy