com.amazonaws.services.chimesdkmediapipelines.model.GridViewConfiguration Maven / Gradle / Ivy
/*
* 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.chimesdkmediapipelines.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Specifies the type of grid layout.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GridViewConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* Defines the layout of the video tiles when content sharing is enabled.
*
*/
private String contentShareLayout;
/**
*
* Defines the configuration options for a presenter only video tile.
*
*/
private PresenterOnlyConfiguration presenterOnlyConfiguration;
/**
*
* The configuration settings for an ActiveSpeakerOnly
video tile.
*
*/
private ActiveSpeakerOnlyConfiguration activeSpeakerOnlyConfiguration;
/**
*
* The configuration settings for a horizontal layout.
*
*/
private HorizontalLayoutConfiguration horizontalLayoutConfiguration;
/**
*
* The configuration settings for a vertical layout.
*
*/
private VerticalLayoutConfiguration verticalLayoutConfiguration;
/**
*
* The attribute settings for the video tiles.
*
*/
private VideoAttribute videoAttribute;
/**
*
* The orientation setting, horizontal or vertical.
*
*/
private String canvasOrientation;
/**
*
* Defines the layout of the video tiles when content sharing is enabled.
*
*
* @param contentShareLayout
* Defines the layout of the video tiles when content sharing is enabled.
* @see ContentShareLayoutOption
*/
public void setContentShareLayout(String contentShareLayout) {
this.contentShareLayout = contentShareLayout;
}
/**
*
* Defines the layout of the video tiles when content sharing is enabled.
*
*
* @return Defines the layout of the video tiles when content sharing is enabled.
* @see ContentShareLayoutOption
*/
public String getContentShareLayout() {
return this.contentShareLayout;
}
/**
*
* Defines the layout of the video tiles when content sharing is enabled.
*
*
* @param contentShareLayout
* Defines the layout of the video tiles when content sharing is enabled.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContentShareLayoutOption
*/
public GridViewConfiguration withContentShareLayout(String contentShareLayout) {
setContentShareLayout(contentShareLayout);
return this;
}
/**
*
* Defines the layout of the video tiles when content sharing is enabled.
*
*
* @param contentShareLayout
* Defines the layout of the video tiles when content sharing is enabled.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContentShareLayoutOption
*/
public GridViewConfiguration withContentShareLayout(ContentShareLayoutOption contentShareLayout) {
this.contentShareLayout = contentShareLayout.toString();
return this;
}
/**
*
* Defines the configuration options for a presenter only video tile.
*
*
* @param presenterOnlyConfiguration
* Defines the configuration options for a presenter only video tile.
*/
public void setPresenterOnlyConfiguration(PresenterOnlyConfiguration presenterOnlyConfiguration) {
this.presenterOnlyConfiguration = presenterOnlyConfiguration;
}
/**
*
* Defines the configuration options for a presenter only video tile.
*
*
* @return Defines the configuration options for a presenter only video tile.
*/
public PresenterOnlyConfiguration getPresenterOnlyConfiguration() {
return this.presenterOnlyConfiguration;
}
/**
*
* Defines the configuration options for a presenter only video tile.
*
*
* @param presenterOnlyConfiguration
* Defines the configuration options for a presenter only video tile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GridViewConfiguration withPresenterOnlyConfiguration(PresenterOnlyConfiguration presenterOnlyConfiguration) {
setPresenterOnlyConfiguration(presenterOnlyConfiguration);
return this;
}
/**
*
* The configuration settings for an ActiveSpeakerOnly
video tile.
*
*
* @param activeSpeakerOnlyConfiguration
* The configuration settings for an ActiveSpeakerOnly
video tile.
*/
public void setActiveSpeakerOnlyConfiguration(ActiveSpeakerOnlyConfiguration activeSpeakerOnlyConfiguration) {
this.activeSpeakerOnlyConfiguration = activeSpeakerOnlyConfiguration;
}
/**
*
* The configuration settings for an ActiveSpeakerOnly
video tile.
*
*
* @return The configuration settings for an ActiveSpeakerOnly
video tile.
*/
public ActiveSpeakerOnlyConfiguration getActiveSpeakerOnlyConfiguration() {
return this.activeSpeakerOnlyConfiguration;
}
/**
*
* The configuration settings for an ActiveSpeakerOnly
video tile.
*
*
* @param activeSpeakerOnlyConfiguration
* The configuration settings for an ActiveSpeakerOnly
video tile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GridViewConfiguration withActiveSpeakerOnlyConfiguration(ActiveSpeakerOnlyConfiguration activeSpeakerOnlyConfiguration) {
setActiveSpeakerOnlyConfiguration(activeSpeakerOnlyConfiguration);
return this;
}
/**
*
* The configuration settings for a horizontal layout.
*
*
* @param horizontalLayoutConfiguration
* The configuration settings for a horizontal layout.
*/
public void setHorizontalLayoutConfiguration(HorizontalLayoutConfiguration horizontalLayoutConfiguration) {
this.horizontalLayoutConfiguration = horizontalLayoutConfiguration;
}
/**
*
* The configuration settings for a horizontal layout.
*
*
* @return The configuration settings for a horizontal layout.
*/
public HorizontalLayoutConfiguration getHorizontalLayoutConfiguration() {
return this.horizontalLayoutConfiguration;
}
/**
*
* The configuration settings for a horizontal layout.
*
*
* @param horizontalLayoutConfiguration
* The configuration settings for a horizontal layout.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GridViewConfiguration withHorizontalLayoutConfiguration(HorizontalLayoutConfiguration horizontalLayoutConfiguration) {
setHorizontalLayoutConfiguration(horizontalLayoutConfiguration);
return this;
}
/**
*
* The configuration settings for a vertical layout.
*
*
* @param verticalLayoutConfiguration
* The configuration settings for a vertical layout.
*/
public void setVerticalLayoutConfiguration(VerticalLayoutConfiguration verticalLayoutConfiguration) {
this.verticalLayoutConfiguration = verticalLayoutConfiguration;
}
/**
*
* The configuration settings for a vertical layout.
*
*
* @return The configuration settings for a vertical layout.
*/
public VerticalLayoutConfiguration getVerticalLayoutConfiguration() {
return this.verticalLayoutConfiguration;
}
/**
*
* The configuration settings for a vertical layout.
*
*
* @param verticalLayoutConfiguration
* The configuration settings for a vertical layout.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GridViewConfiguration withVerticalLayoutConfiguration(VerticalLayoutConfiguration verticalLayoutConfiguration) {
setVerticalLayoutConfiguration(verticalLayoutConfiguration);
return this;
}
/**
*
* The attribute settings for the video tiles.
*
*
* @param videoAttribute
* The attribute settings for the video tiles.
*/
public void setVideoAttribute(VideoAttribute videoAttribute) {
this.videoAttribute = videoAttribute;
}
/**
*
* The attribute settings for the video tiles.
*
*
* @return The attribute settings for the video tiles.
*/
public VideoAttribute getVideoAttribute() {
return this.videoAttribute;
}
/**
*
* The attribute settings for the video tiles.
*
*
* @param videoAttribute
* The attribute settings for the video tiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GridViewConfiguration withVideoAttribute(VideoAttribute videoAttribute) {
setVideoAttribute(videoAttribute);
return this;
}
/**
*
* The orientation setting, horizontal or vertical.
*
*
* @param canvasOrientation
* The orientation setting, horizontal or vertical.
* @see CanvasOrientation
*/
public void setCanvasOrientation(String canvasOrientation) {
this.canvasOrientation = canvasOrientation;
}
/**
*
* The orientation setting, horizontal or vertical.
*
*
* @return The orientation setting, horizontal or vertical.
* @see CanvasOrientation
*/
public String getCanvasOrientation() {
return this.canvasOrientation;
}
/**
*
* The orientation setting, horizontal or vertical.
*
*
* @param canvasOrientation
* The orientation setting, horizontal or vertical.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CanvasOrientation
*/
public GridViewConfiguration withCanvasOrientation(String canvasOrientation) {
setCanvasOrientation(canvasOrientation);
return this;
}
/**
*
* The orientation setting, horizontal or vertical.
*
*
* @param canvasOrientation
* The orientation setting, horizontal or vertical.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CanvasOrientation
*/
public GridViewConfiguration withCanvasOrientation(CanvasOrientation canvasOrientation) {
this.canvasOrientation = canvasOrientation.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 (getContentShareLayout() != null)
sb.append("ContentShareLayout: ").append(getContentShareLayout()).append(",");
if (getPresenterOnlyConfiguration() != null)
sb.append("PresenterOnlyConfiguration: ").append(getPresenterOnlyConfiguration()).append(",");
if (getActiveSpeakerOnlyConfiguration() != null)
sb.append("ActiveSpeakerOnlyConfiguration: ").append(getActiveSpeakerOnlyConfiguration()).append(",");
if (getHorizontalLayoutConfiguration() != null)
sb.append("HorizontalLayoutConfiguration: ").append(getHorizontalLayoutConfiguration()).append(",");
if (getVerticalLayoutConfiguration() != null)
sb.append("VerticalLayoutConfiguration: ").append(getVerticalLayoutConfiguration()).append(",");
if (getVideoAttribute() != null)
sb.append("VideoAttribute: ").append(getVideoAttribute()).append(",");
if (getCanvasOrientation() != null)
sb.append("CanvasOrientation: ").append(getCanvasOrientation());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GridViewConfiguration == false)
return false;
GridViewConfiguration other = (GridViewConfiguration) obj;
if (other.getContentShareLayout() == null ^ this.getContentShareLayout() == null)
return false;
if (other.getContentShareLayout() != null && other.getContentShareLayout().equals(this.getContentShareLayout()) == false)
return false;
if (other.getPresenterOnlyConfiguration() == null ^ this.getPresenterOnlyConfiguration() == null)
return false;
if (other.getPresenterOnlyConfiguration() != null && other.getPresenterOnlyConfiguration().equals(this.getPresenterOnlyConfiguration()) == false)
return false;
if (other.getActiveSpeakerOnlyConfiguration() == null ^ this.getActiveSpeakerOnlyConfiguration() == null)
return false;
if (other.getActiveSpeakerOnlyConfiguration() != null
&& other.getActiveSpeakerOnlyConfiguration().equals(this.getActiveSpeakerOnlyConfiguration()) == false)
return false;
if (other.getHorizontalLayoutConfiguration() == null ^ this.getHorizontalLayoutConfiguration() == null)
return false;
if (other.getHorizontalLayoutConfiguration() != null
&& other.getHorizontalLayoutConfiguration().equals(this.getHorizontalLayoutConfiguration()) == false)
return false;
if (other.getVerticalLayoutConfiguration() == null ^ this.getVerticalLayoutConfiguration() == null)
return false;
if (other.getVerticalLayoutConfiguration() != null && other.getVerticalLayoutConfiguration().equals(this.getVerticalLayoutConfiguration()) == false)
return false;
if (other.getVideoAttribute() == null ^ this.getVideoAttribute() == null)
return false;
if (other.getVideoAttribute() != null && other.getVideoAttribute().equals(this.getVideoAttribute()) == false)
return false;
if (other.getCanvasOrientation() == null ^ this.getCanvasOrientation() == null)
return false;
if (other.getCanvasOrientation() != null && other.getCanvasOrientation().equals(this.getCanvasOrientation()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getContentShareLayout() == null) ? 0 : getContentShareLayout().hashCode());
hashCode = prime * hashCode + ((getPresenterOnlyConfiguration() == null) ? 0 : getPresenterOnlyConfiguration().hashCode());
hashCode = prime * hashCode + ((getActiveSpeakerOnlyConfiguration() == null) ? 0 : getActiveSpeakerOnlyConfiguration().hashCode());
hashCode = prime * hashCode + ((getHorizontalLayoutConfiguration() == null) ? 0 : getHorizontalLayoutConfiguration().hashCode());
hashCode = prime * hashCode + ((getVerticalLayoutConfiguration() == null) ? 0 : getVerticalLayoutConfiguration().hashCode());
hashCode = prime * hashCode + ((getVideoAttribute() == null) ? 0 : getVideoAttribute().hashCode());
hashCode = prime * hashCode + ((getCanvasOrientation() == null) ? 0 : getCanvasOrientation().hashCode());
return hashCode;
}
@Override
public GridViewConfiguration clone() {
try {
return (GridViewConfiguration) 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.chimesdkmediapipelines.model.transform.GridViewConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}