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

com.aliyun.sdk.service.appstream_center20210901.models.ModifyAppPolicyRequest Maven / Gradle / Ivy

There is a newer version: 1.0.13
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.appstream_center20210901.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ModifyAppPolicyRequest} extends {@link RequestModel}
 *
 * 

ModifyAppPolicyRequest

*/ public class ModifyAppPolicyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AppPolicyId") @com.aliyun.core.annotation.Validation(required = true) private String appPolicyId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProductType") @com.aliyun.core.annotation.Validation(required = true) private String productType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VideoPolicy") private VideoPolicy videoPolicy; private ModifyAppPolicyRequest(Builder builder) { super(builder); this.appPolicyId = builder.appPolicyId; this.productType = builder.productType; this.videoPolicy = builder.videoPolicy; } public static Builder builder() { return new Builder(); } public static ModifyAppPolicyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appPolicyId */ public String getAppPolicyId() { return this.appPolicyId; } /** * @return productType */ public String getProductType() { return this.productType; } /** * @return videoPolicy */ public VideoPolicy getVideoPolicy() { return this.videoPolicy; } public static final class Builder extends Request.Builder { private String appPolicyId; private String productType; private VideoPolicy videoPolicy; private Builder() { super(); } private Builder(ModifyAppPolicyRequest request) { super(request); this.appPolicyId = request.appPolicyId; this.productType = request.productType; this.videoPolicy = request.videoPolicy; } /** * AppPolicyId. */ public Builder appPolicyId(String appPolicyId) { this.putQueryParameter("AppPolicyId", appPolicyId); this.appPolicyId = appPolicyId; return this; } /** * ProductType. */ public Builder productType(String productType) { this.putQueryParameter("ProductType", productType); this.productType = productType; return this; } /** * VideoPolicy. */ public Builder videoPolicy(VideoPolicy videoPolicy) { String videoPolicyShrink = shrink(videoPolicy, "VideoPolicy", "json"); this.putQueryParameter("VideoPolicy", videoPolicyShrink); this.videoPolicy = videoPolicy; return this; } @Override public ModifyAppPolicyRequest build() { return new ModifyAppPolicyRequest(this); } } public static class VideoPolicy extends TeaModel { @com.aliyun.core.annotation.NameInMap("FrameRate") private Integer frameRate; @com.aliyun.core.annotation.NameInMap("SessionResolutionHeight") private Integer sessionResolutionHeight; @com.aliyun.core.annotation.NameInMap("SessionResolutionWidth") private Integer sessionResolutionWidth; @com.aliyun.core.annotation.NameInMap("StreamingMode") private String streamingMode; @com.aliyun.core.annotation.NameInMap("TerminalResolutionAdaptive") private Boolean terminalResolutionAdaptive; @com.aliyun.core.annotation.NameInMap("VisualQualityStrategy") private String visualQualityStrategy; @com.aliyun.core.annotation.NameInMap("Webrtc") private Boolean webrtc; private VideoPolicy(Builder builder) { this.frameRate = builder.frameRate; this.sessionResolutionHeight = builder.sessionResolutionHeight; this.sessionResolutionWidth = builder.sessionResolutionWidth; this.streamingMode = builder.streamingMode; this.terminalResolutionAdaptive = builder.terminalResolutionAdaptive; this.visualQualityStrategy = builder.visualQualityStrategy; this.webrtc = builder.webrtc; } public static Builder builder() { return new Builder(); } public static VideoPolicy create() { return builder().build(); } /** * @return frameRate */ public Integer getFrameRate() { return this.frameRate; } /** * @return sessionResolutionHeight */ public Integer getSessionResolutionHeight() { return this.sessionResolutionHeight; } /** * @return sessionResolutionWidth */ public Integer getSessionResolutionWidth() { return this.sessionResolutionWidth; } /** * @return streamingMode */ public String getStreamingMode() { return this.streamingMode; } /** * @return terminalResolutionAdaptive */ public Boolean getTerminalResolutionAdaptive() { return this.terminalResolutionAdaptive; } /** * @return visualQualityStrategy */ public String getVisualQualityStrategy() { return this.visualQualityStrategy; } /** * @return webrtc */ public Boolean getWebrtc() { return this.webrtc; } public static final class Builder { private Integer frameRate; private Integer sessionResolutionHeight; private Integer sessionResolutionWidth; private String streamingMode; private Boolean terminalResolutionAdaptive; private String visualQualityStrategy; private Boolean webrtc; /** * FrameRate. */ public Builder frameRate(Integer frameRate) { this.frameRate = frameRate; return this; } /** * SessionResolutionHeight. */ public Builder sessionResolutionHeight(Integer sessionResolutionHeight) { this.sessionResolutionHeight = sessionResolutionHeight; return this; } /** * SessionResolutionWidth. */ public Builder sessionResolutionWidth(Integer sessionResolutionWidth) { this.sessionResolutionWidth = sessionResolutionWidth; return this; } /** * StreamingMode. */ public Builder streamingMode(String streamingMode) { this.streamingMode = streamingMode; return this; } /** * TerminalResolutionAdaptive. */ public Builder terminalResolutionAdaptive(Boolean terminalResolutionAdaptive) { this.terminalResolutionAdaptive = terminalResolutionAdaptive; return this; } /** * VisualQualityStrategy. */ public Builder visualQualityStrategy(String visualQualityStrategy) { this.visualQualityStrategy = visualQualityStrategy; return this; } /** * Webrtc. */ public Builder webrtc(Boolean webrtc) { this.webrtc = webrtc; return this; } public VideoPolicy build() { return new VideoPolicy(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy