|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.green20220302.models; |
| 3 | + |
| 4 | +import com.aliyun.sdk.gateway.pop.*; |
| 5 | +import darabonba.core.*; |
| 6 | +import darabonba.core.async.*; |
| 7 | +import darabonba.core.sync.*; |
| 8 | +import darabonba.core.client.*; |
| 9 | +import darabonba.core.RequestModel; |
| 10 | +import darabonba.core.TeaModel; |
| 11 | +import com.aliyun.sdk.gateway.pop.models.*; |
| 12 | + |
| 13 | +/** |
| 14 | + * |
| 15 | + * {@link MultiModalGuardWsRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>MultiModalGuardWsRequest</p> |
| 18 | + */ |
| 19 | +public class MultiModalGuardWsRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Query |
| 21 | + @com.aliyun.core.annotation.NameInMap("ModelType") |
| 22 | + private String modelType; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Query |
| 25 | + @com.aliyun.core.annotation.NameInMap("ProtocolType") |
| 26 | + private String protocolType; |
| 27 | + |
| 28 | + @com.aliyun.core.annotation.Query |
| 29 | + @com.aliyun.core.annotation.NameInMap("Service") |
| 30 | + private String service; |
| 31 | + |
| 32 | + @com.aliyun.core.annotation.Query |
| 33 | + @com.aliyun.core.annotation.NameInMap("ServiceParameters") |
| 34 | + private String serviceParameters; |
| 35 | + |
| 36 | + private MultiModalGuardWsRequest(Builder builder) { |
| 37 | + super(builder); |
| 38 | + this.modelType = builder.modelType; |
| 39 | + this.protocolType = builder.protocolType; |
| 40 | + this.service = builder.service; |
| 41 | + this.serviceParameters = builder.serviceParameters; |
| 42 | + } |
| 43 | + |
| 44 | + public static Builder builder() { |
| 45 | + return new Builder(); |
| 46 | + } |
| 47 | + |
| 48 | + public static MultiModalGuardWsRequest create() { |
| 49 | + return builder().build(); |
| 50 | + } |
| 51 | + |
| 52 | +@Override |
| 53 | + public Builder toBuilder() { |
| 54 | + return new Builder(this); |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * @return modelType |
| 59 | + */ |
| 60 | + public String getModelType() { |
| 61 | + return this.modelType; |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * @return protocolType |
| 66 | + */ |
| 67 | + public String getProtocolType() { |
| 68 | + return this.protocolType; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * @return service |
| 73 | + */ |
| 74 | + public String getService() { |
| 75 | + return this.service; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * @return serviceParameters |
| 80 | + */ |
| 81 | + public String getServiceParameters() { |
| 82 | + return this.serviceParameters; |
| 83 | + } |
| 84 | + |
| 85 | + public static final class Builder extends Request.Builder<MultiModalGuardWsRequest, Builder> { |
| 86 | + private String modelType; |
| 87 | + private String protocolType; |
| 88 | + private String service; |
| 89 | + private String serviceParameters; |
| 90 | + |
| 91 | + private Builder() { |
| 92 | + super(); |
| 93 | + } |
| 94 | + |
| 95 | + private Builder(MultiModalGuardWsRequest request) { |
| 96 | + super(request); |
| 97 | + this.modelType = request.modelType; |
| 98 | + this.protocolType = request.protocolType; |
| 99 | + this.service = request.service; |
| 100 | + this.serviceParameters = request.serviceParameters; |
| 101 | + } |
| 102 | + |
| 103 | + /** |
| 104 | + * ModelType. |
| 105 | + */ |
| 106 | + public Builder modelType(String modelType) { |
| 107 | + this.putQueryParameter("ModelType", modelType); |
| 108 | + this.modelType = modelType; |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * ProtocolType. |
| 114 | + */ |
| 115 | + public Builder protocolType(String protocolType) { |
| 116 | + this.putQueryParameter("ProtocolType", protocolType); |
| 117 | + this.protocolType = protocolType; |
| 118 | + return this; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * Service. |
| 123 | + */ |
| 124 | + public Builder service(String service) { |
| 125 | + this.putQueryParameter("Service", service); |
| 126 | + this.service = service; |
| 127 | + return this; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * ServiceParameters. |
| 132 | + */ |
| 133 | + public Builder serviceParameters(String serviceParameters) { |
| 134 | + this.putQueryParameter("ServiceParameters", serviceParameters); |
| 135 | + this.serviceParameters = serviceParameters; |
| 136 | + return this; |
| 137 | + } |
| 138 | + |
| 139 | + @Override |
| 140 | + public MultiModalGuardWsRequest build() { |
| 141 | + return new MultiModalGuardWsRequest(this); |
| 142 | + } |
| 143 | + |
| 144 | + } |
| 145 | + |
| 146 | +} |
0 commit comments