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

com.amazonaws.services.ivsrealtime.model.CompositionSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Interactive Video Service RealTime module holds the client classes that are used for communicating with Amazon Interactive Video Service RealTime Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.ivsrealtime.model;

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

/**
 * 

* Summary information about a Composition. *

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

* ARN of the Composition resource. *

*/ private String arn; /** *

* Array of Destination objects. *

*/ private java.util.List destinations; /** *

* UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string. *

*/ private java.util.Date endTime; /** *

* ARN of the attached stage. *

*/ private String stageArn; /** *

* UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string. *

*/ private java.util.Date startTime; /** *

* State of the Composition resource. *

*/ private String state; /** *

* Tags attached to the resource. Array of maps, each of the form string:string (key:value). See Tagging AWS Resources for details, * including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints * on tags beyond what is documented there. *

*/ private java.util.Map tags; /** *

* ARN of the Composition resource. *

* * @param arn * ARN of the Composition resource. */ public void setArn(String arn) { this.arn = arn; } /** *

* ARN of the Composition resource. *

* * @return ARN of the Composition resource. */ public String getArn() { return this.arn; } /** *

* ARN of the Composition resource. *

* * @param arn * ARN of the Composition resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withArn(String arn) { setArn(arn); return this; } /** *

* Array of Destination objects. *

* * @return Array of Destination objects. */ public java.util.List getDestinations() { return destinations; } /** *

* Array of Destination objects. *

* * @param destinations * Array of Destination objects. */ public void setDestinations(java.util.Collection destinations) { if (destinations == null) { this.destinations = null; return; } this.destinations = new java.util.ArrayList(destinations); } /** *

* Array of Destination objects. *

*

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

* * @param destinations * Array of Destination objects. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withDestinations(DestinationSummary... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList(destinations.length)); } for (DestinationSummary ele : destinations) { this.destinations.add(ele); } return this; } /** *

* Array of Destination objects. *

* * @param destinations * Array of Destination objects. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withDestinations(java.util.Collection destinations) { setDestinations(destinations); return this; } /** *

* UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param endTime * UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @return UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param endTime * UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a * string. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* ARN of the attached stage. *

* * @param stageArn * ARN of the attached stage. */ public void setStageArn(String stageArn) { this.stageArn = stageArn; } /** *

* ARN of the attached stage. *

* * @return ARN of the attached stage. */ public String getStageArn() { return this.stageArn; } /** *

* ARN of the attached stage. *

* * @param stageArn * ARN of the attached stage. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withStageArn(String stageArn) { setStageArn(stageArn); return this; } /** *

* UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param startTime * UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @return UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param startTime * UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a * string. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* State of the Composition resource. *

* * @param state * State of the Composition resource. * @see CompositionState */ public void setState(String state) { this.state = state; } /** *

* State of the Composition resource. *

* * @return State of the Composition resource. * @see CompositionState */ public String getState() { return this.state; } /** *

* State of the Composition resource. *

* * @param state * State of the Composition resource. * @return Returns a reference to this object so that method calls can be chained together. * @see CompositionState */ public CompositionSummary withState(String state) { setState(state); return this; } /** *

* State of the Composition resource. *

* * @param state * State of the Composition resource. * @return Returns a reference to this object so that method calls can be chained together. * @see CompositionState */ public CompositionSummary withState(CompositionState state) { this.state = state.toString(); return this; } /** *

* Tags attached to the resource. Array of maps, each of the form string:string (key:value). See Tagging AWS Resources for details, * including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints * on tags beyond what is documented there. *

* * @return Tags attached to the resource. Array of maps, each of the form string:string (key:value). * See Tagging AWS Resources * for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon * IVS has no constraints on tags beyond what is documented there. */ public java.util.Map getTags() { return tags; } /** *

* Tags attached to the resource. Array of maps, each of the form string:string (key:value). See Tagging AWS Resources for details, * including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints * on tags beyond what is documented there. *

* * @param tags * Tags attached to the resource. Array of maps, each of the form string:string (key:value). See * Tagging AWS Resources for * details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS * has no constraints on tags beyond what is documented there. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Tags attached to the resource. Array of maps, each of the form string:string (key:value). See Tagging AWS Resources for details, * including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints * on tags beyond what is documented there. *

* * @param tags * Tags attached to the resource. Array of maps, each of the form string:string (key:value). See * Tagging AWS Resources for * details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS * has no constraints on tags beyond what is documented there. * @return Returns a reference to this object so that method calls can be chained together. */ public CompositionSummary withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CompositionSummary#withTags * @returns a reference to this object so that method calls can be chained together. */ public CompositionSummary 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 CompositionSummary 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 (getDestinations() != null) sb.append("Destinations: ").append(getDestinations()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getStageArn() != null) sb.append("StageArn: ").append(getStageArn()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getState() != null) sb.append("State: ").append(getState()).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 CompositionSummary == false) return false; CompositionSummary other = (CompositionSummary) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getDestinations() == null ^ this.getDestinations() == null) return false; if (other.getDestinations() != null && other.getDestinations().equals(this.getDestinations()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getStageArn() == null ^ this.getStageArn() == null) return false; if (other.getStageArn() != null && other.getStageArn().equals(this.getStageArn()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == 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 + ((getDestinations() == null) ? 0 : getDestinations().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getStageArn() == null) ? 0 : getStageArn().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CompositionSummary clone() { try { return (CompositionSummary) 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.ivsrealtime.model.transform.CompositionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy