blob: 7d3bcf8bdaa4c723d70be5276238b718a343d49b (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.certificate;
import com.yahoo.config.provision.InstanceName;
import com.yahoo.vespa.hosted.controller.api.integration.certificates.EndpointCertificate;
import com.yahoo.vespa.hosted.controller.application.TenantAndApplicationId;
import java.util.Optional;
/**
* Represents a certificate and its owner. A certificate is either assigned to all instances of an application, or a
* specific one.
*
* @author mpolden
*/
public record AssignedCertificate(TenantAndApplicationId application,
Optional<InstanceName> instance,
EndpointCertificate certificate) {
public AssignedCertificate with(EndpointCertificate certificate) {
return new AssignedCertificate(application, instance, certificate);
}
}
|