com.google.api.services.servicecontrol.v2.model.ResourceInfo Maven / Gradle / Ivy
The newest version!
/*
* 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.servicecontrol.v2.model;
/**
* Describes a resource referenced in the request.
*
* 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 Control 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 ResourceInfo extends com.google.api.client.json.GenericJson {
/**
* Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource
* container must be one of the following formats: - `projects/` - `folders/` - `organizations/`
* Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check,
* Org Policy check).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String container;
/**
* Optional. The location of the resource, it must be a valid zone, region or multiregion, for
* example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String location;
/**
* The name of the resource referenced in the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The resource permission needed for this request. The format must be
* "{service}/{plural}.{verb}".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String permission;
/**
* The resource type in the format of "{service}/{kind}".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource
* container must be one of the following formats: - `projects/` - `folders/` - `organizations/`
* Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check,
* Org Policy check).
* @return value or {@code null} for none
*/
public java.lang.String getContainer() {
return container;
}
/**
* Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource
* container must be one of the following formats: - `projects/` - `folders/` - `organizations/`
* Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check,
* Org Policy check).
* @param container container or {@code null} for none
*/
public ResourceInfo setContainer(java.lang.String container) {
this.container = container;
return this;
}
/**
* Optional. The location of the resource, it must be a valid zone, region or multiregion, for
* example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
* @return value or {@code null} for none
*/
public java.lang.String getLocation() {
return location;
}
/**
* Optional. The location of the resource, it must be a valid zone, region or multiregion, for
* example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
* @param location location or {@code null} for none
*/
public ResourceInfo setLocation(java.lang.String location) {
this.location = location;
return this;
}
/**
* The name of the resource referenced in the request.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the resource referenced in the request.
* @param name name or {@code null} for none
*/
public ResourceInfo setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The resource permission needed for this request. The format must be
* "{service}/{plural}.{verb}".
* @return value or {@code null} for none
*/
public java.lang.String getPermission() {
return permission;
}
/**
* The resource permission needed for this request. The format must be
* "{service}/{plural}.{verb}".
* @param permission permission or {@code null} for none
*/
public ResourceInfo setPermission(java.lang.String permission) {
this.permission = permission;
return this;
}
/**
* The resource type in the format of "{service}/{kind}".
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The resource type in the format of "{service}/{kind}".
* @param type type or {@code null} for none
*/
public ResourceInfo setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public ResourceInfo set(String fieldName, Object value) {
return (ResourceInfo) super.set(fieldName, value);
}
@Override
public ResourceInfo clone() {
return (ResourceInfo) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy