本文整理汇总了Java中com.amazonaws.regions.Regions.values方法的典型用法代码示例。如果您正苦于以下问题:Java Regions.values方法的具体用法?Java Regions.values怎么用?Java Regions.values使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.amazonaws.regions.Regions
的用法示例。
在下文中一共展示了Regions.values方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: regions
import com.amazonaws.regions.Regions; //导入方法依赖的package包/类
@Test
public void regions() {
for (Regions region : Regions.values()) {
S3MapReduceCpOptions options = new OptionsParser().parse("--src", "hdfs://localhost:8020/source/first", "--dest",
"hdfs://localhost:8020/target/", "--credentialsProvider",
"jceks://[email protected]:8020/security/credentials.jceks", "--region", region.getName());
assertThat(options.getRegion(), is(region.getName()));
}
}
示例2: doFillRegionItems
import com.amazonaws.regions.Regions; //导入方法依赖的package包/类
public ListBoxModel doFillRegionItems() {
ListBoxModel items = new ListBoxModel();
items.add("", "");
for (Regions region : Regions.values()) {
Region r = Region.getRegion(region);
if (r.isServiceSupported(AmazonSQS.ENDPOINT_PREFIX) && r.isServiceSupported("codecommit")) {
items.add(region.getName(), region.name());
}
}
return items;
}
示例3: testAllRegions
import com.amazonaws.regions.Regions; //导入方法依赖的package包/类
private void testAllRegions(String serviceName, String signerType) {
assertSignerType(DEFAULT_SIGNER_TYPE, serviceName, null);
for (Regions region : Regions.values()) {
if (region == Regions.CN_NORTH_1) {
signerType = DEFAULT_SIGNER_TYPE;
}
assertSignerType(signerType, serviceName, region.getName());
}
}
示例4: testS3Signers
import com.amazonaws.regions.Regions; //导入方法依赖的package包/类
/**
* This test case tests the Amazon S3 specific signers.
*/
@Test
public void testS3Signers() {
final String serviceName = "s3";
assertSignerType(S3V4_SIGNER_TYPE, serviceName, null);
for (Regions region : Regions.values()) {
assertSignerType(S3V4_SIGNER_TYPE, serviceName,
region.getName());
}
assertSignerType(S3V4_SIGNER_TYPE, serviceName, NEW_REGION);
}
示例5: tryGetRegionBy
import com.amazonaws.regions.Regions; //导入方法依赖的package包/类
private Regions tryGetRegionBy(String regionName) {
for (Regions region : Regions.values()){
if(region.getName().equals(regionName)){
return region;
}
}
return null;
}
开发者ID:satr,项目名称:intellij-idea-plugin-connector-for-aws-lambda,代码行数:9,代码来源:ConnectorPresenterImpl.java