com.google.api.services.securitycenter.v1.model.GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule 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.securitycenter.v1.model;
/**
* Represents an instance of a Security Health Analytics custom module, including its full module
* name, display name, enablement state, and last updated time. You can create a custom module at
* the organization, folder, or project level. Custom modules that you create at the organization or
* folder level are inherited by the child folders and projects.
*
* 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 GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule extends com.google.api.client.json.GenericJson {
/**
* Output only. If empty, indicates that the custom module was created in the organization,
* folder, or project in which you are viewing the custom module. Otherwise, `ancestor_module`
* specifies the organization or folder from which the custom module is inherited.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String ancestorModule;
/**
* The user specified custom configuration for the module.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudSecuritycenterV1CustomConfig customConfig;
/**
* The display name of the Security Health Analytics custom module. This display name becomes the
* finding category for all findings that are returned by this custom module. The display name
* must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric
* characters or underscores only.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;
/**
* The enablement state of the custom module.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String enablementState;
/**
* Output only. The editor that last updated the custom module.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String lastEditor;
/**
* Immutable. The resource name of the custom module. Its format is
* "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id
* {customModule} is server-generated and is not user settable. It will be a numeric id containing
* 1-20 digits.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. The time at which the custom module was last updated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Output only. If empty, indicates that the custom module was created in the organization,
* folder, or project in which you are viewing the custom module. Otherwise, `ancestor_module`
* specifies the organization or folder from which the custom module is inherited.
* @return value or {@code null} for none
*/
public java.lang.String getAncestorModule() {
return ancestorModule;
}
/**
* Output only. If empty, indicates that the custom module was created in the organization,
* folder, or project in which you are viewing the custom module. Otherwise, `ancestor_module`
* specifies the organization or folder from which the custom module is inherited.
* @param ancestorModule ancestorModule or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setAncestorModule(java.lang.String ancestorModule) {
this.ancestorModule = ancestorModule;
return this;
}
/**
* The user specified custom configuration for the module.
* @return value or {@code null} for none
*/
public GoogleCloudSecuritycenterV1CustomConfig getCustomConfig() {
return customConfig;
}
/**
* The user specified custom configuration for the module.
* @param customConfig customConfig or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setCustomConfig(GoogleCloudSecuritycenterV1CustomConfig customConfig) {
this.customConfig = customConfig;
return this;
}
/**
* The display name of the Security Health Analytics custom module. This display name becomes the
* finding category for all findings that are returned by this custom module. The display name
* must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric
* characters or underscores only.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}
/**
* The display name of the Security Health Analytics custom module. This display name becomes the
* finding category for all findings that are returned by this custom module. The display name
* must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric
* characters or underscores only.
* @param displayName displayName or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}
/**
* The enablement state of the custom module.
* @return value or {@code null} for none
*/
public java.lang.String getEnablementState() {
return enablementState;
}
/**
* The enablement state of the custom module.
* @param enablementState enablementState or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setEnablementState(java.lang.String enablementState) {
this.enablementState = enablementState;
return this;
}
/**
* Output only. The editor that last updated the custom module.
* @return value or {@code null} for none
*/
public java.lang.String getLastEditor() {
return lastEditor;
}
/**
* Output only. The editor that last updated the custom module.
* @param lastEditor lastEditor or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setLastEditor(java.lang.String lastEditor) {
this.lastEditor = lastEditor;
return this;
}
/**
* Immutable. The resource name of the custom module. Its format is
* "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id
* {customModule} is server-generated and is not user settable. It will be a numeric id containing
* 1-20 digits.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Immutable. The resource name of the custom module. Its format is
* "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or
* "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id
* {customModule} is server-generated and is not user settable. It will be a numeric id containing
* 1-20 digits.
* @param name name or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. The time at which the custom module was last updated.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. The time at which the custom module was last updated.
* @param updateTime updateTime or {@code null} for none
*/
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule set(String fieldName, Object value) {
return (GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule) super.set(fieldName, value);
}
@Override
public GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule clone() {
return (GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy