|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * You may obtain a copy of the License at |
| 5 | + * |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software |
| 9 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + * See the License for the specific language governing permissions and |
| 12 | + * limitations under the License. |
| 13 | + */ |
| 14 | + |
| 15 | +package com.aliyuncs.eds_user.model.v20210308; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import com.aliyuncs.http.MethodType; |
| 19 | +import com.aliyuncs.eds_user.Endpoint; |
| 20 | + |
| 21 | +/** |
| 22 | + * @author auto create |
| 23 | + * @version |
| 24 | + */ |
| 25 | +public class CreateResourceGroupRequest extends RpcAcsRequest<CreateResourceGroupResponse> { |
| 26 | + |
| 27 | + |
| 28 | + private String resourceGroupName; |
| 29 | + |
| 30 | + private String platform; |
| 31 | + |
| 32 | + private Long isResourceGroupWithOfficeSite; |
| 33 | + public CreateResourceGroupRequest() { |
| 34 | + super("eds-user", "2021-03-08", "CreateResourceGroup", "eds-user"); |
| 35 | + setMethod(MethodType.POST); |
| 36 | + try { |
| 37 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 38 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 39 | + } catch (Exception e) {} |
| 40 | + } |
| 41 | + |
| 42 | + public String getResourceGroupName() { |
| 43 | + return this.resourceGroupName; |
| 44 | + } |
| 45 | + |
| 46 | + public void setResourceGroupName(String resourceGroupName) { |
| 47 | + this.resourceGroupName = resourceGroupName; |
| 48 | + if(resourceGroupName != null){ |
| 49 | + putQueryParameter("ResourceGroupName", resourceGroupName); |
| 50 | + } |
| 51 | + } |
| 52 | + |
| 53 | + public String getPlatform() { |
| 54 | + return this.platform; |
| 55 | + } |
| 56 | + |
| 57 | + public void setPlatform(String platform) { |
| 58 | + this.platform = platform; |
| 59 | + if(platform != null){ |
| 60 | + putQueryParameter("Platform", platform); |
| 61 | + } |
| 62 | + } |
| 63 | + |
| 64 | + public Long getIsResourceGroupWithOfficeSite() { |
| 65 | + return this.isResourceGroupWithOfficeSite; |
| 66 | + } |
| 67 | + |
| 68 | + public void setIsResourceGroupWithOfficeSite(Long isResourceGroupWithOfficeSite) { |
| 69 | + this.isResourceGroupWithOfficeSite = isResourceGroupWithOfficeSite; |
| 70 | + if(isResourceGroupWithOfficeSite != null){ |
| 71 | + putQueryParameter("IsResourceGroupWithOfficeSite", isResourceGroupWithOfficeSite.toString()); |
| 72 | + } |
| 73 | + } |
| 74 | + |
| 75 | + @Override |
| 76 | + public Class<CreateResourceGroupResponse> getResponseClass() { |
| 77 | + return CreateResourceGroupResponse.class; |
| 78 | + } |
| 79 | + |
| 80 | +} |
0 commit comments