All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudasset.v1.model.GoogleCloudAssetV1GovernedContainer 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.cloudasset.v1.model;

/**
 * The organization/folder/project resource governed by organization policies of
 * AnalyzeOrgPolicyGovernedContainersRequest.constraint.
 *
 * 

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 Cloud Asset 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 GoogleCloudAssetV1GovernedContainer extends com.google.api.client.json.GenericJson { /** * The consolidated organization policy for the analyzed resource. The consolidated organization * policy is computed by merging and evaluating * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle. The evaluation will * respect the organization policy [hierarchy rules](https://cloud.google.com/resource- * manager/docs/organization-policy/understanding-hierarchy). * The value may be {@code null}. */ @com.google.api.client.util.Key private AnalyzerOrgPolicy consolidatedPolicy; /** * The effective tags on this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List effectiveTags; static { // hack to force ProGuard to consider EffectiveTagDetails used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(EffectiveTagDetails.class); } /** * The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This * field is available when the resource belongs (directly or cascadingly) to one or more folders. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List folders; /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of an organization/folder/project resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fullResourceName; /** * The organization that this resource belongs to, in the format of * organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs * (directly or cascadingly) to an organization. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String organization; /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of the parent of * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String parent; /** * The ordered list of all organization policies from the consolidated_policy.attached_resource. * to the scope specified in the request. If the constraint is defined with default policy, it * will also appear in the list. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List policyBundle; static { // hack to force ProGuard to consider AnalyzerOrgPolicy used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(AnalyzerOrgPolicy.class); } /** * The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This * field is available when the resource belongs to a project. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String project; /** * The consolidated organization policy for the analyzed resource. The consolidated organization * policy is computed by merging and evaluating * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle. The evaluation will * respect the organization policy [hierarchy rules](https://cloud.google.com/resource- * manager/docs/organization-policy/understanding-hierarchy). * @return value or {@code null} for none */ public AnalyzerOrgPolicy getConsolidatedPolicy() { return consolidatedPolicy; } /** * The consolidated organization policy for the analyzed resource. The consolidated organization * policy is computed by merging and evaluating * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle. The evaluation will * respect the organization policy [hierarchy rules](https://cloud.google.com/resource- * manager/docs/organization-policy/understanding-hierarchy). * @param consolidatedPolicy consolidatedPolicy or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setConsolidatedPolicy(AnalyzerOrgPolicy consolidatedPolicy) { this.consolidatedPolicy = consolidatedPolicy; return this; } /** * The effective tags on this resource. * @return value or {@code null} for none */ public java.util.List getEffectiveTags() { return effectiveTags; } /** * The effective tags on this resource. * @param effectiveTags effectiveTags or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setEffectiveTags(java.util.List effectiveTags) { this.effectiveTags = effectiveTags; return this; } /** * The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This * field is available when the resource belongs (directly or cascadingly) to one or more folders. * @return value or {@code null} for none */ public java.util.List getFolders() { return folders; } /** * The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This * field is available when the resource belongs (directly or cascadingly) to one or more folders. * @param folders folders or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setFolders(java.util.List folders) { this.folders = folders; return this; } /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of an organization/folder/project resource. * @return value or {@code null} for none */ public java.lang.String getFullResourceName() { return fullResourceName; } /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of an organization/folder/project resource. * @param fullResourceName fullResourceName or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setFullResourceName(java.lang.String fullResourceName) { this.fullResourceName = fullResourceName; return this; } /** * The organization that this resource belongs to, in the format of * organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs * (directly or cascadingly) to an organization. * @return value or {@code null} for none */ public java.lang.String getOrganization() { return organization; } /** * The organization that this resource belongs to, in the format of * organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs * (directly or cascadingly) to an organization. * @param organization organization or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setOrganization(java.lang.String organization) { this.organization = organization; return this; } /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of the parent of * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name. * @return value or {@code null} for none */ public java.lang.String getParent() { return parent; } /** * The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) * of the parent of * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name. * @param parent parent or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setParent(java.lang.String parent) { this.parent = parent; return this; } /** * The ordered list of all organization policies from the consolidated_policy.attached_resource. * to the scope specified in the request. If the constraint is defined with default policy, it * will also appear in the list. * @return value or {@code null} for none */ public java.util.List getPolicyBundle() { return policyBundle; } /** * The ordered list of all organization policies from the consolidated_policy.attached_resource. * to the scope specified in the request. If the constraint is defined with default policy, it * will also appear in the list. * @param policyBundle policyBundle or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setPolicyBundle(java.util.List policyBundle) { this.policyBundle = policyBundle; return this; } /** * The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This * field is available when the resource belongs to a project. * @return value or {@code null} for none */ public java.lang.String getProject() { return project; } /** * The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This * field is available when the resource belongs to a project. * @param project project or {@code null} for none */ public GoogleCloudAssetV1GovernedContainer setProject(java.lang.String project) { this.project = project; return this; } @Override public GoogleCloudAssetV1GovernedContainer set(String fieldName, Object value) { return (GoogleCloudAssetV1GovernedContainer) super.set(fieldName, value); } @Override public GoogleCloudAssetV1GovernedContainer clone() { return (GoogleCloudAssetV1GovernedContainer) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy