本文整理了Java中com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersRequest.setMarker()
方法的一些代码示例,展示了DescribeLoadBalancersRequest.setMarker()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DescribeLoadBalancersRequest.setMarker()
方法的具体详情如下:
包路径:com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersRequest
类名称:DescribeLoadBalancersRequest
方法名:setMarker
[英]The marker for the next set of results. (You received this marker from a previous call.)
[中]下一组结果的标记。(您从上次通话中收到此标记。)
代码示例来源:origin: aws/aws-sdk-java
/**
* <p>
* The marker for the next set of results. (You received this marker from a previous call.)
* </p>
*
* @param marker
* The marker for the next set of results. (You received this marker from a previous call.)
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLoadBalancersRequest withMarker(String marker) {
setMarker(marker);
return this;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-elasticloadbalancing
/**
* <p>
* The marker for the next set of results. (You received this marker from a previous call.)
* </p>
*
* @param marker
* The marker for the next set of results. (You received this marker from a previous call.)
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLoadBalancersRequest withMarker(String marker) {
setMarker(marker);
return this;
}
代码示例来源:origin: tmobile/pacbot
/**
* Gets the all elbs desc.
*
* @param elbClient the elb client
* @param region the region
* @param balancersRequest the balancers request
* @return the all elbs desc
*/
public static List<LoadBalancerDescription> getAllElbsDesc(AmazonElasticLoadBalancing elbClient,
Region region, DescribeLoadBalancersRequest balancersRequest) {
List<LoadBalancerDescription> loadDescriptionList = new ArrayList<LoadBalancerDescription>();
DescribeLoadBalancersResult balancersResult;
String marker;
do {
balancersResult = elbClient.describeLoadBalancers(balancersRequest);
marker = balancersResult.getNextMarker();
balancersRequest.setMarker(marker);
loadDescriptionList.addAll(balancersResult.getLoadBalancerDescriptions());
} while (null != marker);
return loadDescriptionList;
}
代码示例来源:origin: LendingClub/mercator
private void forEachElb(Region region, Consumer<LoadBalancerDescription> consumer) {
DescribeLoadBalancersRequest request = new DescribeLoadBalancersRequest();
String marker = null;
do {
rateLimit();
DescribeLoadBalancersResult results = getClient().describeLoadBalancers(request.withMarker(marker));
marker = results.getNextMarker();
results.getLoadBalancerDescriptions().forEach(consumer);
writeTagsToNeo4j(results, region, getClient());
request.setMarker(marker);
} while (tokenHasNext(marker));
}
代码示例来源:origin: LendingClub/mercator
public void scanLoadBalancerNames(String... loadBalancerNames) {
if (loadBalancerNames == null || loadBalancerNames.length == 0) {
return;
}
DescribeLoadBalancersRequest request = new DescribeLoadBalancersRequest();
request.setLoadBalancerNames(Arrays.asList(loadBalancerNames));
String marker = null;
do {
rateLimit();
DescribeLoadBalancersResult results = getClient().describeLoadBalancers(request);
marker = results.getNextMarker();
results.getLoadBalancerDescriptions().forEach(it -> {
projectElb(it, null);
});
writeTagsToNeo4j(results, getRegion(), getClient());
request.setMarker(marker);
} while (tokenHasNext(marker));
}
内容来源于网络,如有侵权,请联系作者删除!