code: public void marshall(KeyPair keyPair, ProtocolMarshaller protocolMarshaller) {
  
          if (keyPair == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(keyPair.getName(), NAME_BINDING);
              protocolMarshaller.marshall(keyPair.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(keyPair.getSupportCode(), SUPPORTCODE_BINDING);
              protocolMarshaller.marshall(keyPair.getCreatedAt(), CREATEDAT_BINDING);
              protocolMarshaller.marshall(keyPair.getLocation(), LOCATION_BINDING);
              protocolMarshaller.marshall(keyPair.getResourceType(), RESOURCETYPE_BINDING);
              protocolMarshaller.marshall(keyPair.getTags(), TAGS_BINDING);
              protocolMarshaller.marshall(keyPair.getFingerprint(), FINGERPRINT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.