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

com.amazonaws.services.chimesdkmeetings.model.AttendeeCapabilities Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Chime SDK Meetings module holds the client classes that are used for communicating with Amazon Chime SDK Meetings Service

The 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.chimesdkmeetings.model;

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

/**
 * 

* The media capabilities of an attendee: audio, video, or content. *

* *

* You use the capabilities with a set of values that control what the capabilities can do, such as * SendReceive data. For more information, refer to and . *

*
*

* When using capabilities, be aware of these corner cases: *

*
    *
  • *

    * If you specify MeetingFeatures:Video:MaxResolution:None when you create a meeting, all API requests that * include SendReceive, Send, or Receive for * AttendeeCapabilities:Video will be rejected with ValidationError 400. *

    *
  • *
  • *

    * If you specify MeetingFeatures:Content:MaxResolution:None when you create a meeting, all API requests * that include SendReceive, Send, or Receive for * AttendeeCapabilities:Content will be rejected with ValidationError 400. *

    *
  • *
  • *

    * You can't set content capabilities to SendReceive or Receive unless you also * set video capabilities to SendReceive or Receive. If you don't set the * video capability to receive, the response will contain an HTTP 400 Bad Request status code. However, you * can set your video capability to receive and you set your content capability to not * receive. *

    *
  • *
  • *

    * When you change an audio capability from None or Receive to Send * or SendReceive , and an attendee unmutes their microphone, audio flows from the attendee to the other * meeting participants. *

    *
  • *
  • *

    * When you change a video or content capability from None or * Receive to Send or SendReceive , and the attendee turns on their video or * content streams, remote attendees can receive those streams, but only after media renegotiation between the client * and the Amazon Chime back-end server. *

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

* The audio capability assigned to an attendee. *

*/ private String audio; /** *

* The video capability assigned to an attendee. *

*/ private String video; /** *

* The content capability assigned to an attendee. *

*/ private String content; /** *

* The audio capability assigned to an attendee. *

* * @param audio * The audio capability assigned to an attendee. * @see MediaCapabilities */ public void setAudio(String audio) { this.audio = audio; } /** *

* The audio capability assigned to an attendee. *

* * @return The audio capability assigned to an attendee. * @see MediaCapabilities */ public String getAudio() { return this.audio; } /** *

* The audio capability assigned to an attendee. *

* * @param audio * The audio capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withAudio(String audio) { setAudio(audio); return this; } /** *

* The audio capability assigned to an attendee. *

* * @param audio * The audio capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withAudio(MediaCapabilities audio) { this.audio = audio.toString(); return this; } /** *

* The video capability assigned to an attendee. *

* * @param video * The video capability assigned to an attendee. * @see MediaCapabilities */ public void setVideo(String video) { this.video = video; } /** *

* The video capability assigned to an attendee. *

* * @return The video capability assigned to an attendee. * @see MediaCapabilities */ public String getVideo() { return this.video; } /** *

* The video capability assigned to an attendee. *

* * @param video * The video capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withVideo(String video) { setVideo(video); return this; } /** *

* The video capability assigned to an attendee. *

* * @param video * The video capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withVideo(MediaCapabilities video) { this.video = video.toString(); return this; } /** *

* The content capability assigned to an attendee. *

* * @param content * The content capability assigned to an attendee. * @see MediaCapabilities */ public void setContent(String content) { this.content = content; } /** *

* The content capability assigned to an attendee. *

* * @return The content capability assigned to an attendee. * @see MediaCapabilities */ public String getContent() { return this.content; } /** *

* The content capability assigned to an attendee. *

* * @param content * The content capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withContent(String content) { setContent(content); return this; } /** *

* The content capability assigned to an attendee. *

* * @param content * The content capability assigned to an attendee. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaCapabilities */ public AttendeeCapabilities withContent(MediaCapabilities content) { this.content = content.toString(); 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 (getAudio() != null) sb.append("Audio: ").append(getAudio()).append(","); if (getVideo() != null) sb.append("Video: ").append(getVideo()).append(","); if (getContent() != null) sb.append("Content: ").append(getContent()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttendeeCapabilities == false) return false; AttendeeCapabilities other = (AttendeeCapabilities) obj; if (other.getAudio() == null ^ this.getAudio() == null) return false; if (other.getAudio() != null && other.getAudio().equals(this.getAudio()) == false) return false; if (other.getVideo() == null ^ this.getVideo() == null) return false; if (other.getVideo() != null && other.getVideo().equals(this.getVideo()) == false) return false; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAudio() == null) ? 0 : getAudio().hashCode()); hashCode = prime * hashCode + ((getVideo() == null) ? 0 : getVideo().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); return hashCode; } @Override public AttendeeCapabilities clone() { try { return (AttendeeCapabilities) 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.chimesdkmeetings.model.transform.AttendeeCapabilitiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy