当前位置: 首页>>代码示例>>Java>>正文


Java DBInstance.setDBInstanceIdentifier方法代码示例

本文整理汇总了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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:20,代码来源:RdsClientTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:21,代码来源:RdsInstanceParamGroupProgressCheckerTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:20,代码来源:RdsAnalyzerTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:19,代码来源:RdsAnalyzerTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:14,代码来源:RdsSnapshotRestoreTaskTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:11,代码来源:RdsInstanceProgressCheckerTest.java

示例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;
}
 
开发者ID:Nike-Inc,项目名称:bluegreen-manager,代码行数:11,代码来源:RdsInstanceDeleteTaskTest.java


注:本文中的com.amazonaws.services.rds.model.DBInstance.setDBInstanceIdentifier方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。