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

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

/*
 * 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ParseNotificationResponse extends AbstractModel{

    /**
    * Supported event type. Valid values:
  • WorkflowTask: Video workflow processing task.
  • */ @SerializedName("EventType") @Expose private String EventType; /** * Information of a video processing task. This field has a value only when `TaskType` is `WorkflowTask`. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("WorkflowTaskEvent") @Expose private WorkflowTask WorkflowTaskEvent; /** * Video editing task information. This field has a value only when `TaskType` is `EditMediaTask`. */ @SerializedName("EditMediaTaskEvent") @Expose private EditMediaTask EditMediaTaskEvent; /** * The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed. */ @SerializedName("SessionId") @Expose private String SessionId; /** * The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters. */ @SerializedName("SessionContext") @Expose private String SessionContext; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ @SerializedName("RequestId") @Expose private String RequestId; /** * Get Supported event type. Valid values:
  • WorkflowTask: Video workflow processing task.
  • * @return EventType Supported event type. Valid values:
  • WorkflowTask: Video workflow processing task.
  • */ public String getEventType() { return this.EventType; } /** * Set Supported event type. Valid values:
  • WorkflowTask: Video workflow processing task.
  • * @param EventType Supported event type. Valid values:
  • WorkflowTask: Video workflow processing task.
  • */ public void setEventType(String EventType) { this.EventType = EventType; } /** * Get Information of a video processing task. This field has a value only when `TaskType` is `WorkflowTask`. Note: This field may return null, indicating that no valid values can be obtained. * @return WorkflowTaskEvent Information of a video processing task. This field has a value only when `TaskType` is `WorkflowTask`. Note: This field may return null, indicating that no valid values can be obtained. */ public WorkflowTask getWorkflowTaskEvent() { return this.WorkflowTaskEvent; } /** * Set Information of a video processing task. This field has a value only when `TaskType` is `WorkflowTask`. Note: This field may return null, indicating that no valid values can be obtained. * @param WorkflowTaskEvent Information of a video processing task. This field has a value only when `TaskType` is `WorkflowTask`. Note: This field may return null, indicating that no valid values can be obtained. */ public void setWorkflowTaskEvent(WorkflowTask WorkflowTaskEvent) { this.WorkflowTaskEvent = WorkflowTaskEvent; } /** * Get Video editing task information. This field has a value only when `TaskType` is `EditMediaTask`. * @return EditMediaTaskEvent Video editing task information. This field has a value only when `TaskType` is `EditMediaTask`. */ public EditMediaTask getEditMediaTaskEvent() { return this.EditMediaTaskEvent; } /** * Set Video editing task information. This field has a value only when `TaskType` is `EditMediaTask`. * @param EditMediaTaskEvent Video editing task information. This field has a value only when `TaskType` is `EditMediaTask`. */ public void setEditMediaTaskEvent(EditMediaTask EditMediaTaskEvent) { this.EditMediaTaskEvent = EditMediaTaskEvent; } /** * Get The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed. * @return SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed. */ public String getSessionId() { return this.SessionId; } /** * Set The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed. * @param SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed. */ public void setSessionId(String SessionId) { this.SessionId = SessionId; } /** * Get The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters. * @return SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters. */ public String getSessionContext() { return this.SessionContext; } /** * Set The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters. * @param SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters. */ public void setSessionContext(String SessionContext) { this.SessionContext = SessionContext; } /** * Get The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @return RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ public String getRequestId() { return this.RequestId; } /** * Set The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @param RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ public void setRequestId(String RequestId) { this.RequestId = RequestId; } public ParseNotificationResponse() { } /** * 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 ParseNotificationResponse(ParseNotificationResponse source) { if (source.EventType != null) { this.EventType = new String(source.EventType); } if (source.WorkflowTaskEvent != null) { this.WorkflowTaskEvent = new WorkflowTask(source.WorkflowTaskEvent); } if (source.EditMediaTaskEvent != null) { this.EditMediaTaskEvent = new EditMediaTask(source.EditMediaTaskEvent); } if (source.SessionId != null) { this.SessionId = new String(source.SessionId); } if (source.SessionContext != null) { this.SessionContext = new String(source.SessionContext); } if (source.RequestId != null) { this.RequestId = new String(source.RequestId); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "EventType", this.EventType); this.setParamObj(map, prefix + "WorkflowTaskEvent.", this.WorkflowTaskEvent); this.setParamObj(map, prefix + "EditMediaTaskEvent.", this.EditMediaTaskEvent); this.setParamSimple(map, prefix + "SessionId", this.SessionId); this.setParamSimple(map, prefix + "SessionContext", this.SessionContext); this.setParamSimple(map, prefix + "RequestId", this.RequestId); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy