Class TokenPauseTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenPauseTransactionBody,TokenPauseTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenPauseTransactionBody,TokenPauseTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenPauseTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TokenPauseTransactionBodyOrBuilder, Cloneable
Enclosing class:
TokenPauseTransactionBody

public static final class TokenPauseTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenPauseTransactionBody,TokenPauseTransactionBody.Builder> implements TokenPauseTransactionBodyOrBuilder
 *
 Pause transaction activity for a token.

 This transaction MUST be signed by the Token `pause_key`.<br/>
 The `token` identified MUST exist, and MUST NOT be deleted.<br/>
 The `token` identified MAY be paused; if the token is already paused,
 this transaction SHALL have no effect.
 The `token` identified MUST have a `pause_key` set, the `pause_key` MUST be
 a valid `Key`, and the `pause_key` MUST NOT be an empty `KeyList`.<br/>
 A `paused` token SHALL NOT be transferred or otherwise modified except to
 "up-pause" the token with `unpauseToken` or in a `rejectToken` transaction.

 ### Block Stream Effects
 None
 
Protobuf type proto.TokenPauseTransactionBody
  • Method Details

    • hasToken

      public boolean hasToken()
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;
      Specified by:
      hasToken in interface TokenPauseTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID getToken()
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;
      Specified by:
      getToken in interface TokenPauseTransactionBodyOrBuilder
      Returns:
      The token.
    • setToken

      public TokenPauseTransactionBody.Builder setToken(TokenID value)
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;
    • setToken

      public TokenPauseTransactionBody.Builder setToken(TokenID.Builder builderForValue)
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;
    • mergeToken

      public TokenPauseTransactionBody.Builder mergeToken(TokenID value)
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;
    • clearToken

      public TokenPauseTransactionBody.Builder clearToken()
       *
       A token identifier.
       <p>
       The identified token SHALL be paused. Subsequent transactions
       involving that token SHALL fail until the token is "unpaused".
       
      .proto.TokenID token = 1;