• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Bynder / bynder-java-sdk / 22678623886

26 Jan 2026 04:36PM UTC coverage: 39.959%. Remained the same
22678623886

Pull #150

github

web-flow
add backstage yaml and codeownership (#147)
Pull Request #150: API-2609: Include the ability to mark asset as public during Upload

6 of 8 new or added lines in 3 files covered. (75.0%)

27 existing lines in 2 files now uncovered.

788 of 1972 relevant lines covered (39.96%)

0.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/bynder/sdk/query/upload/SaveMediaQuery.java
1
/*
2
 * Copyright (c) 2017 Bynder B.V. All rights reserved.
3
 *
4
 * Licensed under the MIT License. See LICENSE file in the project root for full license
5
 * information.
6
 */
7
package com.bynder.sdk.query.upload;
8

9
import com.bynder.sdk.query.MetapropertyAttribute;
10
import com.bynder.sdk.query.decoder.ApiField;
11
import com.bynder.sdk.query.decoder.MetapropertyAttributesDecoder;
12

13
import java.util.ArrayList;
14
import java.util.List;
15

16
/**
17
 * Query with the information to save a media asset.
18
 */
19
public class SaveMediaQuery {
20

21
    /**
22
     * Import id of a finalised and processed upload to save.
23
     */
24
    @ApiField
25
    private final String importId;
26

27
    /**
28
     * Brand id to save the media asset to.
29
     */
30
    @ApiField
31
    private String brandId;
32

33
    /**
34
     * Name of the media asset.
35
     */
36
    @ApiField
37
    private String name;
38

39
    /**
40
     * Media id for which to save the new version.
41
     */
42
    @ApiField(name = "id")
43
    private String mediaId;
44

45
    /**
46
     * Flags if the media asset should be sent to the waiting room.
47
     */
48
    @ApiField
49
    private Boolean audit;
50

51
    /**
52
     * Comma-separated list of tags to be set on the asset.
53
     */
54
    @ApiField
55
    private String tags;
56

57
    /**
58
     * Dictionary with (metaproperty) options to set on the asset upon upload.
59
     */
60
    @ApiField(name = "metaproperty", decoder = MetapropertyAttributesDecoder.class)
61
    private List<MetapropertyAttribute> metaproperties;
62

NEW
63
    public SaveMediaQuery(final String importId) {
×
UNCOV
64
        this.importId = importId;
×
UNCOV
65
        this.metaproperties = new ArrayList<>();
×
UNCOV
66
    }
×
67

68
    public SaveMediaQuery setBrandId(final String brandId) {
UNCOV
69
        this.brandId = brandId;
×
70
        return this;
×
71
    }
72

73
    public SaveMediaQuery setName(final String name) {
UNCOV
74
        this.name = name;
×
UNCOV
75
        return this;
×
76
    }
77

78
    public SaveMediaQuery setMediaId(final String mediaId) {
UNCOV
79
        this.mediaId = mediaId;
×
UNCOV
80
        return this;
×
81
    }
82

83
    public SaveMediaQuery setAudit(final Boolean audit) {
UNCOV
84
        this.audit = audit;
×
UNCOV
85
        return this;
×
86
    }
87

88
    public SaveMediaQuery setTags(final String tags) {
UNCOV
89
        this.tags = tags;
×
UNCOV
90
        return this;
×
91
    }
92

93
    public SaveMediaQuery setMetaproperties(List<MetapropertyAttribute> metaproperties) {
UNCOV
94
        this.metaproperties = metaproperties;
×
UNCOV
95
        return this;
×
96
    }
97

98
    public SaveMediaQuery addMetaproperty(final MetapropertyAttribute metaproperty) {
UNCOV
99
        this.metaproperties.add(metaproperty);
×
UNCOV
100
        return this;
×
101
    }
102

103
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc