public Request<AssociateCreatedArtifactRequest> marshall(AssociateCreatedArtifactRequest associateCreatedArtifactRequest) { if (associateCreatedArtifactRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<AssociateCreatedArtifactRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller( SDK_OPERATION_BINDING, associateCreatedArtifactRequest); protocolMarshaller.startMarshalling(); AssociateCreatedArtifactRequestMarshaller.getInstance().marshall(associateCreatedArtifactRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public Request<AssociateCreatedArtifactRequest> marshall(AssociateCreatedArtifactRequest associateCreatedArtifactRequest) { if (associateCreatedArtifactRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<AssociateCreatedArtifactRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller( SDK_OPERATION_BINDING, associateCreatedArtifactRequest); protocolMarshaller.startMarshalling(); AssociateCreatedArtifactRequestMarshaller.getInstance().marshall(associateCreatedArtifactRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }