|
| 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.schedulerx2.model.v20190430; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import com.aliyuncs.http.ProtocolType; |
| 19 | +import com.aliyuncs.http.MethodType; |
| 20 | +import com.aliyuncs.schedulerx2.Endpoint; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class ReadSchedulerxDesignateInfoRequest extends RpcAcsRequest<ReadSchedulerxDesignateInfoResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private String namespaceSource; |
| 30 | + |
| 31 | + private String groupId; |
| 32 | + |
| 33 | + private Long jobId; |
| 34 | + |
| 35 | + private String namespace; |
| 36 | + public ReadSchedulerxDesignateInfoRequest() { |
| 37 | + super("schedulerx2", "2019-04-30", "ReadSchedulerxDesignateInfo", "schedulerx2"); |
| 38 | + setProtocol(ProtocolType.HTTPS); |
| 39 | + setMethod(MethodType.POST); |
| 40 | + try { |
| 41 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 42 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 43 | + } catch (Exception e) {} |
| 44 | + } |
| 45 | + |
| 46 | + public String getNamespaceSource() { |
| 47 | + return this.namespaceSource; |
| 48 | + } |
| 49 | + |
| 50 | + public void setNamespaceSource(String namespaceSource) { |
| 51 | + this.namespaceSource = namespaceSource; |
| 52 | + if(namespaceSource != null){ |
| 53 | + putQueryParameter("NamespaceSource", namespaceSource); |
| 54 | + } |
| 55 | + } |
| 56 | + |
| 57 | + public String getGroupId() { |
| 58 | + return this.groupId; |
| 59 | + } |
| 60 | + |
| 61 | + public void setGroupId(String groupId) { |
| 62 | + this.groupId = groupId; |
| 63 | + if(groupId != null){ |
| 64 | + putQueryParameter("GroupId", groupId); |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + public Long getJobId() { |
| 69 | + return this.jobId; |
| 70 | + } |
| 71 | + |
| 72 | + public void setJobId(Long jobId) { |
| 73 | + this.jobId = jobId; |
| 74 | + if(jobId != null){ |
| 75 | + putQueryParameter("JobId", jobId.toString()); |
| 76 | + } |
| 77 | + } |
| 78 | + |
| 79 | + public String getNamespace() { |
| 80 | + return this.namespace; |
| 81 | + } |
| 82 | + |
| 83 | + public void setNamespace(String namespace) { |
| 84 | + this.namespace = namespace; |
| 85 | + if(namespace != null){ |
| 86 | + putQueryParameter("Namespace", namespace); |
| 87 | + } |
| 88 | + } |
| 89 | + |
| 90 | + @Override |
| 91 | + public Class<ReadSchedulerxDesignateInfoResponse> getResponseClass() { |
| 92 | + return ReadSchedulerxDesignateInfoResponse.class; |
| 93 | + } |
| 94 | + |
| 95 | +} |
0 commit comments