/* * 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 streaming configuration associated with an Amazon Chime Voice Connector. Specifies whether media streaming is * enabled for sending to Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, in hours. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamingConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The retention period, in hours, for the Amazon Kinesis data. *
*/ private Integer dataRetentionInHours; /** ** When true, media streaming to Amazon Kinesis is turned off. *
*/ private Boolean disabled; /** ** The streaming notification targets. *
*/ private java.util.List* The retention period, in hours, for the Amazon Kinesis data. *
* * @param dataRetentionInHours * The retention period, in hours, for the Amazon Kinesis data. */ public void setDataRetentionInHours(Integer dataRetentionInHours) { this.dataRetentionInHours = dataRetentionInHours; } /** ** The retention period, in hours, for the Amazon Kinesis data. *
* * @return The retention period, in hours, for the Amazon Kinesis data. */ public Integer getDataRetentionInHours() { return this.dataRetentionInHours; } /** ** The retention period, in hours, for the Amazon Kinesis data. *
* * @param dataRetentionInHours * The retention period, in hours, for the Amazon Kinesis data. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingConfiguration withDataRetentionInHours(Integer dataRetentionInHours) { setDataRetentionInHours(dataRetentionInHours); return this; } /** ** When true, media streaming to Amazon Kinesis is turned off. *
* * @param disabled * When true, media streaming to Amazon Kinesis is turned off. */ public void setDisabled(Boolean disabled) { this.disabled = disabled; } /** ** When true, media streaming to Amazon Kinesis is turned off. *
* * @return When true, media streaming to Amazon Kinesis is turned off. */ public Boolean getDisabled() { return this.disabled; } /** ** When true, media streaming to Amazon Kinesis is turned off. *
* * @param disabled * When true, media streaming to Amazon Kinesis is turned off. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingConfiguration withDisabled(Boolean disabled) { setDisabled(disabled); return this; } /** ** When true, media streaming to Amazon Kinesis is turned off. *
* * @return When true, media streaming to Amazon Kinesis is turned off. */ public Boolean isDisabled() { return this.disabled; } /** ** The streaming notification targets. *
* * @return The streaming notification targets. */ public java.util.List* The streaming notification targets. *
* * @param streamingNotificationTargets * The streaming notification targets. */ public void setStreamingNotificationTargets(java.util.Collection* The streaming notification targets. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStreamingNotificationTargets(java.util.Collection)} or * {@link #withStreamingNotificationTargets(java.util.Collection)} if you want to override the existing values. *
* * @param streamingNotificationTargets * The streaming notification targets. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingConfiguration withStreamingNotificationTargets(StreamingNotificationTarget... streamingNotificationTargets) { if (this.streamingNotificationTargets == null) { setStreamingNotificationTargets(new java.util.ArrayList* The streaming notification targets. *
* * @param streamingNotificationTargets * The streaming notification targets. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingConfiguration withStreamingNotificationTargets(java.util.Collection