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

com.tencentcloudapi.mps.v20190612.models.DescribeInputSRTSettings Maven / Gradle / Ivy

There is a newer version: 3.1.1165
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License 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.tencentcloudapi.mps.v20190612.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeInputSRTSettings extends AbstractModel {

    /**
    * SRT模式。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Mode")
    @Expose
    private String Mode;

    /**
    * 流Id。
    */
    @SerializedName("StreamId")
    @Expose
    private String StreamId;

    /**
    * 延迟。
    */
    @SerializedName("Latency")
    @Expose
    private Long Latency;

    /**
    * 接收延迟。
    */
    @SerializedName("RecvLatency")
    @Expose
    private Long RecvLatency;

    /**
    * 对端延迟。
    */
    @SerializedName("PeerLatency")
    @Expose
    private Long PeerLatency;

    /**
    * 对端空闲超时时间。
    */
    @SerializedName("PeerIdleTimeout")
    @Expose
    private Long PeerIdleTimeout;

    /**
    * 解密密钥。
    */
    @SerializedName("Passphrase")
    @Expose
    private String Passphrase;

    /**
    * 密钥长度。
    */
    @SerializedName("PbKeyLen")
    @Expose
    private Long PbKeyLen;

    /**
    * SRT对端地址。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("SourceAddresses")
    @Expose
    private SRTSourceAddressResp [] SourceAddresses;

    /**
     * Get SRT模式。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Mode SRT模式。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getMode() {
        return this.Mode;
    }

    /**
     * Set SRT模式。
注意:此字段可能返回 null,表示取不到有效值。
     * @param Mode SRT模式。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setMode(String Mode) {
        this.Mode = Mode;
    }

    /**
     * Get 流Id。 
     * @return StreamId 流Id。
     */
    public String getStreamId() {
        return this.StreamId;
    }

    /**
     * Set 流Id。
     * @param StreamId 流Id。
     */
    public void setStreamId(String StreamId) {
        this.StreamId = StreamId;
    }

    /**
     * Get 延迟。 
     * @return Latency 延迟。
     */
    public Long getLatency() {
        return this.Latency;
    }

    /**
     * Set 延迟。
     * @param Latency 延迟。
     */
    public void setLatency(Long Latency) {
        this.Latency = Latency;
    }

    /**
     * Get 接收延迟。 
     * @return RecvLatency 接收延迟。
     */
    public Long getRecvLatency() {
        return this.RecvLatency;
    }

    /**
     * Set 接收延迟。
     * @param RecvLatency 接收延迟。
     */
    public void setRecvLatency(Long RecvLatency) {
        this.RecvLatency = RecvLatency;
    }

    /**
     * Get 对端延迟。 
     * @return PeerLatency 对端延迟。
     */
    public Long getPeerLatency() {
        return this.PeerLatency;
    }

    /**
     * Set 对端延迟。
     * @param PeerLatency 对端延迟。
     */
    public void setPeerLatency(Long PeerLatency) {
        this.PeerLatency = PeerLatency;
    }

    /**
     * Get 对端空闲超时时间。 
     * @return PeerIdleTimeout 对端空闲超时时间。
     */
    public Long getPeerIdleTimeout() {
        return this.PeerIdleTimeout;
    }

    /**
     * Set 对端空闲超时时间。
     * @param PeerIdleTimeout 对端空闲超时时间。
     */
    public void setPeerIdleTimeout(Long PeerIdleTimeout) {
        this.PeerIdleTimeout = PeerIdleTimeout;
    }

    /**
     * Get 解密密钥。 
     * @return Passphrase 解密密钥。
     */
    public String getPassphrase() {
        return this.Passphrase;
    }

    /**
     * Set 解密密钥。
     * @param Passphrase 解密密钥。
     */
    public void setPassphrase(String Passphrase) {
        this.Passphrase = Passphrase;
    }

    /**
     * Get 密钥长度。 
     * @return PbKeyLen 密钥长度。
     */
    public Long getPbKeyLen() {
        return this.PbKeyLen;
    }

    /**
     * Set 密钥长度。
     * @param PbKeyLen 密钥长度。
     */
    public void setPbKeyLen(Long PbKeyLen) {
        this.PbKeyLen = PbKeyLen;
    }

    /**
     * Get SRT对端地址。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return SourceAddresses SRT对端地址。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public SRTSourceAddressResp [] getSourceAddresses() {
        return this.SourceAddresses;
    }

    /**
     * Set SRT对端地址。
注意:此字段可能返回 null,表示取不到有效值。
     * @param SourceAddresses SRT对端地址。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setSourceAddresses(SRTSourceAddressResp [] SourceAddresses) {
        this.SourceAddresses = SourceAddresses;
    }

    public DescribeInputSRTSettings() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeInputSRTSettings(DescribeInputSRTSettings source) {
        if (source.Mode != null) {
            this.Mode = new String(source.Mode);
        }
        if (source.StreamId != null) {
            this.StreamId = new String(source.StreamId);
        }
        if (source.Latency != null) {
            this.Latency = new Long(source.Latency);
        }
        if (source.RecvLatency != null) {
            this.RecvLatency = new Long(source.RecvLatency);
        }
        if (source.PeerLatency != null) {
            this.PeerLatency = new Long(source.PeerLatency);
        }
        if (source.PeerIdleTimeout != null) {
            this.PeerIdleTimeout = new Long(source.PeerIdleTimeout);
        }
        if (source.Passphrase != null) {
            this.Passphrase = new String(source.Passphrase);
        }
        if (source.PbKeyLen != null) {
            this.PbKeyLen = new Long(source.PbKeyLen);
        }
        if (source.SourceAddresses != null) {
            this.SourceAddresses = new SRTSourceAddressResp[source.SourceAddresses.length];
            for (int i = 0; i < source.SourceAddresses.length; i++) {
                this.SourceAddresses[i] = new SRTSourceAddressResp(source.SourceAddresses[i]);
            }
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Mode", this.Mode);
        this.setParamSimple(map, prefix + "StreamId", this.StreamId);
        this.setParamSimple(map, prefix + "Latency", this.Latency);
        this.setParamSimple(map, prefix + "RecvLatency", this.RecvLatency);
        this.setParamSimple(map, prefix + "PeerLatency", this.PeerLatency);
        this.setParamSimple(map, prefix + "PeerIdleTimeout", this.PeerIdleTimeout);
        this.setParamSimple(map, prefix + "Passphrase", this.Passphrase);
        this.setParamSimple(map, prefix + "PbKeyLen", this.PbKeyLen);
        this.setParamArrayObj(map, prefix + "SourceAddresses.", this.SourceAddresses);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy