com.tencentcloudapi.mdc.v20200828.models.ModifyInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.mdc.v20200828.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 ModifyInput extends AbstractModel {
/**
* The input ID.
*/
@SerializedName("InputId")
@Expose
private String InputId;
/**
* The input name.
*/
@SerializedName("InputName")
@Expose
private String InputName;
/**
* The description of the input.
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* The IP addresses (CIDR) allowed to push streams.
*/
@SerializedName("AllowIpList")
@Expose
private String [] AllowIpList;
/**
* The SRT configuration information.
*/
@SerializedName("SRTSettings")
@Expose
private CreateInputSRTSettings SRTSettings;
/**
* The RTP configuration information.
*/
@SerializedName("RTPSettings")
@Expose
private CreateInputRTPSettings RTPSettings;
/**
* The input protocol. Valid values: SRT, RTP, RTMP.
If there is an RTP input, the output must be RTP.
If there is an RTMP input, the output must be SRT or RTMP.
If there is an SRT input, the output must be SRT.
*/
@SerializedName("Protocol")
@Expose
private String Protocol;
/**
* Whether to enable input failover. Valid values: OPEN, CLOSE.
*/
@SerializedName("FailOver")
@Expose
private String FailOver;
/**
* Configuration information for RTMP_PULL.
*/
@SerializedName("RTMPPullSettings")
@Expose
private CreateInputRTMPPullSettings RTMPPullSettings;
/**
* Configuration information of RTSP_PULL.
*/
@SerializedName("RTSPPullSettings")
@Expose
private CreateInputRTSPPullSettings RTSPPullSettings;
/**
* HLS_PULL configuration information.
*/
@SerializedName("HLSPullSettings")
@Expose
private CreateInputHLSPullSettings HLSPullSettings;
/**
* Delayed broadcast smooth streaming configuration information.
*/
@SerializedName("ResilientStream")
@Expose
private ResilientStreamConf ResilientStream;
/**
* The ID of the input security group to bind. Only one security group can be associated.
*/
@SerializedName("SecurityGroupIds")
@Expose
private String [] SecurityGroupIds;
/**
* Availability zone, optional, supports up to two availability zones. For interfaces that need to be changed, the second availability zone will participate in resource allocation. This is effective if disaster recovery is enabled for input or RTSP_PULL protocol switching is involved (addresses will be reallocated).
*/
@SerializedName("Zones")
@Expose
private String [] Zones;
/**
* Get The input ID.
* @return InputId The input ID.
*/
public String getInputId() {
return this.InputId;
}
/**
* Set The input ID.
* @param InputId The input ID.
*/
public void setInputId(String InputId) {
this.InputId = InputId;
}
/**
* Get The input name.
* @return InputName The input name.
*/
public String getInputName() {
return this.InputName;
}
/**
* Set The input name.
* @param InputName The input name.
*/
public void setInputName(String InputName) {
this.InputName = InputName;
}
/**
* Get The description of the input.
* @return Description The description of the input.
*/
public String getDescription() {
return this.Description;
}
/**
* Set The description of the input.
* @param Description The description of the input.
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get The IP addresses (CIDR) allowed to push streams.
* @return AllowIpList The IP addresses (CIDR) allowed to push streams.
*/
public String [] getAllowIpList() {
return this.AllowIpList;
}
/**
* Set The IP addresses (CIDR) allowed to push streams.
* @param AllowIpList The IP addresses (CIDR) allowed to push streams.
*/
public void setAllowIpList(String [] AllowIpList) {
this.AllowIpList = AllowIpList;
}
/**
* Get The SRT configuration information.
* @return SRTSettings The SRT configuration information.
*/
public CreateInputSRTSettings getSRTSettings() {
return this.SRTSettings;
}
/**
* Set The SRT configuration information.
* @param SRTSettings The SRT configuration information.
*/
public void setSRTSettings(CreateInputSRTSettings SRTSettings) {
this.SRTSettings = SRTSettings;
}
/**
* Get The RTP configuration information.
* @return RTPSettings The RTP configuration information.
*/
public CreateInputRTPSettings getRTPSettings() {
return this.RTPSettings;
}
/**
* Set The RTP configuration information.
* @param RTPSettings The RTP configuration information.
*/
public void setRTPSettings(CreateInputRTPSettings RTPSettings) {
this.RTPSettings = RTPSettings;
}
/**
* Get The input protocol. Valid values: SRT, RTP, RTMP.
If there is an RTP input, the output must be RTP.
If there is an RTMP input, the output must be SRT or RTMP.
If there is an SRT input, the output must be SRT.
* @return Protocol The input protocol. Valid values: SRT, RTP, RTMP.
If there is an RTP input, the output must be RTP.
If there is an RTMP input, the output must be SRT or RTMP.
If there is an SRT input, the output must be SRT.
*/
public String getProtocol() {
return this.Protocol;
}
/**
* Set The input protocol. Valid values: SRT, RTP, RTMP.
If there is an RTP input, the output must be RTP.
If there is an RTMP input, the output must be SRT or RTMP.
If there is an SRT input, the output must be SRT.
* @param Protocol The input protocol. Valid values: SRT, RTP, RTMP.
If there is an RTP input, the output must be RTP.
If there is an RTMP input, the output must be SRT or RTMP.
If there is an SRT input, the output must be SRT.
*/
public void setProtocol(String Protocol) {
this.Protocol = Protocol;
}
/**
* Get Whether to enable input failover. Valid values: OPEN, CLOSE.
* @return FailOver Whether to enable input failover. Valid values: OPEN, CLOSE.
*/
public String getFailOver() {
return this.FailOver;
}
/**
* Set Whether to enable input failover. Valid values: OPEN, CLOSE.
* @param FailOver Whether to enable input failover. Valid values: OPEN, CLOSE.
*/
public void setFailOver(String FailOver) {
this.FailOver = FailOver;
}
/**
* Get Configuration information for RTMP_PULL.
* @return RTMPPullSettings Configuration information for RTMP_PULL.
*/
public CreateInputRTMPPullSettings getRTMPPullSettings() {
return this.RTMPPullSettings;
}
/**
* Set Configuration information for RTMP_PULL.
* @param RTMPPullSettings Configuration information for RTMP_PULL.
*/
public void setRTMPPullSettings(CreateInputRTMPPullSettings RTMPPullSettings) {
this.RTMPPullSettings = RTMPPullSettings;
}
/**
* Get Configuration information of RTSP_PULL.
* @return RTSPPullSettings Configuration information of RTSP_PULL.
*/
public CreateInputRTSPPullSettings getRTSPPullSettings() {
return this.RTSPPullSettings;
}
/**
* Set Configuration information of RTSP_PULL.
* @param RTSPPullSettings Configuration information of RTSP_PULL.
*/
public void setRTSPPullSettings(CreateInputRTSPPullSettings RTSPPullSettings) {
this.RTSPPullSettings = RTSPPullSettings;
}
/**
* Get HLS_PULL configuration information.
* @return HLSPullSettings HLS_PULL configuration information.
*/
public CreateInputHLSPullSettings getHLSPullSettings() {
return this.HLSPullSettings;
}
/**
* Set HLS_PULL configuration information.
* @param HLSPullSettings HLS_PULL configuration information.
*/
public void setHLSPullSettings(CreateInputHLSPullSettings HLSPullSettings) {
this.HLSPullSettings = HLSPullSettings;
}
/**
* Get Delayed broadcast smooth streaming configuration information.
* @return ResilientStream Delayed broadcast smooth streaming configuration information.
*/
public ResilientStreamConf getResilientStream() {
return this.ResilientStream;
}
/**
* Set Delayed broadcast smooth streaming configuration information.
* @param ResilientStream Delayed broadcast smooth streaming configuration information.
*/
public void setResilientStream(ResilientStreamConf ResilientStream) {
this.ResilientStream = ResilientStream;
}
/**
* Get The ID of the input security group to bind. Only one security group can be associated.
* @return SecurityGroupIds The ID of the input security group to bind. Only one security group can be associated.
*/
public String [] getSecurityGroupIds() {
return this.SecurityGroupIds;
}
/**
* Set The ID of the input security group to bind. Only one security group can be associated.
* @param SecurityGroupIds The ID of the input security group to bind. Only one security group can be associated.
*/
public void setSecurityGroupIds(String [] SecurityGroupIds) {
this.SecurityGroupIds = SecurityGroupIds;
}
/**
* Get Availability zone, optional, supports up to two availability zones. For interfaces that need to be changed, the second availability zone will participate in resource allocation. This is effective if disaster recovery is enabled for input or RTSP_PULL protocol switching is involved (addresses will be reallocated).
* @return Zones Availability zone, optional, supports up to two availability zones. For interfaces that need to be changed, the second availability zone will participate in resource allocation. This is effective if disaster recovery is enabled for input or RTSP_PULL protocol switching is involved (addresses will be reallocated).
*/
public String [] getZones() {
return this.Zones;
}
/**
* Set Availability zone, optional, supports up to two availability zones. For interfaces that need to be changed, the second availability zone will participate in resource allocation. This is effective if disaster recovery is enabled for input or RTSP_PULL protocol switching is involved (addresses will be reallocated).
* @param Zones Availability zone, optional, supports up to two availability zones. For interfaces that need to be changed, the second availability zone will participate in resource allocation. This is effective if disaster recovery is enabled for input or RTSP_PULL protocol switching is involved (addresses will be reallocated).
*/
public void setZones(String [] Zones) {
this.Zones = Zones;
}
public ModifyInput() {
}
/**
* 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 ModifyInput(ModifyInput source) {
if (source.InputId != null) {
this.InputId = new String(source.InputId);
}
if (source.InputName != null) {
this.InputName = new String(source.InputName);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.AllowIpList != null) {
this.AllowIpList = new String[source.AllowIpList.length];
for (int i = 0; i < source.AllowIpList.length; i++) {
this.AllowIpList[i] = new String(source.AllowIpList[i]);
}
}
if (source.SRTSettings != null) {
this.SRTSettings = new CreateInputSRTSettings(source.SRTSettings);
}
if (source.RTPSettings != null) {
this.RTPSettings = new CreateInputRTPSettings(source.RTPSettings);
}
if (source.Protocol != null) {
this.Protocol = new String(source.Protocol);
}
if (source.FailOver != null) {
this.FailOver = new String(source.FailOver);
}
if (source.RTMPPullSettings != null) {
this.RTMPPullSettings = new CreateInputRTMPPullSettings(source.RTMPPullSettings);
}
if (source.RTSPPullSettings != null) {
this.RTSPPullSettings = new CreateInputRTSPPullSettings(source.RTSPPullSettings);
}
if (source.HLSPullSettings != null) {
this.HLSPullSettings = new CreateInputHLSPullSettings(source.HLSPullSettings);
}
if (source.ResilientStream != null) {
this.ResilientStream = new ResilientStreamConf(source.ResilientStream);
}
if (source.SecurityGroupIds != null) {
this.SecurityGroupIds = new String[source.SecurityGroupIds.length];
for (int i = 0; i < source.SecurityGroupIds.length; i++) {
this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]);
}
}
if (source.Zones != null) {
this.Zones = new String[source.Zones.length];
for (int i = 0; i < source.Zones.length; i++) {
this.Zones[i] = new String(source.Zones[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InputId", this.InputId);
this.setParamSimple(map, prefix + "InputName", this.InputName);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamArraySimple(map, prefix + "AllowIpList.", this.AllowIpList);
this.setParamObj(map, prefix + "SRTSettings.", this.SRTSettings);
this.setParamObj(map, prefix + "RTPSettings.", this.RTPSettings);
this.setParamSimple(map, prefix + "Protocol", this.Protocol);
this.setParamSimple(map, prefix + "FailOver", this.FailOver);
this.setParamObj(map, prefix + "RTMPPullSettings.", this.RTMPPullSettings);
this.setParamObj(map, prefix + "RTSPPullSettings.", this.RTSPPullSettings);
this.setParamObj(map, prefix + "HLSPullSettings.", this.HLSPullSettings);
this.setParamObj(map, prefix + "ResilientStream.", this.ResilientStream);
this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds);
this.setParamArraySimple(map, prefix + "Zones.", this.Zones);
}
}