org.jclouds.openstack.cinder.v1.domain.ZoneState类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.jclouds.openstack.cinder.v1.domain.ZoneState类的一些代码示例,展示了ZoneState类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneState类的具体详情如下:
包路径:org.jclouds.openstack.cinder.v1.domain.ZoneState
类名称:ZoneState

ZoneState介绍

[英]zone state for availability zones
[中]可用区域的区域状态

代码示例

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

public ZoneState build() {
  return new ZoneState(available);
}

代码示例来源:origin: apache/jclouds

@Override
public String toString() {
 return string().toString();
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

public Builder fromZoneState(ZoneState in) {
   return this
      .available(in.available());
 }
}

代码示例来源:origin: apache/jclouds

public Builder fromZoneState(ZoneState in) {
   return this
      .available(in.available());
 }
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

public Builder fromAvailabilityZone(AvailabilityZone in) {
   return this
      .name(in.getName())
      .available(in.getZoneState().available());
 }
}

代码示例来源:origin: apache/jclouds

public ZoneState build() {
  return new ZoneState(available);
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

@Override
public String toString() {
 return string().toString();
}

代码示例来源:origin: apache/jclouds

public Builder fromAvailabilityZone(AvailabilityZone in) {
   return this
      .name(in.getName())
      .available(in.getZoneState().available());
 }
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

public AvailabilityZone build() {
  return new AvailabilityZone(name, new ZoneState(available));
}

代码示例来源:origin: apache/jclouds

public void testListAvailabilityZones() {
   ImmutableList<? extends AvailabilityZone> cinderZones = availabilityZoneApi.list().toList();

   assertTrue(!cinderZones.isEmpty());
   for (AvailabilityZone zone : cinderZones) {
     assertTrue(!Strings.isNullOrEmpty(zone.getName()));
     assertTrue(zone.getZoneState().available());
   }

  }
}

代码示例来源:origin: apache/jclouds

public AvailabilityZone build() {
  return new AvailabilityZone(name, new ZoneState(available));
}

相关文章

ZoneState类方法