|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.cms20240330.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 CreateServiceRecordRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>CreateServiceRecordRequest</p> |
| 18 | + */ |
| 19 | +public class CreateServiceRecordRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Path |
| 21 | + @com.aliyun.core.annotation.NameInMap("workspace") |
| 22 | + @com.aliyun.core.annotation.Validation(required = true) |
| 23 | + private String workspace; |
| 24 | + |
| 25 | + @com.aliyun.core.annotation.Path |
| 26 | + @com.aliyun.core.annotation.NameInMap("serviceId") |
| 27 | + @com.aliyun.core.annotation.Validation(required = true) |
| 28 | + private String serviceId; |
| 29 | + |
| 30 | + @com.aliyun.core.annotation.Host |
| 31 | + @com.aliyun.core.annotation.NameInMap("regionId") |
| 32 | + private String regionId; |
| 33 | + |
| 34 | + @com.aliyun.core.annotation.Body |
| 35 | + @com.aliyun.core.annotation.NameInMap("recordContent") |
| 36 | + @com.aliyun.core.annotation.Validation(required = true) |
| 37 | + private String recordContent; |
| 38 | + |
| 39 | + @com.aliyun.core.annotation.Body |
| 40 | + @com.aliyun.core.annotation.NameInMap("recordType") |
| 41 | + @com.aliyun.core.annotation.Validation(required = true) |
| 42 | + private String recordType; |
| 43 | + |
| 44 | + private CreateServiceRecordRequest(Builder builder) { |
| 45 | + super(builder); |
| 46 | + this.workspace = builder.workspace; |
| 47 | + this.serviceId = builder.serviceId; |
| 48 | + this.regionId = builder.regionId; |
| 49 | + this.recordContent = builder.recordContent; |
| 50 | + this.recordType = builder.recordType; |
| 51 | + } |
| 52 | + |
| 53 | + public static Builder builder() { |
| 54 | + return new Builder(); |
| 55 | + } |
| 56 | + |
| 57 | + public static CreateServiceRecordRequest create() { |
| 58 | + return builder().build(); |
| 59 | + } |
| 60 | + |
| 61 | +@Override |
| 62 | + public Builder toBuilder() { |
| 63 | + return new Builder(this); |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * @return workspace |
| 68 | + */ |
| 69 | + public String getWorkspace() { |
| 70 | + return this.workspace; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * @return serviceId |
| 75 | + */ |
| 76 | + public String getServiceId() { |
| 77 | + return this.serviceId; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * @return regionId |
| 82 | + */ |
| 83 | + public String getRegionId() { |
| 84 | + return this.regionId; |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * @return recordContent |
| 89 | + */ |
| 90 | + public String getRecordContent() { |
| 91 | + return this.recordContent; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * @return recordType |
| 96 | + */ |
| 97 | + public String getRecordType() { |
| 98 | + return this.recordType; |
| 99 | + } |
| 100 | + |
| 101 | + public static final class Builder extends Request.Builder<CreateServiceRecordRequest, Builder> { |
| 102 | + private String workspace; |
| 103 | + private String serviceId; |
| 104 | + private String regionId; |
| 105 | + private String recordContent; |
| 106 | + private String recordType; |
| 107 | + |
| 108 | + private Builder() { |
| 109 | + super(); |
| 110 | + } |
| 111 | + |
| 112 | + private Builder(CreateServiceRecordRequest request) { |
| 113 | + super(request); |
| 114 | + this.workspace = request.workspace; |
| 115 | + this.serviceId = request.serviceId; |
| 116 | + this.regionId = request.regionId; |
| 117 | + this.recordContent = request.recordContent; |
| 118 | + this.recordType = request.recordType; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * <p>This parameter is required.</p> |
| 123 | + * |
| 124 | + * <strong>example:</strong> |
| 125 | + * <p>workspace-test</p> |
| 126 | + */ |
| 127 | + public Builder workspace(String workspace) { |
| 128 | + this.putPathParameter("workspace", workspace); |
| 129 | + this.workspace = workspace; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * <p>This parameter is required.</p> |
| 135 | + * |
| 136 | + * <strong>example:</strong> |
| 137 | + * <p>em87vd@c2e25bcfe0e21ce0***</p> |
| 138 | + */ |
| 139 | + public Builder serviceId(String serviceId) { |
| 140 | + this.putPathParameter("serviceId", serviceId); |
| 141 | + this.serviceId = serviceId; |
| 142 | + return this; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * regionId. |
| 147 | + */ |
| 148 | + public Builder regionId(String regionId) { |
| 149 | + this.putHostParameter("regionId", regionId); |
| 150 | + this.regionId = regionId; |
| 151 | + return this; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * <p>This parameter is required.</p> |
| 156 | + * |
| 157 | + * <strong>example:</strong> |
| 158 | + * <p>{ |
| 159 | + * "project": "proj-xtrace-16c988dcfe21fcb73c5e6f234927d998-cn-hangzhou", |
| 160 | + * "storeName": "app-biz-log", |
| 161 | + * "regionId": "cn-hangzhou", |
| 162 | + * "bindType": "logstore", |
| 163 | + * "traceIdRelateField": "" |
| 164 | + * }</p> |
| 165 | + */ |
| 166 | + public Builder recordContent(String recordContent) { |
| 167 | + this.putBodyParameter("recordContent", recordContent); |
| 168 | + this.recordContent = recordContent; |
| 169 | + return this; |
| 170 | + } |
| 171 | + |
| 172 | + /** |
| 173 | + * <p>This parameter is required.</p> |
| 174 | + * |
| 175 | + * <strong>example:</strong> |
| 176 | + * <p>logCorrelation</p> |
| 177 | + */ |
| 178 | + public Builder recordType(String recordType) { |
| 179 | + this.putBodyParameter("recordType", recordType); |
| 180 | + this.recordType = recordType; |
| 181 | + return this; |
| 182 | + } |
| 183 | + |
| 184 | + @Override |
| 185 | + public CreateServiceRecordRequest build() { |
| 186 | + return new CreateServiceRecordRequest(this); |
| 187 | + } |
| 188 | + |
| 189 | + } |
| 190 | + |
| 191 | +} |
0 commit comments