code: public void marshall(ResolverRule resolverRule, ProtocolMarshaller protocolMarshaller) {
  
          if (resolverRule == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(resolverRule.getId(), ID_BINDING);
              protocolMarshaller.marshall(resolverRule.getCreatorRequestId(), CREATORREQUESTID_BINDING);
              protocolMarshaller.marshall(resolverRule.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(resolverRule.getDomainName(), DOMAINNAME_BINDING);
              protocolMarshaller.marshall(resolverRule.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(resolverRule.getStatusMessage(), STATUSMESSAGE_BINDING);
              protocolMarshaller.marshall(resolverRule.getRuleType(), RULETYPE_BINDING);
              protocolMarshaller.marshall(resolverRule.getName(), NAME_BINDING);
              protocolMarshaller.marshall(resolverRule.getTargetIps(), TARGETIPS_BINDING);
              protocolMarshaller.marshall(resolverRule.getResolverEndpointId(), RESOLVERENDPOINTID_BINDING);
              protocolMarshaller.marshall(resolverRule.getOwnerId(), OWNERID_BINDING);
              protocolMarshaller.marshall(resolverRule.getShareStatus(), SHARESTATUS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.