|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.gpdb20160503.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 GetStatementResultRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>GetStatementResultRequest</p> |
| 18 | + */ |
| 19 | +public class GetStatementResultRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Query |
| 21 | + @com.aliyun.core.annotation.NameInMap("DBInstanceId") |
| 22 | + @com.aliyun.core.annotation.Validation(required = true) |
| 23 | + private String DBInstanceId; |
| 24 | + |
| 25 | + @com.aliyun.core.annotation.Query |
| 26 | + @com.aliyun.core.annotation.NameInMap("Database") |
| 27 | + private String database; |
| 28 | + |
| 29 | + @com.aliyun.core.annotation.Query |
| 30 | + @com.aliyun.core.annotation.NameInMap("Id") |
| 31 | + @com.aliyun.core.annotation.Validation(required = true) |
| 32 | + private String id; |
| 33 | + |
| 34 | + @com.aliyun.core.annotation.Query |
| 35 | + @com.aliyun.core.annotation.NameInMap("OwnerId") |
| 36 | + private Long ownerId; |
| 37 | + |
| 38 | + @com.aliyun.core.annotation.Query |
| 39 | + @com.aliyun.core.annotation.NameInMap("RegionId") |
| 40 | + @com.aliyun.core.annotation.Validation(required = true) |
| 41 | + private String regionId; |
| 42 | + |
| 43 | + @com.aliyun.core.annotation.Query |
| 44 | + @com.aliyun.core.annotation.NameInMap("SecretArn") |
| 45 | + @com.aliyun.core.annotation.Validation(required = true) |
| 46 | + private String secretArn; |
| 47 | + |
| 48 | + private GetStatementResultRequest(Builder builder) { |
| 49 | + super(builder); |
| 50 | + this.DBInstanceId = builder.DBInstanceId; |
| 51 | + this.database = builder.database; |
| 52 | + this.id = builder.id; |
| 53 | + this.ownerId = builder.ownerId; |
| 54 | + this.regionId = builder.regionId; |
| 55 | + this.secretArn = builder.secretArn; |
| 56 | + } |
| 57 | + |
| 58 | + public static Builder builder() { |
| 59 | + return new Builder(); |
| 60 | + } |
| 61 | + |
| 62 | + public static GetStatementResultRequest create() { |
| 63 | + return builder().build(); |
| 64 | + } |
| 65 | + |
| 66 | + @Override |
| 67 | + public Builder toBuilder() { |
| 68 | + return new Builder(this); |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * @return DBInstanceId |
| 73 | + */ |
| 74 | + public String getDBInstanceId() { |
| 75 | + return this.DBInstanceId; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * @return database |
| 80 | + */ |
| 81 | + public String getDatabase() { |
| 82 | + return this.database; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * @return id |
| 87 | + */ |
| 88 | + public String getId() { |
| 89 | + return this.id; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * @return ownerId |
| 94 | + */ |
| 95 | + public Long getOwnerId() { |
| 96 | + return this.ownerId; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * @return regionId |
| 101 | + */ |
| 102 | + public String getRegionId() { |
| 103 | + return this.regionId; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * @return secretArn |
| 108 | + */ |
| 109 | + public String getSecretArn() { |
| 110 | + return this.secretArn; |
| 111 | + } |
| 112 | + |
| 113 | + public static final class Builder extends Request.Builder<GetStatementResultRequest, Builder> { |
| 114 | + private String DBInstanceId; |
| 115 | + private String database; |
| 116 | + private String id; |
| 117 | + private Long ownerId; |
| 118 | + private String regionId; |
| 119 | + private String secretArn; |
| 120 | + |
| 121 | + private Builder() { |
| 122 | + super(); |
| 123 | + } |
| 124 | + |
| 125 | + private Builder(GetStatementResultRequest request) { |
| 126 | + super(request); |
| 127 | + this.DBInstanceId = request.DBInstanceId; |
| 128 | + this.database = request.database; |
| 129 | + this.id = request.id; |
| 130 | + this.ownerId = request.ownerId; |
| 131 | + this.regionId = request.regionId; |
| 132 | + this.secretArn = request.secretArn; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * <p>Instance ID. Can be obtained by calling DescribeDBInstances.</p> |
| 137 | + * <p>This parameter is required.</p> |
| 138 | + * |
| 139 | + * <strong>example:</strong> |
| 140 | + * <p>gp-xxxxxxxxx</p> |
| 141 | + */ |
| 142 | + public Builder DBInstanceId(String DBInstanceId) { |
| 143 | + this.putQueryParameter("DBInstanceId", DBInstanceId); |
| 144 | + this.DBInstanceId = DBInstanceId; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * <p>Database name.</p> |
| 150 | + * |
| 151 | + * <strong>example:</strong> |
| 152 | + * <p>test</p> |
| 153 | + */ |
| 154 | + public Builder database(String database) { |
| 155 | + this.putQueryParameter("Database", database); |
| 156 | + this.database = database; |
| 157 | + return this; |
| 158 | + } |
| 159 | + |
| 160 | + /** |
| 161 | + * <p>Task ID for asynchronous SQL execution.</p> |
| 162 | + * <p>This parameter is required.</p> |
| 163 | + * |
| 164 | + * <strong>example:</strong> |
| 165 | + * <p>9A920F47-416A-4044-817C-7C2A72AD16D3</p> |
| 166 | + */ |
| 167 | + public Builder id(String id) { |
| 168 | + this.putQueryParameter("Id", id); |
| 169 | + this.id = id; |
| 170 | + return this; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * OwnerId. |
| 175 | + */ |
| 176 | + public Builder ownerId(Long ownerId) { |
| 177 | + this.putQueryParameter("OwnerId", ownerId); |
| 178 | + this.ownerId = ownerId; |
| 179 | + return this; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * <p>Region ID where the instance is located.</p> |
| 184 | + * <p>This parameter is required.</p> |
| 185 | + * |
| 186 | + * <strong>example:</strong> |
| 187 | + * <p>cn-beijing</p> |
| 188 | + */ |
| 189 | + public Builder regionId(String regionId) { |
| 190 | + this.putQueryParameter("RegionId", regionId); |
| 191 | + this.regionId = regionId; |
| 192 | + return this; |
| 193 | + } |
| 194 | + |
| 195 | + /** |
| 196 | + * <p>Access credential. Created through the CreateSecret interface.</p> |
| 197 | + * <blockquote> |
| 198 | + * <p>When accessing this interface with a sub-account, the sub-account must have the UseSecret or GetSecretValue permission for this SecretArn.</p> |
| 199 | + * </blockquote> |
| 200 | + * <p>This parameter is required.</p> |
| 201 | + * |
| 202 | + * <strong>example:</strong> |
| 203 | + * <p>acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ</p> |
| 204 | + */ |
| 205 | + public Builder secretArn(String secretArn) { |
| 206 | + this.putQueryParameter("SecretArn", secretArn); |
| 207 | + this.secretArn = secretArn; |
| 208 | + return this; |
| 209 | + } |
| 210 | + |
| 211 | + @Override |
| 212 | + public GetStatementResultRequest build() { |
| 213 | + return new GetStatementResultRequest(this); |
| 214 | + } |
| 215 | + |
| 216 | + } |
| 217 | + |
| 218 | +} |
0 commit comments