aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/ProjectInfo.java
blob: a3202a9c9c2bcfccbfa79d8cca1e93fb57cf75b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;

import java.util.Map;

/**
 * @author jvenstad
 * @author mortent
 */
public class ProjectInfo {

    private final String id;
    private final Map<String, String> componentIds;

    public ProjectInfo(String id, Map<String, String> componentIds) {
        this.id = id;
        this.componentIds = componentIds;
    }

    public boolean hasComponent(String component) {
        return componentIds.containsKey(component);
    }

    public String id() {
        return id;
    }

    public Map<String, String> componentIds() {
        return componentIds;
    }
}