@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TokenFilter extends Object implements Serializable, Cloneable, StructuredPojo
The container of the token filter like the contract address on a given blockchain network or a unique token identifier on a given blockchain network.
You must always specify the network property of this container when using this operation.
Constructor and Description |
---|
TokenFilter() |
Modifier and Type | Method and Description |
---|---|
TokenFilter |
clone() |
boolean |
equals(Object obj) |
String |
getContractAddress()
This is the address of the contract.
|
String |
getNetwork()
The blockchain network of the token.
|
String |
getTokenId()
The unique identifier of the token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContractAddress(String contractAddress)
This is the address of the contract.
|
void |
setNetwork(String network)
The blockchain network of the token.
|
void |
setTokenId(String tokenId)
The unique identifier of the token.
|
String |
toString()
Returns a string representation of this object.
|
TokenFilter |
withContractAddress(String contractAddress)
This is the address of the contract.
|
TokenFilter |
withNetwork(QueryNetwork network)
The blockchain network of the token.
|
TokenFilter |
withNetwork(String network)
The blockchain network of the token.
|
TokenFilter |
withTokenId(String tokenId)
The unique identifier of the token.
|
public void setNetwork(String network)
The blockchain network of the token.
network
- The blockchain network of the token.QueryNetwork
public String getNetwork()
The blockchain network of the token.
QueryNetwork
public TokenFilter withNetwork(String network)
The blockchain network of the token.
network
- The blockchain network of the token.QueryNetwork
public TokenFilter withNetwork(QueryNetwork network)
The blockchain network of the token.
network
- The blockchain network of the token.QueryNetwork
public void setContractAddress(String contractAddress)
This is the address of the contract.
contractAddress
- This is the address of the contract.public String getContractAddress()
This is the address of the contract.
public TokenFilter withContractAddress(String contractAddress)
This is the address of the contract.
contractAddress
- This is the address of the contract.public void setTokenId(String tokenId)
The unique identifier of the token.
tokenId
- The unique identifier of the token.public String getTokenId()
The unique identifier of the token.
public TokenFilter withTokenId(String tokenId)
The unique identifier of the token.
tokenId
- The unique identifier of the token.public String toString()
toString
in class Object
Object.toString()
public TokenFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.