Class AthenzTenant
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.tenant.Tenant
-
- com.yahoo.vespa.hosted.controller.tenant.AthenzTenant
-
public class AthenzTenant extends Tenant
Represents an Athenz tenant in hosted Vespa.- Author:
- mpolden
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant
Tenant.Type
-
-
Constructor Summary
Constructors Constructor Description AthenzTenant(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Optional<Contact> contact, Instant createdAt, LastLoginInfo lastLoginInfo)This should only be used by serialization.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AthenzTenantcreate(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Instant createdAt)Create a new Athenz tenantcom.yahoo.vespa.athenz.api.AthenzDomaindomain()Athenz domain of this tenantbooleanin(com.yahoo.vespa.athenz.api.AthenzDomain domain)Returns true if tenant is in given domainPropertyproperty()Property name of this tenantOptional<PropertyId>propertyId()Property ID of the tenant, if anyStringtoString()Tenant.Typetype()-
Methods inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant
contact, createdAt, equals, hashCode, lastLoginInfo, name, requireName
-
-
-
-
Constructor Detail
-
AthenzTenant
public AthenzTenant(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Optional<Contact> contact, Instant createdAt, LastLoginInfo lastLoginInfo)This should only be used by serialization. Usecreate(TenantName, AthenzDomain, Property, Optional, Instant).
-
-
Method Detail
-
property
public Property property()
Property name of this tenant
-
propertyId
public Optional<PropertyId> propertyId()
Property ID of the tenant, if any
-
domain
public com.yahoo.vespa.athenz.api.AthenzDomain domain()
Athenz domain of this tenant
-
in
public boolean in(com.yahoo.vespa.athenz.api.AthenzDomain domain)
Returns true if tenant is in given domain
-
create
public static AthenzTenant create(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Instant createdAt)
Create a new Athenz tenant
-
type
public Tenant.Type type()
-
-