本文整理汇总了Java中com.amazonaws.services.rds.model.DBInstance.setDBInstanceIdentifier方法的典型用法代码示例。如果您正苦于以下问题:Java DBInstance.setDBInstanceIdentifier方法的具体用法?Java DBInstance.setDBInstanceIdentifier怎么用?Java DBInstance.setDBInstanceIdentifier使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.amazonaws.services.rds.model.DBInstance
的用法示例。
在下文中一共展示了DBInstance.setDBInstanceIdentifier方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeDescribeDBInstancesResult
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes describe result with a named instance.
*/
private DescribeDBInstancesResult makeDescribeDBInstancesResult(String... instanceNames)
{
DescribeDBInstancesResult result = new DescribeDBInstancesResult();
List<DBInstance> dbInstances = new ArrayList<DBInstance>();
if (ArrayUtils.isNotEmpty(instanceNames))
{
for (String instanceName : instanceNames)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(instanceName);
dbInstances.add(dbInstance);
}
}
result.setDBInstances(dbInstances);
return result;
}
示例2: fakeInstance
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes a DBInstance
*/
private DBInstance fakeInstance(String instanceId, RdsInstanceStatus currentInstanceStatus,
String paramGroupName, RdsParameterApplyStatus currentParameterApplyStatus)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(instanceId);
dbInstance.setDBInstanceStatus(currentInstanceStatus == null ? STATUS_UNKNOWN : currentInstanceStatus.toString());
if (paramGroupName != null)
{
List<DBParameterGroupStatus> list = new ArrayList<DBParameterGroupStatus>();
DBParameterGroupStatus paramGroup = new DBParameterGroupStatus();
paramGroup.setDBParameterGroupName(paramGroupName);
paramGroup.setParameterApplyStatus(currentParameterApplyStatus == null ? STATUS_UNKNOWN : currentParameterApplyStatus.toString());
list.add(paramGroup);
dbInstance.setDBParameterGroups(list);
}
return dbInstance;
}
示例3: makeDBInstanceWithParamGroups
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes a DBInstance having the specified paramgroup names.
*/
private DBInstance makeDBInstanceWithParamGroups(RdsParameterApplyStatus parameterApplyStatus,
String... paramGroupNames)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(INSTANCE_NAME);
if (ArrayUtils.isNotEmpty(paramGroupNames))
{
Collection<DBParameterGroupStatus> paramGroups = new ArrayList<DBParameterGroupStatus>();
for (String paramGroupName : paramGroupNames)
{
paramGroups.add(makeDBParameterGroupStatus(paramGroupName, parameterApplyStatus));
}
dbInstance.setDBParameterGroups(paramGroups);
}
return dbInstance;
}
示例4: makeDBInstanceWithSecurityGroups
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes a DBInstance having the specified security group names.
*/
private DBInstance makeDBInstanceWithSecurityGroups(String... securityGroupIds)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(INSTANCE_NAME);
if (ArrayUtils.isNotEmpty(securityGroupIds))
{
List<VpcSecurityGroupMembership> securityGroups = new ArrayList<VpcSecurityGroupMembership>();
for (String securityGroupId : securityGroupIds)
{
securityGroups.add(makeVpcSecurityGroupMembership(securityGroupId));
}
dbInstance.setVpcSecurityGroups(securityGroups);
}
return dbInstance;
}
示例5: makeInstance
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
private DBInstance makeInstance(String instanceName, RdsInstanceStatus instanceStatus)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(instanceName);
dbInstance.setDBInstanceStatus(instanceStatus == null ? UNKNOWN_STATUS : instanceStatus.toString());
Endpoint endpoint = new Endpoint();
endpoint.setAddress(STAGE_ENDPOINT_ADDRESS);
dbInstance.setEndpoint(endpoint);
DBSubnetGroup dbSubnetGroup = new DBSubnetGroup();
dbSubnetGroup.setDBSubnetGroupName(SUBNET_GROUP);
dbInstance.setDBSubnetGroup(dbSubnetGroup);
return dbInstance;
}
示例6: fakeInstance
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes a DBInstance
*/
private DBInstance fakeInstance(String instanceId, RdsInstanceStatus currentStatus)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(instanceId);
dbInstance.setDBInstanceStatus(currentStatus == null ? STATUS_UNKNOWN : currentStatus.toString());
return dbInstance;
}
示例7: fakeInstance
import com.amazonaws.services.rds.model.DBInstance; //导入方法依赖的package包/类
/**
* Test helper - makes a DBInstance
*/
private DBInstance fakeInstance(RdsInstanceStatus currentStatus)
{
DBInstance dbInstance = new DBInstance();
dbInstance.setDBInstanceIdentifier(instanceId);
dbInstance.setDBInstanceStatus(currentStatus.toString());
return dbInstance;
}