class_docstr: Accepts network configuration parameters for conversion to request dict.
  
  The `_to_request_dict` provides a method to turn the parameters into a dict.
docstr: Generates a request dictionary using the parameters provided to the class.
docstr_tok: ["Generates","a","request","dictionary","using","the","parameters","provided","to","the","class","."]
code: def _to_request_dict(self):
      """Generates a request dictionary using the parameters provided to the class."""
      # Enable Network Isolation should default to False if it is not provided.
      enable_network_isolation = (
          False
          if self.enable_network_isolation is None
          else self.enable_network_isolation
      )
      network_config_request = {
          "EnableNetworkIsolation": enable_network_isolation
      }
  
      if self.encrypt_inter_container_traffic is not None:
          network_config_request[
              "EnableInterContainerTrafficEncryption"
          ] = self.encrypt_inter_container_traffic
  
      if (
          self.security_group_ids is not None
          or self.subnets is not None
      ):
          network_config_request["VpcConfig"] = {}
  
      if self.security_group_ids is not None:
          network_config_request["VpcConfig"][
              "SecurityGroupIds"
          ] = self.security_group_ids
  
      if self.subnets is not None:
          network_config_request["VpcConfig"]["Subnets"] = self.subnets
  
      return network_config_request
  
imports: from __future__ import absolute_import
  from typing import Union, Optional, List
  from sagemaker.workflow.entities import PipelineVariable
label_desc: Use image node_id 2 for calling the NetworkConfig obj's underlying member method code with example usage: obj._to_request_dict() and returns: network_config_request