org.hyperledger.fabric.sdk.QueryLifecycleQueryChaincodeDefinitionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.
/*
*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
* /
*/
package org.hyperledger.fabric.sdk;
import org.hyperledger.fabric.sdk.exception.InvalidArgumentException;
import org.hyperledger.fabric.sdk.helper.Utils;
/**
* The QueryLifecycleQueryChaincodeDefinitionRequest returns for a specific chaincode name it's
* latest sequence change, version, collections and if init is required.
* See {@link LifecycleQueryChaincodeDefinitionProposalResponse}
*/
public class QueryLifecycleQueryChaincodeDefinitionRequest extends LifecycleRequest {
private String chaincodeName;
QueryLifecycleQueryChaincodeDefinitionRequest(User userContext) {
super(userContext);
}
public String getChaincodeName() {
return chaincodeName;
}
public void setChaincodeName(String chaincodeName) throws InvalidArgumentException {
if (Utils.isNullOrEmpty(chaincodeName)) {
throw new InvalidArgumentException("The chaincodeName parameter can not be null or empty.");
}
this.chaincodeName = chaincodeName;
}
}