/* * Copyright 2018-2023 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.chime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The video streams to capture for a specified media capture pipeline. The total number of video streams can't exceed * 25. *

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

* The attendee IDs of the streams selected for a media capture pipeline. *

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

* The external user IDs of the streams selected for a media capture pipeline. *

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

* The attendee IDs of the streams selected for a media capture pipeline. *

* * @return The attendee IDs of the streams selected for a media capture pipeline. */ public java.util.List getAttendeeIds() { return attendeeIds; } /** *

* The attendee IDs of the streams selected for a media capture pipeline. *

* * @param attendeeIds * The attendee IDs of the streams selected for a media capture pipeline. */ public void setAttendeeIds(java.util.Collection attendeeIds) { if (attendeeIds == null) { this.attendeeIds = null; return; } this.attendeeIds = new java.util.ArrayList(attendeeIds); } /** *

* The attendee IDs of the streams selected for a media capture pipeline. *

*

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

* * @param attendeeIds * The attendee IDs of the streams selected for a media capture pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectedVideoStreams withAttendeeIds(String... attendeeIds) { if (this.attendeeIds == null) { setAttendeeIds(new java.util.ArrayList(attendeeIds.length)); } for (String ele : attendeeIds) { this.attendeeIds.add(ele); } return this; } /** *

* The attendee IDs of the streams selected for a media capture pipeline. *

* * @param attendeeIds * The attendee IDs of the streams selected for a media capture pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectedVideoStreams withAttendeeIds(java.util.Collection attendeeIds) { setAttendeeIds(attendeeIds); return this; } /** *

* The external user IDs of the streams selected for a media capture pipeline. *

* * @return The external user IDs of the streams selected for a media capture pipeline. */ public java.util.List getExternalUserIds() { return externalUserIds; } /** *

* The external user IDs of the streams selected for a media capture pipeline. *

* * @param externalUserIds * The external user IDs of the streams selected for a media capture pipeline. */ public void setExternalUserIds(java.util.Collection externalUserIds) { if (externalUserIds == null) { this.externalUserIds = null; return; } this.externalUserIds = new java.util.ArrayList(externalUserIds); } /** *

* The external user IDs of the streams selected for a media capture pipeline. *

*

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

* * @param externalUserIds * The external user IDs of the streams selected for a media capture pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectedVideoStreams withExternalUserIds(String... externalUserIds) { if (this.externalUserIds == null) { setExternalUserIds(new java.util.ArrayList(externalUserIds.length)); } for (String ele : externalUserIds) { this.externalUserIds.add(ele); } return this; } /** *

* The external user IDs of the streams selected for a media capture pipeline. *

* * @param externalUserIds * The external user IDs of the streams selected for a media capture pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectedVideoStreams withExternalUserIds(java.util.Collection externalUserIds) { setExternalUserIds(externalUserIds); 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 (getAttendeeIds() != null) sb.append("AttendeeIds: ").append(getAttendeeIds()).append(","); if (getExternalUserIds() != null) sb.append("ExternalUserIds: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SelectedVideoStreams == false) return false; SelectedVideoStreams other = (SelectedVideoStreams) obj; if (other.getAttendeeIds() == null ^ this.getAttendeeIds() == null) return false; if (other.getAttendeeIds() != null && other.getAttendeeIds().equals(this.getAttendeeIds()) == false) return false; if (other.getExternalUserIds() == null ^ this.getExternalUserIds() == null) return false; if (other.getExternalUserIds() != null && other.getExternalUserIds().equals(this.getExternalUserIds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttendeeIds() == null) ? 0 : getAttendeeIds().hashCode()); hashCode = prime * hashCode + ((getExternalUserIds() == null) ? 0 : getExternalUserIds().hashCode()); return hashCode; } @Override public SelectedVideoStreams clone() { try { return (SelectedVideoStreams) 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.chime.model.transform.SelectedVideoStreamsMarshaller.getInstance().marshall(this, protocolMarshaller); } }