code: public void marshall(ResourceDataContainer resourceDataContainer, ProtocolMarshaller protocolMarshaller) {
  
          if (resourceDataContainer == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(resourceDataContainer.getLocalDeviceResourceData(), LOCALDEVICERESOURCEDATA_BINDING);
              protocolMarshaller.marshall(resourceDataContainer.getLocalVolumeResourceData(), LOCALVOLUMERESOURCEDATA_BINDING);
              protocolMarshaller.marshall(resourceDataContainer.getS3MachineLearningModelResourceData(), S3MACHINELEARNINGMODELRESOURCEDATA_BINDING);
              protocolMarshaller
                      .marshall(resourceDataContainer.getSageMakerMachineLearningModelResourceData(), SAGEMAKERMACHINELEARNINGMODELRESOURCEDATA_BINDING);
              protocolMarshaller.marshall(resourceDataContainer.getSecretsManagerSecretResourceData(), SECRETSMANAGERSECRETRESOURCEDATA_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.