index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListAsynJobsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListAsynJobsResponse;
import com.aliyuncs.alb.model.v20200616.ListAsynJobsResponse.Job;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAsynJobsResponseUnmarshaller {
public static ListAsynJobsResponse unmarshall(ListAsynJobsResponse listAsynJobsResponse, UnmarshallerContext _ctx) {
listAsynJobsResponse.setRequestId(_ctx.stringValue("ListAsynJobsResponse.RequestId"));
listAsynJobsResponse.setMaxResults(_ctx.longValue("ListAsynJobsResponse.MaxResults"));
listAsynJobsResponse.setNextToken(_ctx.stringValue("ListAsynJobsResponse.NextToken"));
listAsynJobsResponse.setTotalCount(_ctx.longValue("ListAsynJobsResponse.TotalCount"));
List<Job> jobs = new ArrayList<Job>();
for (int i = 0; i < _ctx.lengthValue("ListAsynJobsResponse.Jobs.Length"); i++) {
Job job = new Job();
job.setApiName(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].ApiName"));
job.setCreateTime(_ctx.longValue("ListAsynJobsResponse.Jobs["+ i +"].CreateTime"));
job.setErrorCode(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].ErrorCode"));
job.setErrorMessage(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].ErrorMessage"));
job.setId(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].Id"));
job.setModifyTime(_ctx.longValue("ListAsynJobsResponse.Jobs["+ i +"].ModifyTime"));
job.setOperateType(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].OperateType"));
job.setResourceId(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].ResourceId"));
job.setResourceType(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].ResourceType"));
job.setStatus(_ctx.stringValue("ListAsynJobsResponse.Jobs["+ i +"].Status"));
jobs.add(job);
}
listAsynJobsResponse.setJobs(jobs);
return listAsynJobsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListHealthCheckTemplatesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListHealthCheckTemplatesResponse;
import com.aliyuncs.alb.model.v20200616.ListHealthCheckTemplatesResponse.HealthCheckTemplate;
import com.aliyuncs.alb.model.v20200616.ListHealthCheckTemplatesResponse.HealthCheckTemplate.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListHealthCheckTemplatesResponseUnmarshaller {
public static ListHealthCheckTemplatesResponse unmarshall(ListHealthCheckTemplatesResponse listHealthCheckTemplatesResponse, UnmarshallerContext _ctx) {
listHealthCheckTemplatesResponse.setRequestId(_ctx.stringValue("ListHealthCheckTemplatesResponse.RequestId"));
listHealthCheckTemplatesResponse.setMaxResults(_ctx.integerValue("ListHealthCheckTemplatesResponse.MaxResults"));
listHealthCheckTemplatesResponse.setNextToken(_ctx.stringValue("ListHealthCheckTemplatesResponse.NextToken"));
listHealthCheckTemplatesResponse.setTotalCount(_ctx.integerValue("ListHealthCheckTemplatesResponse.TotalCount"));
List<HealthCheckTemplate> healthCheckTemplates = new ArrayList<HealthCheckTemplate>();
for (int i = 0; i < _ctx.lengthValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates.Length"); i++) {
HealthCheckTemplate healthCheckTemplate = new HealthCheckTemplate();
healthCheckTemplate.setHealthCheckConnectPort(_ctx.integerValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckConnectPort"));
healthCheckTemplate.setHealthCheckHost(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckHost"));
healthCheckTemplate.setHealthCheckHttpVersion(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckHttpVersion"));
healthCheckTemplate.setHealthCheckInterval(_ctx.integerValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckInterval"));
healthCheckTemplate.setHealthCheckMethod(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckMethod"));
healthCheckTemplate.setHealthCheckPath(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckPath"));
healthCheckTemplate.setHealthCheckProtocol(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckProtocol"));
healthCheckTemplate.setHealthCheckTemplateId(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckTemplateId"));
healthCheckTemplate.setHealthCheckTemplateName(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckTemplateName"));
healthCheckTemplate.setHealthCheckTimeout(_ctx.integerValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckTimeout"));
healthCheckTemplate.setHealthyThreshold(_ctx.integerValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthyThreshold"));
healthCheckTemplate.setUnhealthyThreshold(_ctx.integerValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].UnhealthyThreshold"));
healthCheckTemplate.setHealthCheckTcpFastCloseEnabled(_ctx.booleanValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckTcpFastCloseEnabled"));
healthCheckTemplate.setServiceManagedEnabled(_ctx.booleanValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].ServiceManagedEnabled"));
healthCheckTemplate.setServiceManagedMode(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].ServiceManagedMode"));
List<String> healthCheckHttpCodes = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckHttpCodes.Length"); j++) {
healthCheckHttpCodes.add(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckHttpCodes["+ j +"]"));
}
healthCheckTemplate.setHealthCheckHttpCodes(healthCheckHttpCodes);
List<String> healthCheckCodes = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckCodes.Length"); j++) {
healthCheckCodes.add(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].HealthCheckCodes["+ j +"]"));
}
healthCheckTemplate.setHealthCheckCodes(healthCheckCodes);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListHealthCheckTemplatesResponse.HealthCheckTemplates["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
healthCheckTemplate.setTags(tags);
healthCheckTemplates.add(healthCheckTemplate);
}
listHealthCheckTemplatesResponse.setHealthCheckTemplates(healthCheckTemplates);
return listHealthCheckTemplatesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListListenerCertificatesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListListenerCertificatesResponse;
import com.aliyuncs.alb.model.v20200616.ListListenerCertificatesResponse.CertificateModel;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListListenerCertificatesResponseUnmarshaller {
public static ListListenerCertificatesResponse unmarshall(ListListenerCertificatesResponse listListenerCertificatesResponse, UnmarshallerContext _ctx) {
listListenerCertificatesResponse.setRequestId(_ctx.stringValue("ListListenerCertificatesResponse.RequestId"));
listListenerCertificatesResponse.setMaxResults(_ctx.integerValue("ListListenerCertificatesResponse.MaxResults"));
listListenerCertificatesResponse.setNextToken(_ctx.stringValue("ListListenerCertificatesResponse.NextToken"));
listListenerCertificatesResponse.setTotalCount(_ctx.integerValue("ListListenerCertificatesResponse.TotalCount"));
List<CertificateModel> certificates = new ArrayList<CertificateModel>();
for (int i = 0; i < _ctx.lengthValue("ListListenerCertificatesResponse.Certificates.Length"); i++) {
CertificateModel certificateModel = new CertificateModel();
certificateModel.setCertificateId(_ctx.stringValue("ListListenerCertificatesResponse.Certificates["+ i +"].CertificateId"));
certificateModel.setIsDefault(_ctx.booleanValue("ListListenerCertificatesResponse.Certificates["+ i +"].IsDefault"));
certificateModel.setStatus(_ctx.stringValue("ListListenerCertificatesResponse.Certificates["+ i +"].Status"));
certificateModel.setCertificateType(_ctx.stringValue("ListListenerCertificatesResponse.Certificates["+ i +"].CertificateType"));
certificates.add(certificateModel);
}
listListenerCertificatesResponse.setCertificates(certificates);
return listListenerCertificatesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListListenersResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.AssociatedResource;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.DefaultAction;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.DefaultAction.ForwardGroupConfig;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.DefaultAction.ForwardGroupConfig.ServerGroupTuple;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.LogConfig;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.LogConfig.AccessLogTracingConfig;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.QuicConfig;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.Tag;
import com.aliyuncs.alb.model.v20200616.ListListenersResponse.Listener.XForwardedForConfig;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListListenersResponseUnmarshaller {
public static ListListenersResponse unmarshall(ListListenersResponse listListenersResponse, UnmarshallerContext _ctx) {
listListenersResponse.setRequestId(_ctx.stringValue("ListListenersResponse.RequestId"));
listListenersResponse.setMaxResults(_ctx.integerValue("ListListenersResponse.MaxResults"));
listListenersResponse.setNextToken(_ctx.stringValue("ListListenersResponse.NextToken"));
listListenersResponse.setTotalCount(_ctx.integerValue("ListListenersResponse.TotalCount"));
List<Listener> listeners = new ArrayList<Listener>();
for (int i = 0; i < _ctx.lengthValue("ListListenersResponse.Listeners.Length"); i++) {
Listener listener = new Listener();
listener.setGzipEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].GzipEnabled"));
listener.setHttp2Enabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].Http2Enabled"));
listener.setIdleTimeout(_ctx.integerValue("ListListenersResponse.Listeners["+ i +"].IdleTimeout"));
listener.setListenerDescription(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].ListenerDescription"));
listener.setListenerId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].ListenerId"));
listener.setListenerPort(_ctx.integerValue("ListListenersResponse.Listeners["+ i +"].ListenerPort"));
listener.setListenerProtocol(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].ListenerProtocol"));
listener.setListenerStatus(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].ListenerStatus"));
listener.setLoadBalancerId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].LoadBalancerId"));
listener.setServiceManagedEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].ServiceManagedEnabled"));
listener.setServiceManagedMode(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].ServiceManagedMode"));
listener.setRequestTimeout(_ctx.integerValue("ListListenersResponse.Listeners["+ i +"].RequestTimeout"));
listener.setSecurityPolicyId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].SecurityPolicyId"));
LogConfig logConfig = new LogConfig();
logConfig.setAccessLogRecordCustomizedHeadersEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].LogConfig.AccessLogRecordCustomizedHeadersEnabled"));
AccessLogTracingConfig accessLogTracingConfig = new AccessLogTracingConfig();
accessLogTracingConfig.setTracingEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].LogConfig.AccessLogTracingConfig.TracingEnabled"));
accessLogTracingConfig.setTracingSample(_ctx.integerValue("ListListenersResponse.Listeners["+ i +"].LogConfig.AccessLogTracingConfig.TracingSample"));
accessLogTracingConfig.setTracingType(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].LogConfig.AccessLogTracingConfig.TracingType"));
logConfig.setAccessLogTracingConfig(accessLogTracingConfig);
listener.setLogConfig(logConfig);
QuicConfig quicConfig = new QuicConfig();
quicConfig.setQuicListenerId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].QuicConfig.QuicListenerId"));
quicConfig.setQuicUpgradeEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].QuicConfig.QuicUpgradeEnabled"));
listener.setQuicConfig(quicConfig);
XForwardedForConfig xForwardedForConfig = new XForwardedForConfig();
xForwardedForConfig.setXForwardedForClientCertClientVerifyAlias(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertClientVerifyAlias"));
xForwardedForConfig.setXForwardedForClientCertClientVerifyEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertClientVerifyEnabled"));
xForwardedForConfig.setXForwardedForClientCertFingerprintAlias(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertFingerprintAlias"));
xForwardedForConfig.setXForwardedForClientCertFingerprintEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertFingerprintEnabled"));
xForwardedForConfig.setXForwardedForClientCertIssuerDNAlias(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertIssuerDNAlias"));
xForwardedForConfig.setXForwardedForClientCertIssuerDNEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertIssuerDNEnabled"));
xForwardedForConfig.setXForwardedForClientCertSubjectDNAlias(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertSubjectDNAlias"));
xForwardedForConfig.setXForwardedForClientCertSubjectDNEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientCertSubjectDNEnabled"));
xForwardedForConfig.setXForwardedForClientSrcPortEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientSrcPortEnabled"));
xForwardedForConfig.setXForwardedForEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForEnabled"));
xForwardedForConfig.setXForwardedForProcessingMode(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForProcessingMode"));
xForwardedForConfig.setXForwardedForProtoEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForProtoEnabled"));
xForwardedForConfig.setXForwardedForSLBIdEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForSLBIdEnabled"));
xForwardedForConfig.setXForwardedForSLBPortEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForSLBPortEnabled"));
xForwardedForConfig.setXForwardedForClientSourceIpsEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientSourceIpsEnabled"));
xForwardedForConfig.setXForwardedForClientSourceIpsTrusted(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForClientSourceIpsTrusted"));
xForwardedForConfig.setXForwardedForHostEnabled(_ctx.booleanValue("ListListenersResponse.Listeners["+ i +"].XForwardedForConfig.XForwardedForHostEnabled"));
listener.setXForwardedForConfig(xForwardedForConfig);
List<DefaultAction> defaultActions = new ArrayList<DefaultAction>();
for (int j = 0; j < _ctx.lengthValue("ListListenersResponse.Listeners["+ i +"].DefaultActions.Length"); j++) {
DefaultAction defaultAction = new DefaultAction();
defaultAction.setType(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].DefaultActions["+ j +"].Type"));
ForwardGroupConfig forwardGroupConfig = new ForwardGroupConfig();
List<ServerGroupTuple> serverGroupTuples = new ArrayList<ServerGroupTuple>();
for (int k = 0; k < _ctx.lengthValue("ListListenersResponse.Listeners["+ i +"].DefaultActions["+ j +"].ForwardGroupConfig.ServerGroupTuples.Length"); k++) {
ServerGroupTuple serverGroupTuple = new ServerGroupTuple();
serverGroupTuple.setServerGroupId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].DefaultActions["+ j +"].ForwardGroupConfig.ServerGroupTuples["+ k +"].ServerGroupId"));
serverGroupTuples.add(serverGroupTuple);
}
forwardGroupConfig.setServerGroupTuples(serverGroupTuples);
defaultAction.setForwardGroupConfig(forwardGroupConfig);
defaultActions.add(defaultAction);
}
listener.setDefaultActions(defaultActions);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListListenersResponse.Listeners["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
listener.setTags(tags);
List<AssociatedResource> associatedResources = new ArrayList<AssociatedResource>();
for (int j = 0; j < _ctx.lengthValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources.Length"); j++) {
AssociatedResource associatedResource = new AssociatedResource();
associatedResource.setAssociatedResourceType(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources["+ j +"].AssociatedResourceType"));
associatedResource.setAssociatedResourceId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources["+ j +"].AssociatedResourceId"));
associatedResource.setPolicyId(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources["+ j +"].PolicyId"));
associatedResource.setStatus(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources["+ j +"].Status"));
associatedResource.setAssociatedMode(_ctx.stringValue("ListListenersResponse.Listeners["+ i +"].AssociatedResources["+ j +"].AssociatedMode"));
associatedResources.add(associatedResource);
}
listener.setAssociatedResources(associatedResources);
listeners.add(listener);
}
listListenersResponse.setListeners(listeners);
return listListenersResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListLoadBalancersResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.AccessLogConfig;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.AssociatedResource;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.DeletionProtectionConfig;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.LoadBalancerBillingConfig;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.LoadBalancerOperationLock;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.ModificationProtectionConfig;
import com.aliyuncs.alb.model.v20200616.ListLoadBalancersResponse.LoadBalancer.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListLoadBalancersResponseUnmarshaller {
public static ListLoadBalancersResponse unmarshall(ListLoadBalancersResponse listLoadBalancersResponse, UnmarshallerContext _ctx) {
listLoadBalancersResponse.setRequestId(_ctx.stringValue("ListLoadBalancersResponse.RequestId"));
listLoadBalancersResponse.setMaxResults(_ctx.integerValue("ListLoadBalancersResponse.MaxResults"));
listLoadBalancersResponse.setNextToken(_ctx.stringValue("ListLoadBalancersResponse.NextToken"));
listLoadBalancersResponse.setTotalCount(_ctx.integerValue("ListLoadBalancersResponse.TotalCount"));
List<LoadBalancer> loadBalancers = new ArrayList<LoadBalancer>();
for (int i = 0; i < _ctx.lengthValue("ListLoadBalancersResponse.LoadBalancers.Length"); i++) {
LoadBalancer loadBalancer = new LoadBalancer();
loadBalancer.setAddressAllocatedMode(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AddressAllocatedMode"));
loadBalancer.setAddressType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AddressType"));
loadBalancer.setBandwidthCapacity(_ctx.integerValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].BandwidthCapacity"));
loadBalancer.setBandwidthPackageId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].BandwidthPackageId"));
loadBalancer.setCreateTime(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].CreateTime"));
loadBalancer.setDNSName(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].DNSName"));
loadBalancer.setServiceManagedEnabled(_ctx.booleanValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ServiceManagedEnabled"));
loadBalancer.setServiceManagedMode(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ServiceManagedMode"));
loadBalancer.setLoadBalancerBussinessStatus(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerBussinessStatus"));
loadBalancer.setLoadBalancerEdition(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerEdition"));
loadBalancer.setLoadBalancerId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerId"));
loadBalancer.setLoadBalancerName(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerName"));
loadBalancer.setLoadBalancerStatus(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerStatus"));
loadBalancer.setResourceGroupId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ResourceGroupId"));
loadBalancer.setVpcId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].VpcId"));
loadBalancer.setConfigManagedEnabled(_ctx.booleanValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ConfigManagedEnabled"));
loadBalancer.setAddressIpVersion(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AddressIpVersion"));
loadBalancer.setIpv6AddressType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].Ipv6AddressType"));
AccessLogConfig accessLogConfig = new AccessLogConfig();
accessLogConfig.setLogProject(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AccessLogConfig.LogProject"));
accessLogConfig.setLogStore(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AccessLogConfig.LogStore"));
loadBalancer.setAccessLogConfig(accessLogConfig);
DeletionProtectionConfig deletionProtectionConfig = new DeletionProtectionConfig();
deletionProtectionConfig.setEnabled(_ctx.booleanValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].DeletionProtectionConfig.Enabled"));
deletionProtectionConfig.setEnabledTime(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].DeletionProtectionConfig.EnabledTime"));
loadBalancer.setDeletionProtectionConfig(deletionProtectionConfig);
LoadBalancerBillingConfig loadBalancerBillingConfig = new LoadBalancerBillingConfig();
loadBalancerBillingConfig.setInternetBandwidth(_ctx.integerValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerBillingConfig.InternetBandwidth"));
loadBalancerBillingConfig.setInternetChargeType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerBillingConfig.InternetChargeType"));
loadBalancerBillingConfig.setPayType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerBillingConfig.PayType"));
loadBalancer.setLoadBalancerBillingConfig(loadBalancerBillingConfig);
ModificationProtectionConfig modificationProtectionConfig = new ModificationProtectionConfig();
modificationProtectionConfig.setReason(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ModificationProtectionConfig.Reason"));
modificationProtectionConfig.setStatus(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].ModificationProtectionConfig.Status"));
loadBalancer.setModificationProtectionConfig(modificationProtectionConfig);
List<LoadBalancerOperationLock> loadBalancerOperationLocks = new ArrayList<LoadBalancerOperationLock>();
for (int j = 0; j < _ctx.lengthValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerOperationLocks.Length"); j++) {
LoadBalancerOperationLock loadBalancerOperationLock = new LoadBalancerOperationLock();
loadBalancerOperationLock.setLockReason(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerOperationLocks["+ j +"].LockReason"));
loadBalancerOperationLock.setLockType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].LoadBalancerOperationLocks["+ j +"].LockType"));
loadBalancerOperationLocks.add(loadBalancerOperationLock);
}
loadBalancer.setLoadBalancerOperationLocks(loadBalancerOperationLocks);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
loadBalancer.setTags(tags);
List<AssociatedResource> associatedResources = new ArrayList<AssociatedResource>();
for (int j = 0; j < _ctx.lengthValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources.Length"); j++) {
AssociatedResource associatedResource = new AssociatedResource();
associatedResource.setAssociatedResourceType(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources["+ j +"].AssociatedResourceType"));
associatedResource.setAssociatedResourceId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources["+ j +"].AssociatedResourceId"));
associatedResource.setPolicyId(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources["+ j +"].PolicyId"));
associatedResource.setStatus(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources["+ j +"].Status"));
associatedResource.setAssociatedMode(_ctx.stringValue("ListLoadBalancersResponse.LoadBalancers["+ i +"].AssociatedResources["+ j +"].AssociatedMode"));
associatedResources.add(associatedResource);
}
loadBalancer.setAssociatedResources(associatedResources);
loadBalancers.add(loadBalancer);
}
listLoadBalancersResponse.setLoadBalancers(loadBalancers);
return listLoadBalancersResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListRulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.CorsConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.FixedResponseConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.ForwardGroupConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.ForwardGroupConfig.ServerGroupStickySession;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.ForwardGroupConfig.ServerGroupTuple;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.InsertHeaderConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.RedirectConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.RemoveHeaderConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.RewriteConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.TrafficLimitConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.TrafficMirrorConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.TrafficMirrorConfig.MirrorGroupConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Action.TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuple2;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.CookieConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.CookieConfig.Value;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.HeaderConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.HostConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.MethodConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.PathConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.QueryStringConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.QueryStringConfig.Value8;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.ResponseHeaderConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.ResponseStatusCodeConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Condition.SourceIpConfig;
import com.aliyuncs.alb.model.v20200616.ListRulesResponse.Rule.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListRulesResponseUnmarshaller {
public static ListRulesResponse unmarshall(ListRulesResponse listRulesResponse, UnmarshallerContext _ctx) {
listRulesResponse.setRequestId(_ctx.stringValue("ListRulesResponse.RequestId"));
listRulesResponse.setMaxResults(_ctx.integerValue("ListRulesResponse.MaxResults"));
listRulesResponse.setNextToken(_ctx.stringValue("ListRulesResponse.NextToken"));
listRulesResponse.setTotalCount(_ctx.integerValue("ListRulesResponse.TotalCount"));
List<Rule> rules = new ArrayList<Rule>();
for (int i = 0; i < _ctx.lengthValue("ListRulesResponse.Rules.Length"); i++) {
Rule rule = new Rule();
rule.setListenerId(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].ListenerId"));
rule.setLoadBalancerId(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].LoadBalancerId"));
rule.setPriority(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].Priority"));
rule.setRuleId(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleId"));
rule.setRuleName(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleName"));
rule.setRuleStatus(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleStatus"));
rule.setDirection(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].Direction"));
rule.setServiceManagedEnabled(_ctx.booleanValue("ListRulesResponse.Rules["+ i +"].ServiceManagedEnabled"));
rule.setServiceManagedMode(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].ServiceManagedMode"));
List<Action> ruleActions = new ArrayList<Action>();
for (int j = 0; j < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions.Length"); j++) {
Action action = new Action();
action.setOrder(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].Order"));
action.setType(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].Type"));
FixedResponseConfig fixedResponseConfig = new FixedResponseConfig();
fixedResponseConfig.setContent(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].FixedResponseConfig.Content"));
fixedResponseConfig.setContentType(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].FixedResponseConfig.ContentType"));
fixedResponseConfig.setHttpCode(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].FixedResponseConfig.HttpCode"));
action.setFixedResponseConfig(fixedResponseConfig);
ForwardGroupConfig forwardGroupConfig = new ForwardGroupConfig();
ServerGroupStickySession serverGroupStickySession = new ServerGroupStickySession();
serverGroupStickySession.setEnabled(_ctx.booleanValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].ForwardGroupConfig.ServerGroupStickySession.Enabled"));
serverGroupStickySession.setTimeout(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].ForwardGroupConfig.ServerGroupStickySession.Timeout"));
forwardGroupConfig.setServerGroupStickySession(serverGroupStickySession);
List<ServerGroupTuple> serverGroupTuples = new ArrayList<ServerGroupTuple>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].ForwardGroupConfig.ServerGroupTuples.Length"); k++) {
ServerGroupTuple serverGroupTuple = new ServerGroupTuple();
serverGroupTuple.setServerGroupId(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].ForwardGroupConfig.ServerGroupTuples["+ k +"].ServerGroupId"));
serverGroupTuple.setWeight(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].ForwardGroupConfig.ServerGroupTuples["+ k +"].Weight"));
serverGroupTuples.add(serverGroupTuple);
}
forwardGroupConfig.setServerGroupTuples(serverGroupTuples);
action.setForwardGroupConfig(forwardGroupConfig);
InsertHeaderConfig insertHeaderConfig = new InsertHeaderConfig();
insertHeaderConfig.setCoverEnabled(_ctx.booleanValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].InsertHeaderConfig.CoverEnabled"));
insertHeaderConfig.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].InsertHeaderConfig.Key"));
insertHeaderConfig.setValue(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].InsertHeaderConfig.Value"));
insertHeaderConfig.setValueType(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].InsertHeaderConfig.ValueType"));
action.setInsertHeaderConfig(insertHeaderConfig);
RedirectConfig redirectConfig = new RedirectConfig();
redirectConfig.setHost(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.Host"));
redirectConfig.setHttpCode(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.HttpCode"));
redirectConfig.setPath(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.Path"));
redirectConfig.setPort(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.Port"));
redirectConfig.setBizProtocol(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.Protocol"));
redirectConfig.setQuery(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RedirectConfig.Query"));
action.setRedirectConfig(redirectConfig);
RemoveHeaderConfig removeHeaderConfig = new RemoveHeaderConfig();
removeHeaderConfig.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RemoveHeaderConfig.Key"));
action.setRemoveHeaderConfig(removeHeaderConfig);
RewriteConfig rewriteConfig = new RewriteConfig();
rewriteConfig.setHost(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RewriteConfig.Host"));
rewriteConfig.setPath(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RewriteConfig.Path"));
rewriteConfig.setQuery(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].RewriteConfig.Query"));
action.setRewriteConfig(rewriteConfig);
TrafficMirrorConfig trafficMirrorConfig = new TrafficMirrorConfig();
trafficMirrorConfig.setTargetType(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficMirrorConfig.TargetType"));
MirrorGroupConfig mirrorGroupConfig = new MirrorGroupConfig();
List<ServerGroupTuple2> serverGroupTuples1 = new ArrayList<ServerGroupTuple2>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples.Length"); k++) {
ServerGroupTuple2 serverGroupTuple2 = new ServerGroupTuple2();
serverGroupTuple2.setServerGroupId(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples["+ k +"].ServerGroupId"));
serverGroupTuple2.setWeight(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples["+ k +"].Weight"));
serverGroupTuples1.add(serverGroupTuple2);
}
mirrorGroupConfig.setServerGroupTuples1(serverGroupTuples1);
trafficMirrorConfig.setMirrorGroupConfig(mirrorGroupConfig);
action.setTrafficMirrorConfig(trafficMirrorConfig);
TrafficLimitConfig trafficLimitConfig = new TrafficLimitConfig();
trafficLimitConfig.setQPS(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficLimitConfig.QPS"));
trafficLimitConfig.setPerIpQps(_ctx.integerValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].TrafficLimitConfig.PerIpQps"));
action.setTrafficLimitConfig(trafficLimitConfig);
CorsConfig corsConfig = new CorsConfig();
corsConfig.setAllowCredentials(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowCredentials"));
corsConfig.setMaxAge(_ctx.longValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.MaxAge"));
List<String> allowOrigin = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowOrigin.Length"); k++) {
allowOrigin.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowOrigin["+ k +"]"));
}
corsConfig.setAllowOrigin(allowOrigin);
List<String> allowMethods = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowMethods.Length"); k++) {
allowMethods.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowMethods["+ k +"]"));
}
corsConfig.setAllowMethods(allowMethods);
List<String> allowHeaders = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowHeaders.Length"); k++) {
allowHeaders.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.AllowHeaders["+ k +"]"));
}
corsConfig.setAllowHeaders(allowHeaders);
List<String> exposeHeaders = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.ExposeHeaders.Length"); k++) {
exposeHeaders.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleActions["+ j +"].CorsConfig.ExposeHeaders["+ k +"]"));
}
corsConfig.setExposeHeaders(exposeHeaders);
action.setCorsConfig(corsConfig);
ruleActions.add(action);
}
rule.setRuleActions(ruleActions);
List<Condition> ruleConditions = new ArrayList<Condition>();
for (int j = 0; j < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions.Length"); j++) {
Condition condition = new Condition();
condition.setType(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].Type"));
CookieConfig cookieConfig = new CookieConfig();
List<Value> values = new ArrayList<Value>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].CookieConfig.Values.Length"); k++) {
Value value = new Value();
value.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].CookieConfig.Values["+ k +"].Key"));
value.setValue(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].CookieConfig.Values["+ k +"].Value"));
values.add(value);
}
cookieConfig.setValues(values);
condition.setCookieConfig(cookieConfig);
HeaderConfig headerConfig = new HeaderConfig();
headerConfig.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].HeaderConfig.Key"));
List<String> values3 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].HeaderConfig.Values.Length"); k++) {
values3.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].HeaderConfig.Values["+ k +"]"));
}
headerConfig.setValues3(values3);
condition.setHeaderConfig(headerConfig);
HostConfig hostConfig = new HostConfig();
List<String> values4 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].HostConfig.Values.Length"); k++) {
values4.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].HostConfig.Values["+ k +"]"));
}
hostConfig.setValues4(values4);
condition.setHostConfig(hostConfig);
MethodConfig methodConfig = new MethodConfig();
List<String> values5 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].MethodConfig.Values.Length"); k++) {
values5.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].MethodConfig.Values["+ k +"]"));
}
methodConfig.setValues5(values5);
condition.setMethodConfig(methodConfig);
PathConfig pathConfig = new PathConfig();
List<String> values6 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].PathConfig.Values.Length"); k++) {
values6.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].PathConfig.Values["+ k +"]"));
}
pathConfig.setValues6(values6);
condition.setPathConfig(pathConfig);
QueryStringConfig queryStringConfig = new QueryStringConfig();
List<Value8> values7 = new ArrayList<Value8>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].QueryStringConfig.Values.Length"); k++) {
Value8 value8 = new Value8();
value8.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].QueryStringConfig.Values["+ k +"].Key"));
value8.setValue(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].QueryStringConfig.Values["+ k +"].Value"));
values7.add(value8);
}
queryStringConfig.setValues7(values7);
condition.setQueryStringConfig(queryStringConfig);
SourceIpConfig sourceIpConfig = new SourceIpConfig();
List<String> values9 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].SourceIpConfig.Values.Length"); k++) {
values9.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].SourceIpConfig.Values["+ k +"]"));
}
sourceIpConfig.setValues9(values9);
condition.setSourceIpConfig(sourceIpConfig);
ResponseStatusCodeConfig responseStatusCodeConfig = new ResponseStatusCodeConfig();
List<String> values10 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].ResponseStatusCodeConfig.Values.Length"); k++) {
values10.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].ResponseStatusCodeConfig.Values["+ k +"]"));
}
responseStatusCodeConfig.setValues10(values10);
condition.setResponseStatusCodeConfig(responseStatusCodeConfig);
ResponseHeaderConfig responseHeaderConfig = new ResponseHeaderConfig();
responseHeaderConfig.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].ResponseHeaderConfig.Key"));
List<String> values11 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].ResponseHeaderConfig.Values.Length"); k++) {
values11.add(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].RuleConditions["+ j +"].ResponseHeaderConfig.Values["+ k +"]"));
}
responseHeaderConfig.setValues11(values11);
condition.setResponseHeaderConfig(responseHeaderConfig);
ruleConditions.add(condition);
}
rule.setRuleConditions(ruleConditions);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListRulesResponse.Rules["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListRulesResponse.Rules["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
rule.setTags(tags);
rules.add(rule);
}
listRulesResponse.setRules(rules);
return listRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListSecurityPoliciesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListSecurityPoliciesResponse;
import com.aliyuncs.alb.model.v20200616.ListSecurityPoliciesResponse.SecurityPolicy;
import com.aliyuncs.alb.model.v20200616.ListSecurityPoliciesResponse.SecurityPolicy.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSecurityPoliciesResponseUnmarshaller {
public static ListSecurityPoliciesResponse unmarshall(ListSecurityPoliciesResponse listSecurityPoliciesResponse, UnmarshallerContext _ctx) {
listSecurityPoliciesResponse.setRequestId(_ctx.stringValue("ListSecurityPoliciesResponse.RequestId"));
listSecurityPoliciesResponse.setMaxResults(_ctx.integerValue("ListSecurityPoliciesResponse.MaxResults"));
listSecurityPoliciesResponse.setNextToken(_ctx.stringValue("ListSecurityPoliciesResponse.NextToken"));
listSecurityPoliciesResponse.setTotalCount(_ctx.integerValue("ListSecurityPoliciesResponse.TotalCount"));
List<SecurityPolicy> securityPolicies = new ArrayList<SecurityPolicy>();
for (int i = 0; i < _ctx.lengthValue("ListSecurityPoliciesResponse.SecurityPolicies.Length"); i++) {
SecurityPolicy securityPolicy = new SecurityPolicy();
securityPolicy.setResourceGroupId(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].ResourceGroupId"));
securityPolicy.setSecurityPolicyId(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].SecurityPolicyId"));
securityPolicy.setSecurityPolicyName(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].SecurityPolicyName"));
securityPolicy.setSecurityPolicyStatus(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].SecurityPolicyStatus"));
securityPolicy.setServiceManagedEnabled(_ctx.booleanValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].ServiceManagedEnabled"));
securityPolicy.setServiceManagedMode(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].ServiceManagedMode"));
securityPolicy.setCreateTime(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].CreateTime"));
List<String> ciphers = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].Ciphers.Length"); j++) {
ciphers.add(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].Ciphers["+ j +"]"));
}
securityPolicy.setCiphers(ciphers);
List<String> tLSVersions = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].TLSVersions.Length"); j++) {
tLSVersions.add(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].TLSVersions["+ j +"]"));
}
securityPolicy.setTLSVersions(tLSVersions);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListSecurityPoliciesResponse.SecurityPolicies["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
securityPolicy.setTags(tags);
securityPolicies.add(securityPolicy);
}
listSecurityPoliciesResponse.setSecurityPolicies(securityPolicies);
return listSecurityPoliciesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListSecurityPolicyRelationsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListSecurityPolicyRelationsResponse;
import com.aliyuncs.alb.model.v20200616.ListSecurityPolicyRelationsResponse.SecrityPolicyRelation;
import com.aliyuncs.alb.model.v20200616.ListSecurityPolicyRelationsResponse.SecrityPolicyRelation.RelatedListener;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSecurityPolicyRelationsResponseUnmarshaller {
public static ListSecurityPolicyRelationsResponse unmarshall(ListSecurityPolicyRelationsResponse listSecurityPolicyRelationsResponse, UnmarshallerContext _ctx) {
listSecurityPolicyRelationsResponse.setRequestId(_ctx.stringValue("ListSecurityPolicyRelationsResponse.RequestId"));
List<SecrityPolicyRelation> secrityPolicyRelations = new ArrayList<SecrityPolicyRelation>();
for (int i = 0; i < _ctx.lengthValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations.Length"); i++) {
SecrityPolicyRelation secrityPolicyRelation = new SecrityPolicyRelation();
secrityPolicyRelation.setSecurityPolicyId(_ctx.stringValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].SecurityPolicyId"));
List<RelatedListener> relatedListeners = new ArrayList<RelatedListener>();
for (int j = 0; j < _ctx.lengthValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].RelatedListeners.Length"); j++) {
RelatedListener relatedListener = new RelatedListener();
relatedListener.setListenerId(_ctx.stringValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].RelatedListeners["+ j +"].ListenerId"));
relatedListener.setListenerPort(_ctx.longValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].RelatedListeners["+ j +"].ListenerPort"));
relatedListener.setListenerProtocol(_ctx.stringValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].RelatedListeners["+ j +"].ListenerProtocol"));
relatedListener.setLoadBalancerId(_ctx.stringValue("ListSecurityPolicyRelationsResponse.SecrityPolicyRelations["+ i +"].RelatedListeners["+ j +"].LoadBalancerId"));
relatedListeners.add(relatedListener);
}
secrityPolicyRelation.setRelatedListeners(relatedListeners);
secrityPolicyRelations.add(secrityPolicyRelation);
}
listSecurityPolicyRelationsResponse.setSecrityPolicyRelations(secrityPolicyRelations);
return listSecurityPolicyRelationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListServerGroupServersResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListServerGroupServersResponse;
import com.aliyuncs.alb.model.v20200616.ListServerGroupServersResponse.BackendServer;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListServerGroupServersResponseUnmarshaller {
public static ListServerGroupServersResponse unmarshall(ListServerGroupServersResponse listServerGroupServersResponse, UnmarshallerContext _ctx) {
listServerGroupServersResponse.setRequestId(_ctx.stringValue("ListServerGroupServersResponse.RequestId"));
listServerGroupServersResponse.setMaxResults(_ctx.integerValue("ListServerGroupServersResponse.MaxResults"));
listServerGroupServersResponse.setNextToken(_ctx.stringValue("ListServerGroupServersResponse.NextToken"));
listServerGroupServersResponse.setTotalCount(_ctx.integerValue("ListServerGroupServersResponse.TotalCount"));
List<BackendServer> servers = new ArrayList<BackendServer>();
for (int i = 0; i < _ctx.lengthValue("ListServerGroupServersResponse.Servers.Length"); i++) {
BackendServer backendServer = new BackendServer();
backendServer.setDescription(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].Description"));
backendServer.setPort(_ctx.integerValue("ListServerGroupServersResponse.Servers["+ i +"].Port"));
backendServer.setServerId(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].ServerId"));
backendServer.setServerIp(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].ServerIp"));
backendServer.setServerType(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].ServerType"));
backendServer.setStatus(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].Status"));
backendServer.setWeight(_ctx.integerValue("ListServerGroupServersResponse.Servers["+ i +"].Weight"));
backendServer.setServerGroupId(_ctx.stringValue("ListServerGroupServersResponse.Servers["+ i +"].ServerGroupId"));
backendServer.setRemoteIpEnabled(_ctx.booleanValue("ListServerGroupServersResponse.Servers["+ i +"].RemoteIpEnabled"));
servers.add(backendServer);
}
listServerGroupServersResponse.setServers(servers);
return listServerGroupServersResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListServerGroupsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.ConnectionDrainConfig;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.HealthCheckConfig;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.SlowStartConfig;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.StickySessionConfig;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.Tag;
import com.aliyuncs.alb.model.v20200616.ListServerGroupsResponse.ServerGroup.UchConfig;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListServerGroupsResponseUnmarshaller {
public static ListServerGroupsResponse unmarshall(ListServerGroupsResponse listServerGroupsResponse, UnmarshallerContext _ctx) {
listServerGroupsResponse.setRequestId(_ctx.stringValue("ListServerGroupsResponse.RequestId"));
listServerGroupsResponse.setMaxResults(_ctx.integerValue("ListServerGroupsResponse.MaxResults"));
listServerGroupsResponse.setNextToken(_ctx.stringValue("ListServerGroupsResponse.NextToken"));
listServerGroupsResponse.setTotalCount(_ctx.integerValue("ListServerGroupsResponse.TotalCount"));
List<ServerGroup> serverGroups = new ArrayList<ServerGroup>();
for (int i = 0; i < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups.Length"); i++) {
ServerGroup serverGroup = new ServerGroup();
serverGroup.setBizProtocol(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].Protocol"));
serverGroup.setResourceGroupId(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ResourceGroupId"));
serverGroup.setScheduler(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].Scheduler"));
serverGroup.setServerGroupId(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServerGroupId"));
serverGroup.setServerGroupName(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServerGroupName"));
serverGroup.setServerGroupStatus(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServerGroupStatus"));
serverGroup.setServerGroupType(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServerGroupType"));
serverGroup.setVpcId(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].VpcId"));
serverGroup.setServiceManagedEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServiceManagedEnabled"));
serverGroup.setServiceManagedMode(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServiceManagedMode"));
serverGroup.setConfigManagedEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].ConfigManagedEnabled"));
serverGroup.setUpstreamKeepaliveEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].UpstreamKeepaliveEnabled"));
serverGroup.setIpv6Enabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].Ipv6Enabled"));
serverGroup.setServerCount(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServerCount"));
serverGroup.setServiceName(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].ServiceName"));
serverGroup.setCreateTime(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].CreateTime"));
serverGroup.setCrossZoneEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].CrossZoneEnabled"));
List<String> relatedLoadBalancerIds = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedLoadBalancerIds.Length"); j++) {
relatedLoadBalancerIds.add(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedLoadBalancerIds["+ j +"]"));
}
serverGroup.setRelatedLoadBalancerIds(relatedLoadBalancerIds);
List<String> relatedListenerIds = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedListenerIds.Length"); j++) {
relatedListenerIds.add(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedListenerIds["+ j +"]"));
}
serverGroup.setRelatedListenerIds(relatedListenerIds);
List<String> relatedRuleIds = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedRuleIds.Length"); j++) {
relatedRuleIds.add(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].RelatedRuleIds["+ j +"]"));
}
serverGroup.setRelatedRuleIds(relatedRuleIds);
HealthCheckConfig healthCheckConfig = new HealthCheckConfig();
healthCheckConfig.setHealthCheckConnectPort(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckConnectPort"));
healthCheckConfig.setHealthCheckEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckEnabled"));
healthCheckConfig.setHealthCheckHost(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckHost"));
healthCheckConfig.setHealthCheckHttpVersion(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckHttpVersion"));
healthCheckConfig.setHealthCheckInterval(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckInterval"));
healthCheckConfig.setHealthCheckMethod(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckMethod"));
healthCheckConfig.setHealthCheckPath(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckPath"));
healthCheckConfig.setHealthCheckProtocol(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckProtocol"));
healthCheckConfig.setHealthCheckTimeout(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckTimeout"));
healthCheckConfig.setHealthyThreshold(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthyThreshold"));
healthCheckConfig.setUnhealthyThreshold(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.UnhealthyThreshold"));
healthCheckConfig.setHealthCheckTcpFastCloseEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckTcpFastCloseEnabled"));
List<String> healthCheckHttpCodes = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckHttpCodes.Length"); j++) {
healthCheckHttpCodes.add(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckHttpCodes["+ j +"]"));
}
healthCheckConfig.setHealthCheckHttpCodes(healthCheckHttpCodes);
List<String> healthCheckCodes = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckCodes.Length"); j++) {
healthCheckCodes.add(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].HealthCheckConfig.HealthCheckCodes["+ j +"]"));
}
healthCheckConfig.setHealthCheckCodes(healthCheckCodes);
serverGroup.setHealthCheckConfig(healthCheckConfig);
StickySessionConfig stickySessionConfig = new StickySessionConfig();
stickySessionConfig.setCookie(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].StickySessionConfig.Cookie"));
stickySessionConfig.setCookieTimeout(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].StickySessionConfig.CookieTimeout"));
stickySessionConfig.setStickySessionEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].StickySessionConfig.StickySessionEnabled"));
stickySessionConfig.setStickySessionType(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].StickySessionConfig.StickySessionType"));
serverGroup.setStickySessionConfig(stickySessionConfig);
UchConfig uchConfig = new UchConfig();
uchConfig.setType(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].UchConfig.Type"));
uchConfig.setValue(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].UchConfig.Value"));
serverGroup.setUchConfig(uchConfig);
ConnectionDrainConfig connectionDrainConfig = new ConnectionDrainConfig();
connectionDrainConfig.setConnectionDrainEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].ConnectionDrainConfig.ConnectionDrainEnabled"));
connectionDrainConfig.setConnectionDrainTimeout(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].ConnectionDrainConfig.ConnectionDrainTimeout"));
serverGroup.setConnectionDrainConfig(connectionDrainConfig);
SlowStartConfig slowStartConfig = new SlowStartConfig();
slowStartConfig.setSlowStartEnabled(_ctx.booleanValue("ListServerGroupsResponse.ServerGroups["+ i +"].SlowStartConfig.SlowStartEnabled"));
slowStartConfig.setSlowStartDuration(_ctx.integerValue("ListServerGroupsResponse.ServerGroups["+ i +"].SlowStartConfig.SlowStartDuration"));
serverGroup.setSlowStartConfig(slowStartConfig);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListServerGroupsResponse.ServerGroups["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListServerGroupsResponse.ServerGroups["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
serverGroup.setTags(tags);
serverGroups.add(serverGroup);
}
listServerGroupsResponse.setServerGroups(serverGroups);
return listServerGroupsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListSystemSecurityPoliciesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListSystemSecurityPoliciesResponse;
import com.aliyuncs.alb.model.v20200616.ListSystemSecurityPoliciesResponse.SecurityPolicy;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSystemSecurityPoliciesResponseUnmarshaller {
public static ListSystemSecurityPoliciesResponse unmarshall(ListSystemSecurityPoliciesResponse listSystemSecurityPoliciesResponse, UnmarshallerContext _ctx) {
listSystemSecurityPoliciesResponse.setRequestId(_ctx.stringValue("ListSystemSecurityPoliciesResponse.RequestId"));
List<SecurityPolicy> securityPolicies = new ArrayList<SecurityPolicy>();
for (int i = 0; i < _ctx.lengthValue("ListSystemSecurityPoliciesResponse.SecurityPolicies.Length"); i++) {
SecurityPolicy securityPolicy = new SecurityPolicy();
securityPolicy.setSecurityPolicyId(_ctx.stringValue("ListSystemSecurityPoliciesResponse.SecurityPolicies["+ i +"].SecurityPolicyId"));
List<String> ciphers = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListSystemSecurityPoliciesResponse.SecurityPolicies["+ i +"].Ciphers.Length"); j++) {
ciphers.add(_ctx.stringValue("ListSystemSecurityPoliciesResponse.SecurityPolicies["+ i +"].Ciphers["+ j +"]"));
}
securityPolicy.setCiphers(ciphers);
List<String> tLSVersions = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListSystemSecurityPoliciesResponse.SecurityPolicies["+ i +"].TLSVersions.Length"); j++) {
tLSVersions.add(_ctx.stringValue("ListSystemSecurityPoliciesResponse.SecurityPolicies["+ i +"].TLSVersions["+ j +"]"));
}
securityPolicy.setTLSVersions(tLSVersions);
securityPolicies.add(securityPolicy);
}
listSystemSecurityPoliciesResponse.setSecurityPolicies(securityPolicies);
return listSystemSecurityPoliciesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListTagKeysResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListTagKeysResponse;
import com.aliyuncs.alb.model.v20200616.ListTagKeysResponse.TagKey;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTagKeysResponseUnmarshaller {
public static ListTagKeysResponse unmarshall(ListTagKeysResponse listTagKeysResponse, UnmarshallerContext _ctx) {
listTagKeysResponse.setRequestId(_ctx.stringValue("ListTagKeysResponse.RequestId"));
listTagKeysResponse.setMaxResults(_ctx.integerValue("ListTagKeysResponse.MaxResults"));
listTagKeysResponse.setNextToken(_ctx.stringValue("ListTagKeysResponse.NextToken"));
listTagKeysResponse.setTotalCount(_ctx.integerValue("ListTagKeysResponse.TotalCount"));
List<TagKey> tagKeys = new ArrayList<TagKey>();
for (int i = 0; i < _ctx.lengthValue("ListTagKeysResponse.TagKeys.Length"); i++) {
TagKey tagKey = new TagKey();
tagKey.setCategory(_ctx.stringValue("ListTagKeysResponse.TagKeys["+ i +"].Category"));
tagKey.setTagKey(_ctx.stringValue("ListTagKeysResponse.TagKeys["+ i +"].TagKey"));
tagKeys.add(tagKey);
}
listTagKeysResponse.setTagKeys(tagKeys);
return listTagKeysResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListTagResourcesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListTagResourcesResponse;
import com.aliyuncs.alb.model.v20200616.ListTagResourcesResponse.TagResource;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTagResourcesResponseUnmarshaller {
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {
listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));
listTagResourcesResponse.setMaxResults(_ctx.integerValue("ListTagResourcesResponse.MaxResults"));
listTagResourcesResponse.setNextToken(_ctx.stringValue("ListTagResourcesResponse.NextToken"));
listTagResourcesResponse.setTotalCount(_ctx.integerValue("ListTagResourcesResponse.TotalCount"));
List<TagResource> tagResources = new ArrayList<TagResource>();
for (int i = 0; i < _ctx.lengthValue("ListTagResourcesResponse.TagResources.Length"); i++) {
TagResource tagResource = new TagResource();
tagResource.setResourceId(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceId"));
tagResource.setResourceType(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceType"));
tagResource.setTagKey(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagKey"));
tagResource.setTagValue(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagValue"));
tagResources.add(tagResource);
}
listTagResourcesResponse.setTagResources(tagResources);
return listTagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ListTagValuesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.alb.model.v20200616.ListTagValuesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTagValuesResponseUnmarshaller {
public static ListTagValuesResponse unmarshall(ListTagValuesResponse listTagValuesResponse, UnmarshallerContext _ctx) {
listTagValuesResponse.setRequestId(_ctx.stringValue("ListTagValuesResponse.RequestId"));
listTagValuesResponse.setMaxResults(_ctx.integerValue("ListTagValuesResponse.MaxResults"));
listTagValuesResponse.setNextToken(_ctx.stringValue("ListTagValuesResponse.NextToken"));
listTagValuesResponse.setTotalCount(_ctx.integerValue("ListTagValuesResponse.TotalCount"));
List<String> tagValues = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListTagValuesResponse.TagValues.Length"); i++) {
tagValues.add(_ctx.stringValue("ListTagValuesResponse.TagValues["+ i +"]"));
}
listTagValuesResponse.setTagValues(tagValues);
return listTagValuesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/LoadBalancerJoinSecurityGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.LoadBalancerJoinSecurityGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class LoadBalancerJoinSecurityGroupResponseUnmarshaller {
public static LoadBalancerJoinSecurityGroupResponse unmarshall(LoadBalancerJoinSecurityGroupResponse loadBalancerJoinSecurityGroupResponse, UnmarshallerContext _ctx) {
loadBalancerJoinSecurityGroupResponse.setRequestId(_ctx.stringValue("LoadBalancerJoinSecurityGroupResponse.RequestId"));
loadBalancerJoinSecurityGroupResponse.setJobId(_ctx.stringValue("LoadBalancerJoinSecurityGroupResponse.JobId"));
return loadBalancerJoinSecurityGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/LoadBalancerLeaveSecurityGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.LoadBalancerLeaveSecurityGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class LoadBalancerLeaveSecurityGroupResponseUnmarshaller {
public static LoadBalancerLeaveSecurityGroupResponse unmarshall(LoadBalancerLeaveSecurityGroupResponse loadBalancerLeaveSecurityGroupResponse, UnmarshallerContext _ctx) {
loadBalancerLeaveSecurityGroupResponse.setRequestId(_ctx.stringValue("LoadBalancerLeaveSecurityGroupResponse.RequestId"));
loadBalancerLeaveSecurityGroupResponse.setJobId(_ctx.stringValue("LoadBalancerLeaveSecurityGroupResponse.JobId"));
return loadBalancerLeaveSecurityGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/MoveResourceGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.MoveResourceGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class MoveResourceGroupResponseUnmarshaller {
public static MoveResourceGroupResponse unmarshall(MoveResourceGroupResponse moveResourceGroupResponse, UnmarshallerContext _ctx) {
moveResourceGroupResponse.setRequestId(_ctx.stringValue("MoveResourceGroupResponse.RequestId"));
return moveResourceGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/RemoveEntriesFromAclResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.RemoveEntriesFromAclResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class RemoveEntriesFromAclResponseUnmarshaller {
public static RemoveEntriesFromAclResponse unmarshall(RemoveEntriesFromAclResponse removeEntriesFromAclResponse, UnmarshallerContext _ctx) {
removeEntriesFromAclResponse.setRequestId(_ctx.stringValue("RemoveEntriesFromAclResponse.RequestId"));
removeEntriesFromAclResponse.setJobId(_ctx.stringValue("RemoveEntriesFromAclResponse.JobId"));
return removeEntriesFromAclResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/RemoveServersFromServerGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.RemoveServersFromServerGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class RemoveServersFromServerGroupResponseUnmarshaller {
public static RemoveServersFromServerGroupResponse unmarshall(RemoveServersFromServerGroupResponse removeServersFromServerGroupResponse, UnmarshallerContext _ctx) {
removeServersFromServerGroupResponse.setRequestId(_ctx.stringValue("RemoveServersFromServerGroupResponse.RequestId"));
removeServersFromServerGroupResponse.setJobId(_ctx.stringValue("RemoveServersFromServerGroupResponse.JobId"));
return removeServersFromServerGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/ReplaceServersInServerGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.ReplaceServersInServerGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ReplaceServersInServerGroupResponseUnmarshaller {
public static ReplaceServersInServerGroupResponse unmarshall(ReplaceServersInServerGroupResponse replaceServersInServerGroupResponse, UnmarshallerContext _ctx) {
replaceServersInServerGroupResponse.setRequestId(_ctx.stringValue("ReplaceServersInServerGroupResponse.RequestId"));
replaceServersInServerGroupResponse.setJobId(_ctx.stringValue("ReplaceServersInServerGroupResponse.JobId"));
return replaceServersInServerGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/StartListenerResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.StartListenerResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartListenerResponseUnmarshaller {
public static StartListenerResponse unmarshall(StartListenerResponse startListenerResponse, UnmarshallerContext _ctx) {
startListenerResponse.setRequestId(_ctx.stringValue("StartListenerResponse.RequestId"));
startListenerResponse.setJobId(_ctx.stringValue("StartListenerResponse.JobId"));
return startListenerResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/StartShiftLoadBalancerZonesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.StartShiftLoadBalancerZonesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartShiftLoadBalancerZonesResponseUnmarshaller {
public static StartShiftLoadBalancerZonesResponse unmarshall(StartShiftLoadBalancerZonesResponse startShiftLoadBalancerZonesResponse, UnmarshallerContext _ctx) {
startShiftLoadBalancerZonesResponse.setRequestId(_ctx.stringValue("StartShiftLoadBalancerZonesResponse.RequestId"));
return startShiftLoadBalancerZonesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/StopListenerResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.StopListenerResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StopListenerResponseUnmarshaller {
public static StopListenerResponse unmarshall(StopListenerResponse stopListenerResponse, UnmarshallerContext _ctx) {
stopListenerResponse.setRequestId(_ctx.stringValue("StopListenerResponse.RequestId"));
stopListenerResponse.setJobId(_ctx.stringValue("StopListenerResponse.JobId"));
return stopListenerResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/TagResourcesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.TagResourcesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class TagResourcesResponseUnmarshaller {
public static TagResourcesResponse unmarshall(TagResourcesResponse tagResourcesResponse, UnmarshallerContext _ctx) {
tagResourcesResponse.setRequestId(_ctx.stringValue("TagResourcesResponse.RequestId"));
return tagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UnTagResourcesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UnTagResourcesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UnTagResourcesResponseUnmarshaller {
public static UnTagResourcesResponse unmarshall(UnTagResourcesResponse unTagResourcesResponse, UnmarshallerContext _ctx) {
unTagResourcesResponse.setRequestId(_ctx.stringValue("UnTagResourcesResponse.RequestId"));
return unTagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateAScriptsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateAScriptsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAScriptsResponseUnmarshaller {
public static UpdateAScriptsResponse unmarshall(UpdateAScriptsResponse updateAScriptsResponse, UnmarshallerContext _ctx) {
updateAScriptsResponse.setRequestId(_ctx.stringValue("UpdateAScriptsResponse.RequestId"));
updateAScriptsResponse.setJobId(_ctx.stringValue("UpdateAScriptsResponse.JobId"));
return updateAScriptsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateAclAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateAclAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAclAttributeResponseUnmarshaller {
public static UpdateAclAttributeResponse unmarshall(UpdateAclAttributeResponse updateAclAttributeResponse, UnmarshallerContext _ctx) {
updateAclAttributeResponse.setRequestId(_ctx.stringValue("UpdateAclAttributeResponse.RequestId"));
return updateAclAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateHealthCheckTemplateAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateHealthCheckTemplateAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateHealthCheckTemplateAttributeResponseUnmarshaller {
public static UpdateHealthCheckTemplateAttributeResponse unmarshall(UpdateHealthCheckTemplateAttributeResponse updateHealthCheckTemplateAttributeResponse, UnmarshallerContext _ctx) {
updateHealthCheckTemplateAttributeResponse.setRequestId(_ctx.stringValue("UpdateHealthCheckTemplateAttributeResponse.RequestId"));
return updateHealthCheckTemplateAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateListenerAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateListenerAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateListenerAttributeResponseUnmarshaller {
public static UpdateListenerAttributeResponse unmarshall(UpdateListenerAttributeResponse updateListenerAttributeResponse, UnmarshallerContext _ctx) {
updateListenerAttributeResponse.setRequestId(_ctx.stringValue("UpdateListenerAttributeResponse.RequestId"));
updateListenerAttributeResponse.setJobId(_ctx.stringValue("UpdateListenerAttributeResponse.JobId"));
return updateListenerAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateListenerLogConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateListenerLogConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateListenerLogConfigResponseUnmarshaller {
public static UpdateListenerLogConfigResponse unmarshall(UpdateListenerLogConfigResponse updateListenerLogConfigResponse, UnmarshallerContext _ctx) {
updateListenerLogConfigResponse.setRequestId(_ctx.stringValue("UpdateListenerLogConfigResponse.RequestId"));
updateListenerLogConfigResponse.setJobId(_ctx.stringValue("UpdateListenerLogConfigResponse.JobId"));
return updateListenerLogConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateLoadBalancerAddressTypeConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateLoadBalancerAddressTypeConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateLoadBalancerAddressTypeConfigResponseUnmarshaller {
public static UpdateLoadBalancerAddressTypeConfigResponse unmarshall(UpdateLoadBalancerAddressTypeConfigResponse updateLoadBalancerAddressTypeConfigResponse, UnmarshallerContext _ctx) {
updateLoadBalancerAddressTypeConfigResponse.setRequestId(_ctx.stringValue("UpdateLoadBalancerAddressTypeConfigResponse.RequestId"));
updateLoadBalancerAddressTypeConfigResponse.setJobId(_ctx.stringValue("UpdateLoadBalancerAddressTypeConfigResponse.JobId"));
return updateLoadBalancerAddressTypeConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateLoadBalancerAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateLoadBalancerAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateLoadBalancerAttributeResponseUnmarshaller {
public static UpdateLoadBalancerAttributeResponse unmarshall(UpdateLoadBalancerAttributeResponse updateLoadBalancerAttributeResponse, UnmarshallerContext _ctx) {
updateLoadBalancerAttributeResponse.setRequestId(_ctx.stringValue("UpdateLoadBalancerAttributeResponse.RequestId"));
updateLoadBalancerAttributeResponse.setJobId(_ctx.stringValue("UpdateLoadBalancerAttributeResponse.JobId"));
return updateLoadBalancerAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateLoadBalancerEditionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateLoadBalancerEditionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateLoadBalancerEditionResponseUnmarshaller {
public static UpdateLoadBalancerEditionResponse unmarshall(UpdateLoadBalancerEditionResponse updateLoadBalancerEditionResponse, UnmarshallerContext _ctx) {
updateLoadBalancerEditionResponse.setRequestId(_ctx.stringValue("UpdateLoadBalancerEditionResponse.RequestId"));
return updateLoadBalancerEditionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateLoadBalancerZonesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateLoadBalancerZonesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateLoadBalancerZonesResponseUnmarshaller {
public static UpdateLoadBalancerZonesResponse unmarshall(UpdateLoadBalancerZonesResponse updateLoadBalancerZonesResponse, UnmarshallerContext _ctx) {
updateLoadBalancerZonesResponse.setRequestId(_ctx.stringValue("UpdateLoadBalancerZonesResponse.RequestId"));
updateLoadBalancerZonesResponse.setJobId(_ctx.stringValue("UpdateLoadBalancerZonesResponse.JobId"));
return updateLoadBalancerZonesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateRuleAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateRuleAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateRuleAttributeResponseUnmarshaller {
public static UpdateRuleAttributeResponse unmarshall(UpdateRuleAttributeResponse updateRuleAttributeResponse, UnmarshallerContext _ctx) {
updateRuleAttributeResponse.setRequestId(_ctx.stringValue("UpdateRuleAttributeResponse.RequestId"));
updateRuleAttributeResponse.setJobId(_ctx.stringValue("UpdateRuleAttributeResponse.JobId"));
return updateRuleAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateRulesAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateRulesAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateRulesAttributeResponseUnmarshaller {
public static UpdateRulesAttributeResponse unmarshall(UpdateRulesAttributeResponse updateRulesAttributeResponse, UnmarshallerContext _ctx) {
updateRulesAttributeResponse.setRequestId(_ctx.stringValue("UpdateRulesAttributeResponse.RequestId"));
updateRulesAttributeResponse.setJobId(_ctx.stringValue("UpdateRulesAttributeResponse.JobId"));
return updateRulesAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateSecurityPolicyAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateSecurityPolicyAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateSecurityPolicyAttributeResponseUnmarshaller {
public static UpdateSecurityPolicyAttributeResponse unmarshall(UpdateSecurityPolicyAttributeResponse updateSecurityPolicyAttributeResponse, UnmarshallerContext _ctx) {
updateSecurityPolicyAttributeResponse.setRequestId(_ctx.stringValue("UpdateSecurityPolicyAttributeResponse.RequestId"));
updateSecurityPolicyAttributeResponse.setJobId(_ctx.stringValue("UpdateSecurityPolicyAttributeResponse.JobId"));
return updateSecurityPolicyAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateServerGroupAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateServerGroupAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateServerGroupAttributeResponseUnmarshaller {
public static UpdateServerGroupAttributeResponse unmarshall(UpdateServerGroupAttributeResponse updateServerGroupAttributeResponse, UnmarshallerContext _ctx) {
updateServerGroupAttributeResponse.setRequestId(_ctx.stringValue("UpdateServerGroupAttributeResponse.RequestId"));
updateServerGroupAttributeResponse.setJobId(_ctx.stringValue("UpdateServerGroupAttributeResponse.JobId"));
return updateServerGroupAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-alb/1.0.22/com/aliyuncs/alb/transform/v20200616/UpdateServerGroupServersAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.alb.transform.v20200616;
import com.aliyuncs.alb.model.v20200616.UpdateServerGroupServersAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateServerGroupServersAttributeResponseUnmarshaller {
public static UpdateServerGroupServersAttributeResponse unmarshall(UpdateServerGroupServersAttributeResponse updateServerGroupServersAttributeResponse, UnmarshallerContext _ctx) {
updateServerGroupServersAttributeResponse.setRequestId(_ctx.stringValue("UpdateServerGroupServersAttributeResponse.RequestId"));
updateServerGroupServersAttributeResponse.setJobId(_ctx.stringValue("UpdateServerGroupServersAttributeResponse.JobId"));
return updateServerGroupServersAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Action.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.List;
public class Action implements Serializable {
private static final long serialVersionUID = 7887922285373657472L;
/**
* 等级,值:yellow/orange/red/ok/failure
*/
private Integer level;
/**
* 报警联系人组
*/
private List<String> contactGroups;
public Integer getLevel() {
return level;
}
public Action setLevel(Integer level) {
this.level = level;
return this;
}
public List<String> getContactGroups() {
return contactGroups;
}
public Action setContactGroups(List<String> contactGroups) {
this.contactGroups = contactGroups;
return this;
}
@Override
public String toString() {
return "Action{" +
"level=" + level +
", contactGroups=" + contactGroups +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Actions.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.List;
public class Actions implements Serializable {
private static final long serialVersionUID = 5354234285582017666L;
/**
* 用户静默期,云监控针对一个报警项,一天只报一次警,对于内部PE可以无此限制,可以由PE自己来设定
* 可以继承
*/
private String silence;
/**
* 数据查询失败异常时的报警
* 可以继承
*/
private Action failure;
/**
* 报警等级
* 可以继承
*/
private List<Action> alertActions;
/**
* 可以继承
* 报警恢复通知
* 恢复contact不具体指定,发送给所有通知过的contact
*/
private Action ok;
/**
* 用户设置报警沉默期,用户希望接收报警的时间段, 一个表达式描述不了 9:00-5:30,需要多个表达式来完成。
*/
private String effective;
public String getSilence() {
return silence;
}
public Actions setSilence(String silence) {
this.silence = silence;
return this;
}
public Action getFailure() {
return failure;
}
public Actions setFailure(Action failure) {
this.failure = failure;
return this;
}
public Action getOk() {
return ok;
}
public Actions setOk(Action ok) {
this.ok = ok;
return this;
}
public List<Action> getAlertActions() {
return alertActions;
}
public Actions setAlertActions(List<Action> alertActions) {
this.alertActions = alertActions;
return this;
}
public String getEffective() {
return effective;
}
public Actions setEffective(String effective) {
this.effective = effective;
return this;
}
@Override
public String toString() {
return "Actions{" +
"silence='" + silence + '\'' +
", failure=" + failure +
", alertActions=" + alertActions +
", ok=" + ok +
", effective='" + effective + '\'' +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/AlertEntry.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* Created by chenlinping on 15/6/23.
*/
public class AlertEntry implements Serializable {
private static final long serialVersionUID = -6864908634193266480L;
private String parentName;
private String project;
private String name;
private String description;
private Integer type;
private Integer interval;
private Boolean template;
private String alertState;
/**
* 报警项是否停止
*/
private Boolean enable;
/**
* 报警数据
*/
private Condition condition;
//{level:p4,expression:$threshold>20×:1}//add
private List<Escalation> escalations;
/**
* 报警监控动作,有不同的报警等级
*/
private Actions actions;
/**
* 报警之后,深度发掘报信息
*/
private List<DeepDive> deepDives;
private String subject;
public List<DeepDive> getDeepDives() {
return deepDives;
}
public AlertEntry setDeepDives(List<DeepDive> deepDives) {
this.deepDives = deepDives;
return this;
}
public String getProject() {
return project;
}
public AlertEntry setProject(String project) {
this.project = project;
return this;
}
public String getName() {
return name;
}
public AlertEntry setName(String name) {
this.name = name;
return this;
}
public Boolean getEnable() {
return enable;
}
public AlertEntry setEnable(Boolean enable) {
this.enable = enable;
return this;
}
public Actions getActions() {
return actions;
}
public AlertEntry setActions(Actions actions) {
this.actions = actions;
return this;
}
public Condition getCondition() {
return condition;
}
public AlertEntry setCondition(Condition condition) {
this.condition = condition;
return this;
}
public List<Escalation> getEscalations() {
return escalations;
}
public AlertEntry setEscalations(List<Escalation> escalations) {
this.escalations = escalations;
return this;
}
public String getSubject() {
return subject;
}
public AlertEntry setSubject(String subject) {
this.subject = subject;
return this;
}
public String getParentName() {
return parentName;
}
public AlertEntry setParentName(String parentName) {
this.parentName = parentName;
return this;
}
public Integer getInterval() {
return interval;
}
public AlertEntry setInterval(Integer interval) {
this.interval = interval;
return this;
}
public Boolean getTemplate() {
return template;
}
public AlertEntry setTemplate(Boolean template) {
this.template = template;
return this;
}
public Integer getType() {
return type;
}
public AlertEntry setType(Integer type) {
this.type = type;
return this;
}
public String getAlertState() {
return alertState;
}
public void setAlertState(String alertState) {
this.alertState = alertState;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AlertEntry that = (AlertEntry) o;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (project != null ? !project.equals(that.project) : that.project != null) return false;
return true;
}
public String getDescription() {
return description;
}
public AlertEntry setDescription(String description) {
this.description = description;
return this;
}
@Override
public String toString() {
return "AlertEntry{" +
", parentName='" + parentName + '\'' +
", project='" + project + '\'' +
", name='" + name + '\'' +
", description='" + description + '\'' +
", type=" + type +
", interval=" + interval +
", template=" + template +
", alertState='" + alertState + '\'' +
", enable=" + enable +
", condition=" + condition +
", escalations=" + escalations +
", actions=" + actions +
", deepDives=" + deepDives +
", subject='" + subject + '\'' +
'}';
}
@Override
public int hashCode() {
int result = project != null ? project.hashCode() : 0;
result = 31 * result + (name != null ? name.hashCode() : 0);
return result;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/AlertType.java
|
package com.aliyuncs.alert.domain;
/**
* Created by yichun.zyc on 2015/9/14.
*/
public enum AlertType {
State(0);
private Integer key;
AlertType(Integer key) {
this.key = key;
}
public Integer getKey() {
return this.key;
}
public static AlertType getAlertType(Integer num)
{
switch (num)
{
default :
return AlertType.State;
}
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/CmsAlertRelation.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.Date;
/**
* Created by fray.yangb-然诺 on 15/9/16.
*/
public class CmsAlertRelation implements Serializable{
private static final long serialVersionUID = -2639552493222539776L;
private String project;
private String alertName;
private String dimensions;
public String getProject() {
return project;
}
public CmsAlertRelation setProject(String project) {
this.project = project;
return this;
}
public String getDimensions() {
return dimensions;
}
public CmsAlertRelation setDimensions(String dimensions) {
this.dimensions = dimensions;
return this;
}
@Override
public String toString() {
return "CmsAlertRelation{" +
"project='" + project + '\'' +
", alertName='" + alertName + '\'' +
", dimensions='" + dimensions + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CmsAlertRelation that = (CmsAlertRelation) o;
if (alertName != null ? !alertName.equals(that.alertName) : that.alertName != null) return false;
if (dimensions != null ? !dimensions.equals(that.dimensions) : that.dimensions != null) return false;
if (project != null ? !project.equals(that.project) : that.project != null) return false;
return true;
}
@Override
public int hashCode() {
int result = project != null ? project.hashCode() : 0;
result = 31 * result + (alertName != null ? alertName.hashCode() : 0);
result = 31 * result + (dimensions != null ? dimensions.hashCode() : 0);
return result;
}
public String getAlertName() {
return alertName;
}
public CmsAlertRelation setAlertName(String alertName) {
this.alertName = alertName;
return this;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Condition.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
/**
* Created by fray.yangb-然诺 on 15/7/1.
*/
public class Condition implements Serializable {
private static final long serialVersionUID = 5358904463641797805L;
private String sourceType;
private String project;
private String metricName;
private String filter;
public String getSourceType() {
return sourceType;
}
public Condition setSourceType(String sourceType) {
this.sourceType = sourceType;
return this;
}
public String getMetricName() {
return metricName;
}
public Condition setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getProject() {
return project;
}
public Condition setProject(String project) {
this.project = project;
return this;
}
public String getFilter() {
return filter;
}
public Condition setFilter(String filter) {
this.filter = filter;
return this;
}
@Override
public String toString() {
return "Condition{" +
"sourceType='" + sourceType + '\'' +
", project='" + project + '\'' +
", metricName='" + metricName + '\'' +
", filter='" + filter + '\'' +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Contact.java
|
/**
*
*/
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class Contact implements Serializable {
/**
*
*/
private static final long serialVersionUID = -993157915712776875L;
private String project;
/**
* 名称
*/
private String name;
private String desc;
private List<ContactChannel> channels;
public String getName() {
return name;
}
public Contact setName(String name) {
this.name = name;
return this;
}
public String getDesc() {
return desc;
}
public Contact setDesc(String desc) {
this.desc = desc;
return this;
}
public List<ContactChannel> getChannels() {
return channels;
}
public Contact setChannels(List<ContactChannel> channels) {
this.channels = channels;
return this;
}
public String getProject() {
return project;
}
public Contact setProject(String project) {
this.project = project;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Contact contact = (Contact) o;
if (name != null ? !name.equals(contact.name) : contact.name != null) return false;
if (project != null ? !project.equals(contact.project) : contact.project != null) return false;
return true;
}
@Override
public int hashCode() {
int result = project != null ? project.hashCode() : 0;
result = 31 * result + (name != null ? name.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "Contact{" +
", project='" + project + '\'' +
", name='" + name + '\'' +
", desc='" + desc + '\'' +
", channels=" + channels +
"}";
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/ContactChannel.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
/**
* Created by fray.yangb-然诺 on 15/7/8.
*/
public class ContactChannel implements Serializable {
private static final long serialVersionUID = -3809868801188657296L;
private ContactChannelType type;
private String value;
/**
* default receive all level alert
*/
private Integer level = Level.P4.getKey();
public ContactChannelType getType() {
return type;
}
public ContactChannel setType(ContactChannelType type) {
this.type = type;
return this;
}
public String getValue() {
return value;
}
public ContactChannel setValue(String value) {
this.value = value;
return this;
}
public Integer getLevel() {
return level;
}
public ContactChannel setLevel(Integer level) {
this.level = level;
return this;
}
@Override
public String toString() {
return "ContactChannel{" +
"type=" + type +
", value='" + value + '\'' +
", level=" + level +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/ContactChannelType.java
|
package com.aliyuncs.alert.domain;
public enum ContactChannelType {
Mail(0, "邮件"), SMS(2, "短信");
private int type;
private String desc;
ContactChannelType(int type, String desc){
this.type = type;
this.desc = desc;
}
public Integer getValue() {
return type;
}
public int getType() {
return type;
}
public String getDesc() {
return desc;
}
public static ContactChannelType cast(String type){
for(ContactChannelType t: ContactChannelType.values()){
if(t.name().toLowerCase().equals(type)){
return t;
}
}
return null;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/ContactGroup.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class ContactGroup implements Serializable {
private static final long serialVersionUID = 749806446747440426L;
private String project;
private String userId;
/**
* action名称
*/
private String name;
/**
* action描述
*/
private String desc;
private List<String> contacts;
/**
* 冷却时间,action在此间隔类只会执行一次,防止频繁执行
* <p>
* 单位:秒,默认300秒
*/
@Deprecated
private Integer coolDownInterval;
public String getName() {
return name;
}
public ContactGroup setName(String name) {
this.name = name;
return this;
}
public String getDesc() {
return desc;
}
public ContactGroup setDesc(String desc) {
this.desc = desc;
return this;
}
public Integer getCoolDownInterval() {
return coolDownInterval;
}
public ContactGroup setCoolDownInterval(Integer coolDownInterval) {
this.coolDownInterval = coolDownInterval;
return this;
}
public String getUserId() {
return userId;
}
public ContactGroup setUserId(String userId) {
this.userId = userId;
return this;
}
public List<String> getContacts() {
return contacts;
}
public ContactGroup setContacts(List<String> contacts) {
this.contacts = contacts;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ContactGroup that = (ContactGroup) o;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (project != null ? !project.equals(that.project) : that.project != null) return false;
return true;
}
@Override
public int hashCode() {
int result = project != null ? project.hashCode() : 0;
result = 31 * result + (name != null ? name.hashCode() : 0);
return result;
}
public String getProject() {
return project;
}
public ContactGroup setProject(String project) {
this.project = project;
return this;
}
@Override
public String toString() {
return "ContactGroup{" +
", project='" + project + '\'' +
", userId='" + userId + '\'' +
", name='" + name + '\'' +
", desc='" + desc + '\'' +
", contacts=" + contacts +
", coolDownInterval=" + coolDownInterval +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/DeepDive.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
public class DeepDive implements Serializable {
private static final long serialVersionUID = 6287322188985420381L;
private String text;
private Condition condition;
private String render;
private String dimensions;
public String getText() {
return text;
}
public DeepDive setText(String text) {
this.text = text;
return this;
}
public Condition getCondition() {
return condition;
}
public DeepDive setCondition(Condition condition) {
this.condition = condition;
return this;
}
public String getRender() {
return render;
}
public DeepDive setRender(String render) {
this.render = render;
return this;
}
public String getDimensions() {
return dimensions;
}
public DeepDive setDimensions(String dimensions) {
this.dimensions = dimensions;
return this;
}
@Override
public String toString() {
return "DeepDive{" +
"text='" + text + '\'' +
", condition=" + condition +
", render='" + render + '\'' +
", dimensions='" + dimensions + '\'' +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Escalation.java
|
package com.aliyuncs.alert.domain;
import java.io.Serializable;
/**
* Created by fray.yangb-然诺 on 15/7/8.
*/
public class Escalation implements Serializable {
private static final long serialVersionUID = 3074426293831798422L;
//{level:p4,expression:$threshold>20×:1}//add
private Integer level;
private String expression;
private String tag;
private Integer times;
public Integer getLevel() {
return level;
}
public Escalation setLevel(Integer level) {
this.level = level;
return this;
}
public String getExpression() {
return expression;
}
public Escalation setExpression(String expression) {
this.expression = expression;
return this;
}
public String getTag() {
return tag;
}
public Escalation setTag(String tag) {
this.tag = tag;
return this;
}
public Integer getTimes() {
return times;
}
public Escalation setTimes(Integer times) {
this.times = times;
return this;
}
@Override
public String toString() {
return "Escalation{" +
"level=" + level +
", expression='" + expression + '\'' +
", tag='" + tag + '\'' +
", times=" + times +
'}';
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/domain/Level.java
|
package com.aliyuncs.alert.domain;
/**
* Created by yichun.zyc on 2015/7/9.
*/
public enum Level {
OK(0),P4(4), P3(3), P2(2),P1(1),FAILURE(-1),NODATA(-2);
private Integer key;
Level(Integer key) {
this.key = key;
}
public Integer getKey() {
return this.key;
}
public static Level getLevel(Integer num)
{
switch (num)
{
case 4:
return Level.P4;
case 3:
return Level.P3;
case 2:
return Level.P2;
case 1:
return Level.P1;
case -1:
return Level.FAILURE;
case -2:
return Level.NODATA;
default :
return Level.OK;
}
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.alert.domain.AlertEntry;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreateAlertRequest extends RoaAcsRequest<CreateAlertResponse> {
public CreateAlertRequest() {
super("Alert", "2015-08-15", "CreateAlert");
setUriPattern("/projects/[ProjectName]/alerts");
setMethod(MethodType.POST);
}
private String projectName;
private AlertEntry alert;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public AlertEntry getAlert() {
return this.alert;
}
public void setAlert(AlertEntry alert) {
this.alert = alert;
setContent(JSON.toJSONString(alert).getBytes(),"UTF-8", FormatType.JSON);
}
@Override
public Class<CreateAlertResponse> getResponseClass() {
return CreateAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.CreateAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String getresult() {
return this.result;
}
public void setresult(String result) {
this.result = result;
}
@Override
public CreateAlertResponse getInstance(UnmarshallerContext context) {
return CreateAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateContactGroupRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
import java.io.UnsupportedEncodingException;
/**
* @author auto create
* @version
*/
public class CreateContactGroupRequest extends RoaAcsRequest<CreateContactGroupResponse> {
public CreateContactGroupRequest() {
super("Alert", "2015-08-15", "CreateContactGroup");
setUriPattern("/projects/[ProjectName]/groups");
setMethod(MethodType.POST);
}
private String projectName;
private String contactGroup;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContactGroup() {
return this.contactGroup;
}
public void setContactGroup(String contactGroup) {
try {
setContent(JSON.toJSONString(contactGroup).getBytes("UTF-8"),"UTF-8", FormatType.JSON);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException(e);
}
}
@Override
public Class<CreateContactGroupResponse> getResponseClass() {
return CreateContactGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateContactGroupResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.CreateContactGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateContactGroupResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String getresult() {
return this.result;
}
public void setresult(String result) {
this.result = result;
}
@Override
public CreateContactGroupResponse getInstance(UnmarshallerContext context) {
return CreateContactGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateContactRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
import java.io.UnsupportedEncodingException;
/**
* @author auto create
* @version
*/
public class CreateContactRequest extends RoaAcsRequest<CreateContactResponse> {
public CreateContactRequest() {
super("Alert", "2015-08-15", "CreateContact");
setUriPattern("/projects/[ProjectName]/contacts");
setMethod(MethodType.POST);
}
private String projectName;
private String contact;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContact() {
return this.contact;
}
public void setContact(String contact) {
try {
setContent(JSON.toJSONString(contact).getBytes("UTF-8"),"UTF-8", FormatType.JSON);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException(e);
}
}
@Override
public Class<CreateContactResponse> getResponseClass() {
return CreateContactResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateContactResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.CreateContactResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateContactResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String getresult() {
return this.result;
}
public void setresult(String result) {
this.result = result;
}
@Override
public CreateContactResponse getInstance(UnmarshallerContext context) {
return CreateContactResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateDimensionsRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.alert.domain.CmsAlertRelation;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreateDimensionsRequest extends RoaAcsRequest<CreateDimensionsResponse> {
public CreateDimensionsRequest() {
super("Alert", "2015-08-15", "CreateDimensions");
setUriPattern("/projects/[ProjectName]/alert/dimensions");
setMethod(MethodType.POST);
}
private String projectName;
private String alertName;
private CmsAlertRelation dimensions;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public CmsAlertRelation getDimensions() {
return this.dimensions;
}
public void setDimensions(CmsAlertRelation dimensions) {
//this.dimensions = dimensions;
setContent(JSON.toJSONString(dimensions).getBytes(),"UTF-8", FormatType.JSON);
}
@Override
public Class<CreateDimensionsResponse> getResponseClass() {
return CreateDimensionsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/CreateDimensionsResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.CreateDimensionsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateDimensionsResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String getresult() {
return this.result;
}
public void setresult(String result) {
this.result = result;
}
@Override
public CreateDimensionsResponse getInstance(UnmarshallerContext context) {
return CreateDimensionsResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteAlertRequest extends RoaAcsRequest<DeleteAlertResponse> {
public DeleteAlertRequest() {
super("Alert", "2015-08-15", "DeleteAlert");
setUriPattern("/projects/[ProjectName]/alert");
setMethod(MethodType.DELETE);
}
private String projectName;
private String alertName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
@Override
public Class<DeleteAlertResponse> getResponseClass() {
return DeleteAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.DeleteAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public DeleteAlertResponse getInstance(UnmarshallerContext context) {
return DeleteAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteContactGroupRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteContactGroupRequest extends RoaAcsRequest<DeleteContactGroupResponse> {
public DeleteContactGroupRequest() {
super("Alert", "2015-08-15", "DeleteContactGroup");
setUriPattern("/projects/[ProjectName]/group");
setMethod(MethodType.DELETE);
}
private String projectName;
private String groupName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
putQueryParameter("groupName", groupName);
}
@Override
public Class<DeleteContactGroupResponse> getResponseClass() {
return DeleteContactGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteContactGroupResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.DeleteContactGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteContactGroupResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public DeleteContactGroupResponse getInstance(UnmarshallerContext context) {
return DeleteContactGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteContactRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteContactRequest extends RoaAcsRequest<DeleteContactResponse> {
public DeleteContactRequest() {
super("Alert", "2015-08-15", "DeleteContact");
setUriPattern("/projects/[ProjectName]/contact");
setMethod(MethodType.DELETE);
}
private String projectName;
private String contactName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContactName() {
return this.contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
putQueryParameter("contactName", contactName);
}
@Override
public Class<DeleteContactResponse> getResponseClass() {
return DeleteContactResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteContactResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.DeleteContactResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteContactResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public DeleteContactResponse getInstance(UnmarshallerContext context) {
return DeleteContactResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteDimensionsRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteDimensionsRequest extends RoaAcsRequest<DeleteDimensionsResponse> {
public DeleteDimensionsRequest() {
super("Alert", "2015-08-15", "DeleteDimensions");
setUriPattern("/projects/[ProjectName]/alert/dimensions/[DimensionsId]");
setMethod(MethodType.DELETE);
}
private String projectName;
private String alertName;
private String dimensionsId;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public String getDimensionsId() {
return this.dimensionsId;
}
public void setDimensionsId(String dimensionsId) {
this.dimensionsId = dimensionsId;
putPathParameter("DimensionsId", dimensionsId);
}
@Override
public Class<DeleteDimensionsResponse> getResponseClass() {
return DeleteDimensionsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DeleteDimensionsResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.DeleteDimensionsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteDimensionsResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public DeleteDimensionsResponse getInstance(UnmarshallerContext context) {
return DeleteDimensionsResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DisableAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DisableAlertRequest extends RoaAcsRequest<DisableAlertResponse> {
public DisableAlertRequest() {
super("Alert", "2015-08-15", "DisableAlert");
setUriPattern("/projects/[ProjectName]/alert/disable");
setMethod(MethodType.PUT);
}
private String projectName;
private String alertName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
this.setContent("{}".getBytes(), "UTF-8", FormatType.JSON);
}
@Override
public Class<DisableAlertResponse> getResponseClass() {
return DisableAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/DisableAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.DisableAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DisableAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public DisableAlertResponse getInstance(UnmarshallerContext context) {
return DisableAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/EnableAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class EnableAlertRequest extends RoaAcsRequest<EnableAlertResponse> {
public EnableAlertRequest() {
super("Alert", "2015-08-15", "EnableAlert");
setUriPattern("/projects/[ProjectName]/alert/enable");
setMethod(MethodType.PUT);
}
private String projectName;
private String alertName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
this.setContent("{}".getBytes(), "UTF-8", FormatType.JSON);
}
@Override
public Class<EnableAlertResponse> getResponseClass() {
return EnableAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/EnableAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.EnableAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class EnableAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public EnableAlertResponse getInstance(UnmarshallerContext context) {
return EnableAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class GetAlertRequest extends RoaAcsRequest<GetAlertResponse> {
public GetAlertRequest() {
super("Alert", "2015-08-15", "GetAlert");
setUriPattern("/projects/[ProjectName]/alert");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
@Override
public Class<GetAlertResponse> getResponseClass() {
return GetAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.domain.AlertEntry;
import com.aliyuncs.alert.transform.v20150815.GetAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private AlertEntry result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public AlertEntry getresult() {
return this.result;
}
public void setresult(AlertEntry result) {
this.result = result;
}
@Override
public GetAlertResponse getInstance(UnmarshallerContext context) {
return GetAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetContactGroupRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class GetContactGroupRequest extends RoaAcsRequest<GetContactGroupResponse> {
public GetContactGroupRequest() {
super("Alert", "2015-08-15", "GetContactGroup");
setUriPattern("/projects/[ProjectName]/group");
setMethod(MethodType.GET);
}
private String projectName;
private String groupName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
putQueryParameter("groupName", groupName);
}
@Override
public Class<GetContactGroupResponse> getResponseClass() {
return GetContactGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetContactGroupResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.alert.domain.ContactGroup;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.GetContactGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetContactGroupResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private ContactGroup result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public ContactGroup getresult() {
return this.result;
}
public void setresult(ContactGroup result) {
this.result = result;
}
@Override
public GetContactGroupResponse getInstance(UnmarshallerContext context) {
return GetContactGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetContactRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class GetContactRequest extends RoaAcsRequest<GetContactResponse> {
public GetContactRequest() {
super("Alert", "2015-08-15", "GetContact");
setUriPattern("/projects/[ProjectName]/contact");
setMethod(MethodType.GET);
}
private String projectName;
private String contactName;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContactName() {
return this.contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
putQueryParameter("contactName", contactName);
}
@Override
public Class<GetContactResponse> getResponseClass() {
return GetContactResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetContactResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.alert.domain.Contact;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.GetContactResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetContactResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private Contact result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public Contact getresult() {
return this.result;
}
public void setresult(Contact result) {
this.result = result;
}
@Override
public GetContactResponse getInstance(UnmarshallerContext context) {
return GetContactResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetDimensionsRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class GetDimensionsRequest extends RoaAcsRequest<GetDimensionsResponse> {
public GetDimensionsRequest() {
super("Alert", "2015-08-15", "GetDimensions");
setUriPattern("/projects/[ProjectName]/alert/dimensions/[DimensionsId]");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
private String dimensionsId;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public String getDimensionsId() {
return this.dimensionsId;
}
public void setDimensionsId(String dimensionsId) {
this.dimensionsId = dimensionsId;
putPathParameter("DimensionsId", dimensionsId);
}
@Override
public Class<GetDimensionsResponse> getResponseClass() {
return GetDimensionsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/GetDimensionsResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.GetDimensionsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetDimensionsResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String result;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String getresult() {
return this.result;
}
public void setresult(String result) {
this.result = result;
}
@Override
public GetDimensionsResponse getInstance(UnmarshallerContext context) {
return GetDimensionsResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListAlertRequest extends RoaAcsRequest<ListAlertResponse> {
public ListAlertRequest() {
super("Alert", "2015-08-15", "ListAlert");
setUriPattern("/projects/[ProjectName]/alerts");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
private Integer page;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public Integer getPage() {
return this.page;
}
public void setPage(Integer page) {
this.page = page;
putQueryParameter("page", String.valueOf(page));
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", String.valueOf(pageSize));
}
@Override
public Class<ListAlertResponse> getResponseClass() {
return ListAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String gettotal() {
return this.total;
}
public void settotal(String total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public ListAlertResponse getInstance(UnmarshallerContext context) {
return ListAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListContactGroupRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListContactGroupRequest extends RoaAcsRequest<ListContactGroupResponse> {
public ListContactGroupRequest() {
super("Alert", "2015-08-15", "ListContactGroup");
setUriPattern("/projects/[ProjectName]/groups");
setMethod(MethodType.GET);
}
private String projectName;
private String groupName;
private Integer page;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
putQueryParameter("groupName", groupName);
}
public Integer getPage() {
return this.page;
}
public void setPage(Integer page) {
this.page = page;
putQueryParameter("page", String.valueOf(page));
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", String.valueOf(pageSize));
}
@Override
public Class<ListContactGroupResponse> getResponseClass() {
return ListContactGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListContactGroupResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListContactGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListContactGroupResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String gettotal() {
return this.total;
}
public void settotal(String total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public ListContactGroupResponse getInstance(UnmarshallerContext context) {
return ListContactGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListContactRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListContactRequest extends RoaAcsRequest<ListContactResponse> {
public ListContactRequest() {
super("Alert", "2015-08-15", "ListContact");
setUriPattern("/projects/[ProjectName]/contacts");
setMethod(MethodType.GET);
}
private String projectName;
private String contactName;
private Integer page;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContactName() {
return this.contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
putQueryParameter("contactName", contactName);
}
public Integer getPage() {
return this.page;
}
public void setPage(Integer page) {
this.page = page;
putQueryParameter("page", String.valueOf(page));
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", String.valueOf(pageSize));
}
@Override
public Class<ListContactResponse> getResponseClass() {
return ListContactResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListContactResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListContactResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListContactResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String gettotal() {
return this.total;
}
public void settotal(String total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public ListContactResponse getInstance(UnmarshallerContext context) {
return ListContactResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListDimensionsRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListDimensionsRequest extends RoaAcsRequest<ListDimensionsResponse> {
public ListDimensionsRequest() {
super("Alert", "2015-08-15", "ListDimensions");
setUriPattern("/projects/[ProjectName]/alert/dimensions");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
private Integer page;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public Integer getPage() {
return this.page;
}
public void setPage(Integer page) {
this.page = page;
putQueryParameter("page", String.valueOf(page));
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", String.valueOf(pageSize));
}
@Override
public Class<ListDimensionsResponse> getResponseClass() {
return ListDimensionsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListDimensionsResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListDimensionsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListDimensionsResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String gettotal() {
return this.total;
}
public void settotal(String total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public ListDimensionsResponse getInstance(UnmarshallerContext context) {
return ListDimensionsResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListNotifyHistoryNewRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListNotifyHistoryNewRequest extends RoaAcsRequest<ListNotifyHistoryNewResponse> {
public ListNotifyHistoryNewRequest() {
super("Alert", "2015-08-15", "ListNotifyHistoryNew");
setUriPattern("/projects/[ProjectName]/notify_history/new");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
private String dimensions;
private String service;
private String cluster;
private String startTime;
private String endTime;
private String cursor;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public String getDimensions() {
return this.dimensions;
}
public void setDimensions(String dimensions) {
this.dimensions = dimensions;
putQueryParameter("dimensions", dimensions);
}
public String getService() {
return this.service;
}
public void setService(String service) {
this.service = service;
putQueryParameter("service", service);
}
public String getCluster() {
return this.cluster;
}
public void setCluster(String cluster) {
this.cluster = cluster;
putQueryParameter("cluster", cluster);
}
public String getStartTime() {
return this.startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
putQueryParameter("startTime", startTime);
}
public String getEndTime() {
return this.endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
putQueryParameter("endTime", endTime);
}
public String getCursor() {
return this.cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
putQueryParameter("cursor", cursor);
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", pageSize);
}
@Override
public Class<ListNotifyHistoryNewResponse> getResponseClass() {
return ListNotifyHistoryNewResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListNotifyHistoryNewResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListNotifyHistoryNewResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListNotifyHistoryNewResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private List<JSONObject> datapoints;
private String cursor;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
public String getCursor() {
return this.cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public ListNotifyHistoryNewResponse getInstance(UnmarshallerContext context) {
return ListNotifyHistoryNewResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListNotifyHistoryRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListNotifyHistoryRequest extends RoaAcsRequest<ListNotifyHistoryResponse> {
public ListNotifyHistoryRequest() {
super("Alert", "2015-08-15", "ListNotifyHistory");
setUriPattern("/projects/[ProjectName]/notify_history");
setMethod(MethodType.GET);
}
private String projectName;
private String alertName;
private String dimensions;
private String startTime;
private String endTime;
private Integer page;
private Integer pageSize;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public String getDimensions() {
return this.dimensions;
}
public void setDimensions(String dimensions) {
this.dimensions = dimensions;
putQueryParameter("dimensions", dimensions);
}
public String getStartTime() {
return this.startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
putQueryParameter("startTime", startTime);
}
public String getEndTime() {
return this.endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
putQueryParameter("endTime", endTime);
}
public Integer getPage() {
return this.page;
}
public void setPage(Integer page) {
this.page = page;
putQueryParameter("page", String.valueOf(page));
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
putQueryParameter("pageSize", String.valueOf(pageSize));
}
@Override
public Class<ListNotifyHistoryResponse> getResponseClass() {
return ListNotifyHistoryResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/ListNotifyHistoryResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.ListNotifyHistoryResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class ListNotifyHistoryResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
private String total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public String gettotal() {
return this.total;
}
public void settotal(String total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public ListNotifyHistoryResponse getInstance(UnmarshallerContext context) {
return ListNotifyHistoryResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/SearchAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class SearchAlertRequest extends RoaAcsRequest<SearchAlertResponse> {
public SearchAlertRequest() {
super("Alert", "2015-08-15", "SearchAlert");
setUriPattern("/projects/[ProjectName]/search");
setMethod(MethodType.GET);
}
private String projectName;
private String namespace;
private String namePrefix;
private String metricName;
private String dimensions;
private String alarmState;
private Integer nextToken;
private Integer maxRecords;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getNamespace() {
return this.namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
putQueryParameter("namespace", namespace);
}
public String getNamePrefix() {
return this.namePrefix;
}
public void setNamePrefix(String namePrefix) {
this.namePrefix = namePrefix;
putQueryParameter("namePrefix", namePrefix);
}
public String getMetricName() {
return this.metricName;
}
public void setMetricName(String metricName) {
this.metricName = metricName;
putQueryParameter("metricName", metricName);
}
public String getDimensions() {
return this.dimensions;
}
public void setDimensions(String dimensions) {
this.dimensions = dimensions;
putQueryParameter("dimensions", dimensions);
}
public String getAlarmState() {
return this.alarmState;
}
public void setAlarmState(String alarmState) {
this.alarmState = alarmState;
putQueryParameter("alarmState", alarmState);
}
public Integer getNextToken() {
return this.nextToken;
}
public void setNextToken(Integer nextToken) {
this.nextToken = nextToken;
putQueryParameter("page", String.valueOf(nextToken));
}
public Integer getMaxRecords() {
return this.maxRecords;
}
public void setMaxRecords(Integer maxRecords) {
this.maxRecords = maxRecords;
putQueryParameter("pageSize", String.valueOf(maxRecords));
}
@Override
public Class<SearchAlertResponse> getResponseClass() {
return SearchAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/SearchAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.SearchAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
import java.util.List;
/**
* @author auto create
* @version
*/
public class SearchAlertResponse extends AcsResponse {
private String code;
private String message;
private String traceId;
private Integer nextToken;
private Integer total;
private List<JSONObject> datapoints;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
public Integer getnextToken() {
return this.nextToken;
}
public void setnextToken(Integer nextToken) {
this.nextToken = nextToken;
}
public Integer gettotal() {
return this.total;
}
public void settotal(Integer total) {
this.total = total;
}
public List<JSONObject> getDatapoints() {
return this.datapoints;
}
public void setDatapoints(List<JSONObject> datapoints) {
this.datapoints = datapoints;
}
@Override
public SearchAlertResponse getInstance(UnmarshallerContext context) {
return SearchAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateAlertRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.alert.domain.AlertEntry;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class UpdateAlertRequest extends RoaAcsRequest<UpdateAlertResponse> {
public UpdateAlertRequest() {
super("Alert", "2015-08-15", "UpdateAlert");
setUriPattern("/projects/[ProjectName]/alert");
setMethod(MethodType.PUT);
}
private String projectName;
private String alertName;
private AlertEntry alert;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
putQueryParameter("alertName", alertName);
}
public AlertEntry getAlert() {
return this.alert;
}
public void setAlert(AlertEntry alert) {
this.alert = alert;
setContent(JSON.toJSONString(alert).getBytes(),"UTF-8", FormatType.JSON);
}
@Override
public Class<UpdateAlertResponse> getResponseClass() {
return UpdateAlertResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateAlertResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.UpdateAlertResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class UpdateAlertResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public UpdateAlertResponse getInstance(UnmarshallerContext context) {
return UpdateAlertResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateContactGroupRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
import java.io.UnsupportedEncodingException;
/**
* @author auto create
* @version
*/
public class UpdateContactGroupRequest extends RoaAcsRequest<UpdateContactGroupResponse> {
public UpdateContactGroupRequest() {
super("Alert", "2015-08-15", "UpdateContactGroup");
setUriPattern("/projects/[ProjectName]/group");
setMethod(MethodType.PUT);
}
private String projectName;
private String groupName;
private String contactGroup;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
putQueryParameter("groupName", groupName);
}
public String getContactGroup() {
return this.contactGroup;
}
public void setContactGroup(String contactGroup) {
try {
setContent(JSON.toJSONString(contactGroup).getBytes("UTF-8"),"UTF-8", FormatType.JSON);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException(e);
}
}
@Override
public Class<UpdateContactGroupResponse> getResponseClass() {
return UpdateContactGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateContactGroupResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.UpdateContactGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class UpdateContactGroupResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public UpdateContactGroupResponse getInstance(UnmarshallerContext context) {
return UpdateContactGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateContactRequest.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
import java.io.UnsupportedEncodingException;
/**
* @author auto create
* @version
*/
public class UpdateContactRequest extends RoaAcsRequest<UpdateContactResponse> {
public UpdateContactRequest() {
super("Alert", "2015-08-15", "UpdateContact");
setUriPattern("/projects/[ProjectName]/contact");
setMethod(MethodType.PUT);
}
private String projectName;
private String contactName;
private String contact;
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
putPathParameter("ProjectName", projectName);
}
public String getContactName() {
return this.contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
putQueryParameter("contactName", contactName);
}
public String getContact() {
return this.contact;
}
public void setContact(String contact) {
try {
setContent(JSON.toJSONString(contact).getBytes("UTF-8"),"UTF-8", FormatType.JSON);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException(e);
}
}
@Override
public Class<UpdateContactResponse> getResponseClass() {
return UpdateContactResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model
|
java-sources/com/aliyun/aliyun-java-sdk-alert/3.0.3/com/aliyuncs/alert/model/v20150815/UpdateContactResponse.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.alert.model.v20150815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alert.transform.v20150815.UpdateContactResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class UpdateContactResponse extends AcsResponse {
private String code;
private String message;
private String success;
private String traceId;
public String getcode() {
return this.code;
}
public void setcode(String code) {
this.code = code;
}
public String getmessage() {
return this.message;
}
public void setmessage(String message) {
this.message = message;
}
public String getsuccess() {
return this.success;
}
public void setsuccess(String success) {
this.success = success;
}
public String gettraceId() {
return this.traceId;
}
public void settraceId(String traceId) {
this.traceId = traceId;
}
@Override
public UpdateContactResponse getInstance(UnmarshallerContext context) {
return UpdateContactResponseUnmarshaller.unmarshall(this, context);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.