|
| 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.ecd.model.v20200930; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import java.util.List; |
| 19 | +import com.aliyuncs.http.MethodType; |
| 20 | +import com.aliyuncs.ecd.Endpoint; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class CreateAndBindNasFileSystemRequest extends RpcAcsRequest<CreateAndBindNasFileSystemResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private String officeSiteId; |
| 30 | + |
| 31 | + private List<String> endUserIdss; |
| 32 | + |
| 33 | + private String description; |
| 34 | + |
| 35 | + private String storageType; |
| 36 | + |
| 37 | + private Integer encryptType; |
| 38 | + |
| 39 | + private String desktopGroupId; |
| 40 | + |
| 41 | + private String fileSystemName; |
| 42 | + public CreateAndBindNasFileSystemRequest() { |
| 43 | + super("ecd", "2020-09-30", "CreateAndBindNasFileSystem"); |
| 44 | + setMethod(MethodType.POST); |
| 45 | + try { |
| 46 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 47 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 48 | + } catch (Exception e) {} |
| 49 | + } |
| 50 | + |
| 51 | + public String getOfficeSiteId() { |
| 52 | + return this.officeSiteId; |
| 53 | + } |
| 54 | + |
| 55 | + public void setOfficeSiteId(String officeSiteId) { |
| 56 | + this.officeSiteId = officeSiteId; |
| 57 | + if(officeSiteId != null){ |
| 58 | + putQueryParameter("OfficeSiteId", officeSiteId); |
| 59 | + } |
| 60 | + } |
| 61 | + |
| 62 | + public List<String> getEndUserIdss() { |
| 63 | + return this.endUserIdss; |
| 64 | + } |
| 65 | + |
| 66 | + public void setEndUserIdss(List<String> endUserIdss) { |
| 67 | + this.endUserIdss = endUserIdss; |
| 68 | + if (endUserIdss != null) { |
| 69 | + for (int i = 0; i < endUserIdss.size(); i++) { |
| 70 | + putQueryParameter("EndUserIds." + (i + 1) , endUserIdss.get(i)); |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | + |
| 75 | + public String getDescription() { |
| 76 | + return this.description; |
| 77 | + } |
| 78 | + |
| 79 | + public void setDescription(String description) { |
| 80 | + this.description = description; |
| 81 | + if(description != null){ |
| 82 | + putQueryParameter("Description", description); |
| 83 | + } |
| 84 | + } |
| 85 | + |
| 86 | + public String getStorageType() { |
| 87 | + return this.storageType; |
| 88 | + } |
| 89 | + |
| 90 | + public void setStorageType(String storageType) { |
| 91 | + this.storageType = storageType; |
| 92 | + if(storageType != null){ |
| 93 | + putQueryParameter("StorageType", storageType); |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + public Integer getEncryptType() { |
| 98 | + return this.encryptType; |
| 99 | + } |
| 100 | + |
| 101 | + public void setEncryptType(Integer encryptType) { |
| 102 | + this.encryptType = encryptType; |
| 103 | + if(encryptType != null){ |
| 104 | + putQueryParameter("EncryptType", encryptType.toString()); |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + public String getDesktopGroupId() { |
| 109 | + return this.desktopGroupId; |
| 110 | + } |
| 111 | + |
| 112 | + public void setDesktopGroupId(String desktopGroupId) { |
| 113 | + this.desktopGroupId = desktopGroupId; |
| 114 | + if(desktopGroupId != null){ |
| 115 | + putQueryParameter("DesktopGroupId", desktopGroupId); |
| 116 | + } |
| 117 | + } |
| 118 | + |
| 119 | + public String getFileSystemName() { |
| 120 | + return this.fileSystemName; |
| 121 | + } |
| 122 | + |
| 123 | + public void setFileSystemName(String fileSystemName) { |
| 124 | + this.fileSystemName = fileSystemName; |
| 125 | + if(fileSystemName != null){ |
| 126 | + putQueryParameter("FileSystemName", fileSystemName); |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + @Override |
| 131 | + public Class<CreateAndBindNasFileSystemResponse> getResponseClass() { |
| 132 | + return CreateAndBindNasFileSystemResponse.class; |
| 133 | + } |
| 134 | + |
| 135 | +} |
0 commit comments