本文整理汇总了Java中com.amazonaws.services.rds.model.DBInstance.getAvailabilityZone方法的典型用法代码示例。如果您正苦于以下问题:Java DBInstance.getAvailabilityZone方法的具体用法?Java DBInstance.getAvailabilityZone怎么用?Java DBInstance.getAvailabilityZone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.amazonaws.services.rds.model.DBInstance
的用法示例。
在下文中一共展示了DBInstance.getAvailabilityZone方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPropertyValue
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
@Override
protected String getPropertyValue(DBInstance dbInstance) {
return dbInstance.getAvailabilityZone();
}
示例2: RDSInstance
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
public RDSInstance(DBInstance instance, DBCluster cluster, List<Tag> tagList) {
this.allocatedStorage = instance.getAllocatedStorage();
this.autoMinorVersionUpgrade = instance.getAutoMinorVersionUpgrade();
this.availabilityZone = instance.getAvailabilityZone();
this.backupRetentionPeriod = instance.getBackupRetentionPeriod();
this.characterSetName = instance.getCharacterSetName();
this.dBInstanceClass = instance.getDBInstanceClass();
this.dBInstanceIdentifier = instance.getDBInstanceIdentifier();
this.dBInstanceStatus = instance.getDBInstanceStatus();
this.dBClusterIdentifier = instance.getDBClusterIdentifier();
this.dBName = instance.getDBName();
this.dBParameterGroups = instance.getDBParameterGroups();
this.dBSecurityGroups = instance.getDBSecurityGroups();
this.dBSubnetGroup = instance.getDBSubnetGroup();
this.endpoint = instance.getEndpoint();
if(this.endpoint != null) {
this.hostname = endpoint.getAddress();
this.privateIP = getPrivateIp(hostname);
} else {
this.hostname = null;
this.privateIP = null;
}
this.engine = instance.getEngine();
this.engineVersion = instance.getEngineVersion();
this.instanceCreateTime = instance.getInstanceCreateTime();
this.iops = instance.getIops();
this.latestRestorableTime = instance.getLatestRestorableTime();
this.licenseModel = instance.getLicenseModel();
this.masterUsername = instance.getMasterUsername();
this.multiAZ = instance.getMultiAZ();
this.optionGroupMemberships = instance.getOptionGroupMemberships();
this.pendingModifiedValues = instance.getPendingModifiedValues();
this.preferredBackupWindow = instance.getPreferredBackupWindow();
this.preferredMaintenanceWindow = instance.getPreferredMaintenanceWindow();
this.publiclyAccessible = instance.getPubliclyAccessible();
this.readReplicaDBInstanceIdentifiers = instance.getReadReplicaDBInstanceIdentifiers();
this.readReplicaSourceDBInstanceIdentifier = instance.getReadReplicaSourceDBInstanceIdentifier();
this.secondaryAvailabilityZone = instance.getSecondaryAvailabilityZone();
this.statusInfos = instance.getStatusInfos();
this.vpcSecurityGroups = instance.getVpcSecurityGroups();
this.isMaster = checkIfMaster(instance, cluster);
this.tags = new HashMap<>(tagList.size());
for(Tag tag : tagList) {
this.tags.put(tag.getKey(), tag.getValue());
}
}