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

com.amazonaws.services.mediapackagevod.model.DescribeAssetResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2016-2021 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.mediapackagevod.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeAssetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /** The ARN of the Asset. */
    private String arn;
    /** The time the Asset was initially submitted for Ingest. */
    private String createdAt;
    /** The list of egress endpoints available for the Asset. */
    private java.util.List egressEndpoints;
    /** The unique identifier for the Asset. */
    private String id;
    /** The ID of the PackagingGroup for the Asset. */
    private String packagingGroupId;
    /** The resource ID to include in SPEKE key requests. */
    private String resourceId;
    /** ARN of the source object in S3. */
    private String sourceArn;
    /** The IAM role_arn used to access the source S3 bucket. */
    private String sourceRoleArn;

    private java.util.Map tags;

    /**
     * The ARN of the Asset.
     * 
     * @param arn
     *        The ARN of the Asset.
     */

    public void setArn(String arn) {
        this.arn = arn;
    }

    /**
     * The ARN of the Asset.
     * 
     * @return The ARN of the Asset.
     */

    public String getArn() {
        return this.arn;
    }

    /**
     * The ARN of the Asset.
     * 
     * @param arn
     *        The ARN of the Asset.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeAssetResult withArn(String arn) {
        setArn(arn);
        return this;
    }

    /**
     * The time the Asset was initially submitted for Ingest.
     * 
     * @param createdAt
     *        The time the Asset was initially submitted for Ingest.
     */

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * The time the Asset was initially submitted for Ingest.
     * 
     * @return The time the Asset was initially submitted for Ingest.
     */

    public String getCreatedAt() {
        return this.createdAt;
    }

    /**
     * The time the Asset was initially submitted for Ingest.
     * 
     * @param createdAt
     *        The time the Asset was initially submitted for Ingest.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeAssetResult withCreatedAt(String createdAt) {
        setCreatedAt(createdAt);
        return this;
    }

    /**
     * The list of egress endpoints available for the Asset.
     * 
     * @return The list of egress endpoints available for the Asset.
     */

    public java.util.List getEgressEndpoints() {
        return egressEndpoints;
    }

    /**
     * The list of egress endpoints available for the Asset.
     * 
     * @param egressEndpoints
     *        The list of egress endpoints available for the Asset.
     */

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

        this.egressEndpoints = new java.util.ArrayList(egressEndpoints);
    }

    /**
     * The list of egress endpoints available for the Asset.
     * 

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEgressEndpoints(java.util.Collection)} or {@link #withEgressEndpoints(java.util.Collection)} if you * want to override the existing values. *

* * @param egressEndpoints * The list of egress endpoints available for the Asset. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withEgressEndpoints(EgressEndpoint... egressEndpoints) { if (this.egressEndpoints == null) { setEgressEndpoints(new java.util.ArrayList(egressEndpoints.length)); } for (EgressEndpoint ele : egressEndpoints) { this.egressEndpoints.add(ele); } return this; } /** * The list of egress endpoints available for the Asset. * * @param egressEndpoints * The list of egress endpoints available for the Asset. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withEgressEndpoints(java.util.Collection egressEndpoints) { setEgressEndpoints(egressEndpoints); return this; } /** * The unique identifier for the Asset. * * @param id * The unique identifier for the Asset. */ public void setId(String id) { this.id = id; } /** * The unique identifier for the Asset. * * @return The unique identifier for the Asset. */ public String getId() { return this.id; } /** * The unique identifier for the Asset. * * @param id * The unique identifier for the Asset. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withId(String id) { setId(id); return this; } /** * The ID of the PackagingGroup for the Asset. * * @param packagingGroupId * The ID of the PackagingGroup for the Asset. */ public void setPackagingGroupId(String packagingGroupId) { this.packagingGroupId = packagingGroupId; } /** * The ID of the PackagingGroup for the Asset. * * @return The ID of the PackagingGroup for the Asset. */ public String getPackagingGroupId() { return this.packagingGroupId; } /** * The ID of the PackagingGroup for the Asset. * * @param packagingGroupId * The ID of the PackagingGroup for the Asset. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withPackagingGroupId(String packagingGroupId) { setPackagingGroupId(packagingGroupId); return this; } /** * The resource ID to include in SPEKE key requests. * * @param resourceId * The resource ID to include in SPEKE key requests. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** * The resource ID to include in SPEKE key requests. * * @return The resource ID to include in SPEKE key requests. */ public String getResourceId() { return this.resourceId; } /** * The resource ID to include in SPEKE key requests. * * @param resourceId * The resource ID to include in SPEKE key requests. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** * ARN of the source object in S3. * * @param sourceArn * ARN of the source object in S3. */ public void setSourceArn(String sourceArn) { this.sourceArn = sourceArn; } /** * ARN of the source object in S3. * * @return ARN of the source object in S3. */ public String getSourceArn() { return this.sourceArn; } /** * ARN of the source object in S3. * * @param sourceArn * ARN of the source object in S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** * The IAM role_arn used to access the source S3 bucket. * * @param sourceRoleArn * The IAM role_arn used to access the source S3 bucket. */ public void setSourceRoleArn(String sourceRoleArn) { this.sourceRoleArn = sourceRoleArn; } /** * The IAM role_arn used to access the source S3 bucket. * * @return The IAM role_arn used to access the source S3 bucket. */ public String getSourceRoleArn() { return this.sourceRoleArn; } /** * The IAM role_arn used to access the source S3 bucket. * * @param sourceRoleArn * The IAM role_arn used to access the source S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withSourceRoleArn(String sourceRoleArn) { setSourceRoleArn(sourceRoleArn); return this; } /** * @return */ public java.util.Map getTags() { return tags; } /** * @param tags */ public void setTags(java.util.Map tags) { this.tags = tags; } /** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see DescribeAssetResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAssetResult clearTagsEntries() { this.tags = null; 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getEgressEndpoints() != null) sb.append("EgressEndpoints: ").append(getEgressEndpoints()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getPackagingGroupId() != null) sb.append("PackagingGroupId: ").append(getPackagingGroupId()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getSourceArn() != null) sb.append("SourceArn: ").append(getSourceArn()).append(","); if (getSourceRoleArn() != null) sb.append("SourceRoleArn: ").append(getSourceRoleArn()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAssetResult == false) return false; DescribeAssetResult other = (DescribeAssetResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getEgressEndpoints() == null ^ this.getEgressEndpoints() == null) return false; if (other.getEgressEndpoints() != null && other.getEgressEndpoints().equals(this.getEgressEndpoints()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getPackagingGroupId() == null ^ this.getPackagingGroupId() == null) return false; if (other.getPackagingGroupId() != null && other.getPackagingGroupId().equals(this.getPackagingGroupId()) == 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.getSourceArn() == null ^ this.getSourceArn() == null) return false; if (other.getSourceArn() != null && other.getSourceArn().equals(this.getSourceArn()) == false) return false; if (other.getSourceRoleArn() == null ^ this.getSourceRoleArn() == null) return false; if (other.getSourceRoleArn() != null && other.getSourceRoleArn().equals(this.getSourceRoleArn()) == 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; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getEgressEndpoints() == null) ? 0 : getEgressEndpoints().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getPackagingGroupId() == null) ? 0 : getPackagingGroupId().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getSourceArn() == null) ? 0 : getSourceArn().hashCode()); hashCode = prime * hashCode + ((getSourceRoleArn() == null) ? 0 : getSourceRoleArn().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public DescribeAssetResult clone() { try { return (DescribeAssetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy