类 TagClient


  • public class TagClient
    extends AbstractBceClient
    Provides the client for accessing the tag service.
    • 构造器详细资料

      • TagClient

        public TagClient()
        Constructs a new client to invoke service methods on tag.
      • TagClient

        public TagClient​(BceClientConfiguration clientConfiguration)
        Constructs a new tag client using the client configuration to access tag.
        参数:
        clientConfiguration - The tag client configuration options controlling how this client connects to tag service(e.g. proxy settings, retry counts, etc).
    • 方法详细资料

      • createTags

        public void createTags​(List<Tag> tags)
        Create tags. Tag will be ignored if it is already created. The default quota of tags is 200. Receive an exception if the total amount of tags exceeds the quota.
        参数:
        tags - List of tag to be created.
        抛出:
        BceClientException
      • createTags

        public void createTags​(CreateTagsRequest request)
        Create tags. Tag will be ignored if it is already created. The default quota of tags is 200. Receive an exception if the total amount of tags exceeds the quota.
        参数:
        request - The request containing all options for creating the tags.
        抛出:
        BceClientException
      • listTags

        public ListTagsResponse listTags​(String tagKey,
                                         String tagValue)
        Listing tags.
        参数:
        tagKey - Filtered by tag key, set value to null if you only want to filtered by tag value
        tagValue - Filtered by tag value
        返回:
        Listing result
        抛出:
        BceClientException
      • deleteTags

        public void deleteTags​(List<Tag> tags)
        Delete tags. Tag will be ignored if it is not exists.
        参数:
        tags - List of tag to be deleted.
        抛出:
        BceClientException
      • deleteTags

        public void deleteTags​(DeleteTagsRequest request)
        Delete tags. Tag will be ignored if it is not exists.
        参数:
        request - The request containing all options for deleting the tags.
        抛出:
        BceClientException