com.google.api.services.cloudasset.v1.model.GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy 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.cloudasset.v1.model;
/**
* The IAM policies governed by the organization policies of the
* AnalyzeOrgPolicyGovernedAssetsRequest.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 GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy extends com.google.api.client.json.GenericJson {
/**
* The asset type of the
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
* asset types.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String assetType;
/**
* The full resource name of the resource on which this IAM policy is set. Example:
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud
* Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-
* name-format) for more information.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String attachedResource;
/**
* The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This
* field is available when the IAM policy 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 organization that this IAM policy belongs to, in the format of
* organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy 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 IAM policy directly set on the given resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Policy policy;
/**
* The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This
* field is available when the IAM policy belongs to a project.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String project;
/**
* The asset type of the
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
* asset types.
* @return value or {@code null} for none
*/
public java.lang.String getAssetType() {
return assetType;
}
/**
* The asset type of the
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
* asset types.
* @param assetType assetType or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setAssetType(java.lang.String assetType) {
this.assetType = assetType;
return this;
}
/**
* The full resource name of the resource on which this IAM policy is set. Example:
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud
* Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-
* name-format) for more information.
* @return value or {@code null} for none
*/
public java.lang.String getAttachedResource() {
return attachedResource;
}
/**
* The full resource name of the resource on which this IAM policy is set. Example:
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud
* Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-
* name-format) for more information.
* @param attachedResource attachedResource or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setAttachedResource(java.lang.String attachedResource) {
this.attachedResource = attachedResource;
return this;
}
/**
* The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This
* field is available when the IAM policy 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 IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This
* field is available when the IAM policy belongs (directly or cascadingly) to one or more
* folders.
* @param folders folders or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setFolders(java.util.List folders) {
this.folders = folders;
return this;
}
/**
* The organization that this IAM policy belongs to, in the format of
* organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy 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 IAM policy belongs to, in the format of
* organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs
* (directly or cascadingly) to an organization.
* @param organization organization or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setOrganization(java.lang.String organization) {
this.organization = organization;
return this;
}
/**
* The IAM policy directly set on the given resource.
* @return value or {@code null} for none
*/
public Policy getPolicy() {
return policy;
}
/**
* The IAM policy directly set on the given resource.
* @param policy policy or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setPolicy(Policy policy) {
this.policy = policy;
return this;
}
/**
* The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This
* field is available when the IAM policy belongs to a project.
* @return value or {@code null} for none
*/
public java.lang.String getProject() {
return project;
}
/**
* The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This
* field is available when the IAM policy belongs to a project.
* @param project project or {@code null} for none
*/
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setProject(java.lang.String project) {
this.project = project;
return this;
}
@Override
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy set(String fieldName, Object value) {
return (GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy) super.set(fieldName, value);
}
@Override
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy clone() {
return (GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy