|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.eiam20211201.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 GetAuthorizationServerRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>GetAuthorizationServerRequest</p> |
| 18 | + */ |
| 19 | +public class GetAuthorizationServerRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Host |
| 21 | + @com.aliyun.core.annotation.NameInMap("RegionId") |
| 22 | + private String regionId; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Query |
| 25 | + @com.aliyun.core.annotation.NameInMap("AuthorizationServerId") |
| 26 | + @com.aliyun.core.annotation.Validation(required = true, maxLength = 64) |
| 27 | + private String authorizationServerId; |
| 28 | + |
| 29 | + @com.aliyun.core.annotation.Query |
| 30 | + @com.aliyun.core.annotation.NameInMap("InstanceId") |
| 31 | + @com.aliyun.core.annotation.Validation(required = true, maxLength = 64) |
| 32 | + private String instanceId; |
| 33 | + |
| 34 | + private GetAuthorizationServerRequest(Builder builder) { |
| 35 | + super(builder); |
| 36 | + this.regionId = builder.regionId; |
| 37 | + this.authorizationServerId = builder.authorizationServerId; |
| 38 | + this.instanceId = builder.instanceId; |
| 39 | + } |
| 40 | + |
| 41 | + public static Builder builder() { |
| 42 | + return new Builder(); |
| 43 | + } |
| 44 | + |
| 45 | + public static GetAuthorizationServerRequest create() { |
| 46 | + return builder().build(); |
| 47 | + } |
| 48 | + |
| 49 | +@Override |
| 50 | + public Builder toBuilder() { |
| 51 | + return new Builder(this); |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * @return regionId |
| 56 | + */ |
| 57 | + public String getRegionId() { |
| 58 | + return this.regionId; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * @return authorizationServerId |
| 63 | + */ |
| 64 | + public String getAuthorizationServerId() { |
| 65 | + return this.authorizationServerId; |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * @return instanceId |
| 70 | + */ |
| 71 | + public String getInstanceId() { |
| 72 | + return this.instanceId; |
| 73 | + } |
| 74 | + |
| 75 | + public static final class Builder extends Request.Builder<GetAuthorizationServerRequest, Builder> { |
| 76 | + private String regionId; |
| 77 | + private String authorizationServerId; |
| 78 | + private String instanceId; |
| 79 | + |
| 80 | + private Builder() { |
| 81 | + super(); |
| 82 | + } |
| 83 | + |
| 84 | + private Builder(GetAuthorizationServerRequest request) { |
| 85 | + super(request); |
| 86 | + this.regionId = request.regionId; |
| 87 | + this.authorizationServerId = request.authorizationServerId; |
| 88 | + this.instanceId = request.instanceId; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * RegionId. |
| 93 | + */ |
| 94 | + public Builder regionId(String regionId) { |
| 95 | + this.putHostParameter("RegionId", regionId); |
| 96 | + this.regionId = regionId; |
| 97 | + return this; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * <p>IDaaS的授权服务器资源ID。</p> |
| 102 | + * <p>This parameter is required.</p> |
| 103 | + * |
| 104 | + * <strong>example:</strong> |
| 105 | + * <p>iauths_mkv7rgt4d7i4u7zqtzev2mxxxx</p> |
| 106 | + */ |
| 107 | + public Builder authorizationServerId(String authorizationServerId) { |
| 108 | + this.putQueryParameter("AuthorizationServerId", authorizationServerId); |
| 109 | + this.authorizationServerId = authorizationServerId; |
| 110 | + return this; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * <p>IDaaS EIAM实例的ID。</p> |
| 115 | + * <p>This parameter is required.</p> |
| 116 | + * |
| 117 | + * <strong>example:</strong> |
| 118 | + * <p>idaas_ue2jvisn35ea5lmthk267xxxxx</p> |
| 119 | + */ |
| 120 | + public Builder instanceId(String instanceId) { |
| 121 | + this.putQueryParameter("InstanceId", instanceId); |
| 122 | + this.instanceId = instanceId; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + @Override |
| 127 | + public GetAuthorizationServerRequest build() { |
| 128 | + return new GetAuthorizationServerRequest(this); |
| 129 | + } |
| 130 | + |
| 131 | + } |
| 132 | + |
| 133 | +} |
0 commit comments