aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/TenantInfo.java
blob: 94ae6e6bab15dd74fbceb2f51fb298f5ce7a3768 (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.application.v4.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yahoo.vespa.hosted.controller.api.identifiers.TenantId;

import java.net.URI;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
public class TenantInfo {
    public TenantId tenant;
    // TODO: make optional
    public TenantMetaData metaData;
    public URI url;

    // Required for Jackson deserialization
    public TenantInfo() {}

    public TenantInfo(TenantId tenantId, TenantMetaData metaData, URI url) {
        this.tenant = tenantId;
        this.metaData = metaData;
        this.url = url;
    }

    public TenantInfo(TenantId tenant, URI url) {
        this.tenant = tenant;
        this.url = url;
    }
}