code: public void marshall(UpdatePortfolioRequest updatePortfolioRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (updatePortfolioRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(updatePortfolioRequest.getAcceptLanguage(), ACCEPTLANGUAGE_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getId(), ID_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getDisplayName(), DISPLAYNAME_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getProviderName(), PROVIDERNAME_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getAddTags(), ADDTAGS_BINDING);
              protocolMarshaller.marshall(updatePortfolioRequest.getRemoveTags(), REMOVETAGS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.