test_class.file: api/src/test/java/org/apache/cloudstack/api/command/admin/vpc/CreateVPCOfferingCmdTest.java
test_class.identifier: CreateVPCOfferingCmdTest
test_case.body: @Test
      public void testServiceProvidersEmpty() throws IllegalArgumentException,
              IllegalAccessException {
          CreateVPCOfferingCmd cmd = new CreateVPCOfferingCmd();
          ApiCmdTestUtil.set(cmd, ApiConstants.SERVICE_PROVIDER_LIST, new HashMap<String, Map<String, String>>());
          Assert.assertNull(cmd.getServiceProviders());
      }
test_case.class_method_signature: CreateVPCOfferingCmdTest.testServiceProvidersEmpty()
test_case.full_signature: @Test public void testServiceProvidersEmpty()
test_case.identifier: testServiceProvidersEmpty
test_case.invocations: set assertNull getServiceProviders
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testServiceProvidersEmpty()
focal_class.declarator: s_logger = LoggerFactory.getLogger(CreateVPCOfferingCmd.class.getName())
focal_class.modifier: public static final
focal_class.original_string: public static final Logger s_logger = LoggerFactory.getLogger(CreateVPCOfferingCmd.class.getName());
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: s_name = "createvpcofferingresponse"
focal_class.modifier: private static final
focal_class.original_string: private static final String s_name = "createvpcofferingresponse";
focal_class.type: String
focal_class.var_name: s_name
focal_class.declarator: vpcOfferingName
focal_class.modifier: @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "the name of the vpc offering")
      private
focal_class.original_string: @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "the name of the vpc offering")
      private String vpcOfferingName;
focal_class.type: String
focal_class.var_name: vpcOfferingName
focal_class.declarator: displayText
focal_class.modifier: @Parameter(name = ApiConstants.DISPLAY_TEXT, type = CommandType.STRING, required = true, description = "the display text of " + "the vpc offering")
      private
focal_class.original_string: @Parameter(name = ApiConstants.DISPLAY_TEXT, type = CommandType.STRING, required = true, description = "the display text of " + "the vpc offering")
      private String displayText;
focal_class.type: String
focal_class.var_name: displayText
focal_class.declarator: supportedServices
focal_class.modifier: @Parameter(name = ApiConstants.SUPPORTED_SERVICES,
                 type = CommandType.LIST,
                 required = true,
                 collectionType = CommandType.STRING,
                 description = "services supported by the vpc offering")
      private
focal_class.original_string: @Parameter(name = ApiConstants.SUPPORTED_SERVICES,
                 type = CommandType.LIST,
                 required = true,
                 collectionType = CommandType.STRING,
                 description = "services supported by the vpc offering")
      private List<String> supportedServices;
focal_class.type: List<String>
focal_class.var_name: supportedServices
focal_class.declarator: serviceProviderList
focal_class.modifier: @Parameter(name = ApiConstants.SERVICE_PROVIDER_LIST, type = CommandType.MAP, description = "provider to service mapping. "
          + "If not specified, the provider for the service will be mapped to the default provider on the physical network")
      private
focal_class.original_string: @Parameter(name = ApiConstants.SERVICE_PROVIDER_LIST, type = CommandType.MAP, description = "provider to service mapping. "
          + "If not specified, the provider for the service will be mapped to the default provider on the physical network")
      private Map<String, ? extends Map<String, String>> serviceProviderList;
focal_class.type: Map<String, ? extends Map<String, String>>
focal_class.var_name: serviceProviderList
focal_class.declarator: serviceCapabilitystList
focal_class.modifier: @Parameter(name = ApiConstants.SERVICE_CAPABILITY_LIST, type = CommandType.MAP, description = "desired service capabilities as part of vpc offering", since = "4.4")
      private
focal_class.original_string: @Parameter(name = ApiConstants.SERVICE_CAPABILITY_LIST, type = CommandType.MAP, description = "desired service capabilities as part of vpc offering", since = "4.4")
      private Map<String, List<String>> serviceCapabilitystList;
focal_class.type: Map<String, List<String>>
focal_class.var_name: serviceCapabilitystList
focal_class.declarator: serviceOfferingId
focal_class.modifier: @Parameter(name = ApiConstants.SERVICE_OFFERING_ID,
                 type = CommandType.UUID,
                 entityType = ServiceOfferingResponse.class,
                 description = "the ID of the service offering for the VPC router appliance")
      private
focal_class.original_string: @Parameter(name = ApiConstants.SERVICE_OFFERING_ID,
                 type = CommandType.UUID,
                 entityType = ServiceOfferingResponse.class,
                 description = "the ID of the service offering for the VPC router appliance")
      private Long serviceOfferingId;
focal_class.type: Long
focal_class.var_name: serviceOfferingId
focal_class.file: api/src/main/java/org/apache/cloudstack/api/command/admin/vpc/CreateVPCOfferingCmd.java
focal_class.identifier: CreateVPCOfferingCmd
focal_class.class_method_signature: CreateVPCOfferingCmd.getVpcOfferingName()
focal_class.full_signature: public String getVpcOfferingName()
focal_class.identifier: getVpcOfferingName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVpcOfferingName()
focal_class.class_method_signature: CreateVPCOfferingCmd.getDisplayText()
focal_class.full_signature: public String getDisplayText()
focal_class.identifier: getDisplayText
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDisplayText()
focal_class.class_method_signature: CreateVPCOfferingCmd.getSupportedServices()
focal_class.full_signature: public List<String> getSupportedServices()
focal_class.identifier: getSupportedServices
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getSupportedServices()
focal_class.class_method_signature: CreateVPCOfferingCmd.getServiceProviders()
focal_class.full_signature: public Map<String, List<String>> getServiceProviders()
focal_class.identifier: getServiceProviders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, List<String>>
focal_class.signature: Map<String, List<String>> getServiceProviders()
focal_class.class_method_signature: CreateVPCOfferingCmd.getServiceCapabilitystList()
focal_class.full_signature: public Map<String, List<String>> getServiceCapabilitystList()
focal_class.identifier: getServiceCapabilitystList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, List<String>>
focal_class.signature: Map<String, List<String>> getServiceCapabilitystList()
focal_class.class_method_signature: CreateVPCOfferingCmd.getServiceOfferingId()
focal_class.full_signature: public Long getServiceOfferingId()
focal_class.identifier: getServiceOfferingId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Long
focal_class.signature: Long getServiceOfferingId()
focal_class.class_method_signature: CreateVPCOfferingCmd.create()
focal_class.full_signature: @Override public void create()
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void create()
focal_class.class_method_signature: CreateVPCOfferingCmd.execute()
focal_class.full_signature: @Override public void execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void execute()
focal_class.class_method_signature: CreateVPCOfferingCmd.getEventType()
focal_class.full_signature: @Override public String getEventType()
focal_class.identifier: getEventType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEventType()
focal_class.class_method_signature: CreateVPCOfferingCmd.getEventDescription()
focal_class.full_signature: @Override public String getEventDescription()
focal_class.identifier: getEventDescription
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEventDescription()
focal_class.class_method_signature: CreateVPCOfferingCmd.getCommandName()
focal_class.full_signature: @Override public String getCommandName()
focal_class.identifier: getCommandName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCommandName()
focal_class.class_method_signature: CreateVPCOfferingCmd.getEntityOwnerId()
focal_class.full_signature: @Override public long getEntityOwnerId()
focal_class.identifier: getEntityOwnerId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getEntityOwnerId()
focal_class.superclass: extends BaseAsyncCreateCmd
focal_method.body: public Map<String, List<String>> getServiceProviders() {
          Map<String, List<String>> serviceProviderMap = null;
          if (serviceProviderList != null && !serviceProviderList.isEmpty()) {
              serviceProviderMap = new HashMap<String, List<String>>();
              Collection<? extends Map<String, String>> servicesCollection = serviceProviderList.values();
              Iterator<? extends Map<String, String>> iter = servicesCollection.iterator();
              while (iter.hasNext()) {
                  Map<String, String> obj = iter.next();
                  if (s_logger.isTraceEnabled()) {
                      s_logger.trace("service provider entry specified: " + obj);
                  }
                  HashMap<String, String> services = (HashMap<String, String>)obj;
                  String service = services.get("service");
                  String provider = services.get("provider");
                  List<String> providerList = null;
                  if (serviceProviderMap.containsKey(service)) {
                      providerList = serviceProviderMap.get(service);
                  } else {
                      providerList = new ArrayList<String>();
                  }
                  providerList.add(provider);
                  serviceProviderMap.put(service, providerList);
              }
          }
  
          return serviceProviderMap;
      }
focal_method.class_method_signature: CreateVPCOfferingCmd.getServiceProviders()
focal_method.full_signature: public Map<String, List<String>> getServiceProviders()
focal_method.identifier: getServiceProviders
focal_method.invocations: isEmpty values iterator hasNext next isTraceEnabled trace get get containsKey get add put
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Map<String, List<String>>
focal_method.signature: Map<String, List<String>> getServiceProviders()