com.google.api.services.serviceconsumermanagement.v1.model.TenancyUnit Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.serviceconsumermanagement.v1.model;
/**
* Representation of a tenancy unit.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Service Consumer Management API. For a detailed
* explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TenancyUnit extends com.google.api.client.json.GenericJson {
/**
* Output only. @OutputOnly Cloud resource name of the consumer of this service. For example
* 'projects/123456'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String consumer;
/**
* Output only. @OutputOnly The time this tenancy unit was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
* id}/tenancyUnits/{unit}"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. Google Cloud API name of the managed service owning this tenancy unit. For example
* 'serviceconsumermanagement.googleapis.com'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String service;
/**
* Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy
* unit.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List tenantResources;
/**
* Output only. @OutputOnly Cloud resource name of the consumer of this service. For example
* 'projects/123456'.
* @return value or {@code null} for none
*/
public java.lang.String getConsumer() {
return consumer;
}
/**
* Output only. @OutputOnly Cloud resource name of the consumer of this service. For example
* 'projects/123456'.
* @param consumer consumer or {@code null} for none
*/
public TenancyUnit setConsumer(java.lang.String consumer) {
this.consumer = consumer;
return this;
}
/**
* Output only. @OutputOnly The time this tenancy unit was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. @OutputOnly The time this tenancy unit was created.
* @param createTime createTime or {@code null} for none
*/
public TenancyUnit setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
* id}/tenancyUnits/{unit}"
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
* id}/tenancyUnits/{unit}"
* @param name name or {@code null} for none
*/
public TenancyUnit setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. Google Cloud API name of the managed service owning this tenancy unit. For example
* 'serviceconsumermanagement.googleapis.com'.
* @return value or {@code null} for none
*/
public java.lang.String getService() {
return service;
}
/**
* Output only. Google Cloud API name of the managed service owning this tenancy unit. For example
* 'serviceconsumermanagement.googleapis.com'.
* @param service service or {@code null} for none
*/
public TenancyUnit setService(java.lang.String service) {
this.service = service;
return this;
}
/**
* Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy
* unit.
* @return value or {@code null} for none
*/
public java.util.List getTenantResources() {
return tenantResources;
}
/**
* Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy
* unit.
* @param tenantResources tenantResources or {@code null} for none
*/
public TenancyUnit setTenantResources(java.util.List tenantResources) {
this.tenantResources = tenantResources;
return this;
}
@Override
public TenancyUnit set(String fieldName, Object value) {
return (TenancyUnit) super.set(fieldName, value);
}
@Override
public TenancyUnit clone() {
return (TenancyUnit) super.clone();
}
}