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

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

/**
 * Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is
 * not one of Pod, Node, NodePool, Binding, or AccessReview.
 *
 * 

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 SecurityCommandCenterObject extends com.google.api.client.json.GenericJson { /** * Pod containers associated with this finding, if any. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List containers; static { // hack to force ProGuard to consider Container 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(Container.class); } /** * Kubernetes object group, such as "policy.k8s.io/v1". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String group; /** * Kubernetes object kind, such as "Namespace". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working- * with-objects/names/. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ * namespace keyword. For details see https://kubernetes.io/docs/tasks/administer- * cluster/namespaces/. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ns; /** * Pod containers associated with this finding, if any. * @return value or {@code null} for none */ public java.util.List getContainers() { return containers; } /** * Pod containers associated with this finding, if any. * @param containers containers or {@code null} for none */ public SecurityCommandCenterObject setContainers(java.util.List containers) { this.containers = containers; return this; } /** * Kubernetes object group, such as "policy.k8s.io/v1". * @return value or {@code null} for none */ public java.lang.String getGroup() { return group; } /** * Kubernetes object group, such as "policy.k8s.io/v1". * @param group group or {@code null} for none */ public SecurityCommandCenterObject setGroup(java.lang.String group) { this.group = group; return this; } /** * Kubernetes object kind, such as "Namespace". * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * Kubernetes object kind, such as "Namespace". * @param kind kind or {@code null} for none */ public SecurityCommandCenterObject setKind(java.lang.String kind) { this.kind = kind; return this; } /** * Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working- * with-objects/names/. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working- * with-objects/names/. * @param name name or {@code null} for none */ public SecurityCommandCenterObject setName(java.lang.String name) { this.name = name; return this; } /** * Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ * namespace keyword. For details see https://kubernetes.io/docs/tasks/administer- * cluster/namespaces/. * @return value or {@code null} for none */ public java.lang.String getNs() { return ns; } /** * Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ * namespace keyword. For details see https://kubernetes.io/docs/tasks/administer- * cluster/namespaces/. * @param ns ns or {@code null} for none */ public SecurityCommandCenterObject setNs(java.lang.String ns) { this.ns = ns; return this; } @Override public SecurityCommandCenterObject set(String fieldName, Object value) { return (SecurityCommandCenterObject) super.set(fieldName, value); } @Override public SecurityCommandCenterObject clone() { return (SecurityCommandCenterObject) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy