code: public void marshall(DomainNameConfiguration domainNameConfiguration, ProtocolMarshaller protocolMarshaller) {
  
          if (domainNameConfiguration == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(domainNameConfiguration.getApiGatewayDomainName(), APIGATEWAYDOMAINNAME_BINDING);
              protocolMarshaller.marshall(domainNameConfiguration.getCertificateArn(), CERTIFICATEARN_BINDING);
              protocolMarshaller.marshall(domainNameConfiguration.getCertificateName(), CERTIFICATENAME_BINDING);
              protocolMarshaller.marshall(domainNameConfiguration.getCertificateUploadDate(), CERTIFICATEUPLOADDATE_BINDING);
              protocolMarshaller.marshall(domainNameConfiguration.getEndpointType(), ENDPOINTTYPE_BINDING);
              protocolMarshaller.marshall(domainNameConfiguration.getHostedZoneId(), HOSTEDZONEID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.