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

com.google.api.services.securitycenter.v1.model.GoogleCloudSecuritycenterV2Resource Maven / Gradle / Ivy

There is a newer version: v1-rev20241111-2.0.0
Show 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.securitycenter.v1.model;

/**
 * Information related to the Google Cloud resource.
 *
 * 

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 Security Command Center 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 GoogleCloudSecuritycenterV2Resource extends com.google.api.client.json.GenericJson { /** * The AWS metadata associated with the finding. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudSecuritycenterV2AwsMetadata awsMetadata; /** * The Azure metadata associated with the finding. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudSecuritycenterV2AzureMetadata azureMetadata; /** * Indicates which cloud provider the finding is from. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cloudProvider; /** * The human readable name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * The GCP metadata associated with the finding. * The value may be {@code null}. */ @com.google.api.client.util.Key private GcpMetadata gcpMetadata; /** * The region or location of the service (if applicable). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String location; /** * The full resource name of the resource. See: * https://cloud.google.com/apis/design/resource_names#full_resource_name * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Provides the path to the resource within the resource hierarchy. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudSecuritycenterV2ResourcePath resourcePath; /** * A string representation of the resource path. For Google Cloud, it has the format of * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}` * where there can be any number of folders. For AWS, it has the format of `org/{organization_id}/ * ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}` where there can * be any number of organizational units. For Azure, it has the format of `mg/{management_group_id * }/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}` where there * can be any number of management groups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String resourcePathString; /** * The service or resource provider associated with the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String service; /** * The full resource type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * The AWS metadata associated with the finding. * @return value or {@code null} for none */ public GoogleCloudSecuritycenterV2AwsMetadata getAwsMetadata() { return awsMetadata; } /** * The AWS metadata associated with the finding. * @param awsMetadata awsMetadata or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setAwsMetadata(GoogleCloudSecuritycenterV2AwsMetadata awsMetadata) { this.awsMetadata = awsMetadata; return this; } /** * The Azure metadata associated with the finding. * @return value or {@code null} for none */ public GoogleCloudSecuritycenterV2AzureMetadata getAzureMetadata() { return azureMetadata; } /** * The Azure metadata associated with the finding. * @param azureMetadata azureMetadata or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setAzureMetadata(GoogleCloudSecuritycenterV2AzureMetadata azureMetadata) { this.azureMetadata = azureMetadata; return this; } /** * Indicates which cloud provider the finding is from. * @return value or {@code null} for none */ public java.lang.String getCloudProvider() { return cloudProvider; } /** * Indicates which cloud provider the finding is from. * @param cloudProvider cloudProvider or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setCloudProvider(java.lang.String cloudProvider) { this.cloudProvider = cloudProvider; return this; } /** * The human readable name of the resource. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * The human readable name of the resource. * @param displayName displayName or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * The GCP metadata associated with the finding. * @return value or {@code null} for none */ public GcpMetadata getGcpMetadata() { return gcpMetadata; } /** * The GCP metadata associated with the finding. * @param gcpMetadata gcpMetadata or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setGcpMetadata(GcpMetadata gcpMetadata) { this.gcpMetadata = gcpMetadata; return this; } /** * The region or location of the service (if applicable). * @return value or {@code null} for none */ public java.lang.String getLocation() { return location; } /** * The region or location of the service (if applicable). * @param location location or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setLocation(java.lang.String location) { this.location = location; return this; } /** * The full resource name of the resource. See: * https://cloud.google.com/apis/design/resource_names#full_resource_name * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The full resource name of the resource. See: * https://cloud.google.com/apis/design/resource_names#full_resource_name * @param name name or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setName(java.lang.String name) { this.name = name; return this; } /** * Provides the path to the resource within the resource hierarchy. * @return value or {@code null} for none */ public GoogleCloudSecuritycenterV2ResourcePath getResourcePath() { return resourcePath; } /** * Provides the path to the resource within the resource hierarchy. * @param resourcePath resourcePath or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setResourcePath(GoogleCloudSecuritycenterV2ResourcePath resourcePath) { this.resourcePath = resourcePath; return this; } /** * A string representation of the resource path. For Google Cloud, it has the format of * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}` * where there can be any number of folders. For AWS, it has the format of `org/{organization_id}/ * ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}` where there can * be any number of organizational units. For Azure, it has the format of `mg/{management_group_id * }/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}` where there * can be any number of management groups. * @return value or {@code null} for none */ public java.lang.String getResourcePathString() { return resourcePathString; } /** * A string representation of the resource path. For Google Cloud, it has the format of * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}` * where there can be any number of folders. For AWS, it has the format of `org/{organization_id}/ * ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}` where there can * be any number of organizational units. For Azure, it has the format of `mg/{management_group_id * }/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}` where there * can be any number of management groups. * @param resourcePathString resourcePathString or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setResourcePathString(java.lang.String resourcePathString) { this.resourcePathString = resourcePathString; return this; } /** * The service or resource provider associated with the resource. * @return value or {@code null} for none */ public java.lang.String getService() { return service; } /** * The service or resource provider associated with the resource. * @param service service or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setService(java.lang.String service) { this.service = service; return this; } /** * The full resource type of the resource. * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * The full resource type of the resource. * @param type type or {@code null} for none */ public GoogleCloudSecuritycenterV2Resource setType(java.lang.String type) { this.type = type; return this; } @Override public GoogleCloudSecuritycenterV2Resource set(String fieldName, Object value) { return (GoogleCloudSecuritycenterV2Resource) super.set(fieldName, value); } @Override public GoogleCloudSecuritycenterV2Resource clone() { return (GoogleCloudSecuritycenterV2Resource) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy