/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.securitylake.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateCustomLogSourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The configuration for the third-party custom source. *
*/ private CustomLogSourceConfiguration configuration; /** ** The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom * source will send to Security Lake. The supported event classes are: *
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* Specify the name for a third-party custom source. This must be a Regionally unique value. *
*/ private String sourceName; /** ** Specify the source version for the third-party custom source, to limit log collection to a specific version of * custom data source. *
*/ private String sourceVersion; /** ** The configuration for the third-party custom source. *
* * @param configuration * The configuration for the third-party custom source. */ public void setConfiguration(CustomLogSourceConfiguration configuration) { this.configuration = configuration; } /** ** The configuration for the third-party custom source. *
* * @return The configuration for the third-party custom source. */ public CustomLogSourceConfiguration getConfiguration() { return this.configuration; } /** ** The configuration for the third-party custom source. *
* * @param configuration * The configuration for the third-party custom source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomLogSourceRequest withConfiguration(CustomLogSourceConfiguration configuration) { setConfiguration(configuration); return this; } /** ** The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom * source will send to Security Lake. The supported event classes are: *
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom * source will send to Security Lake. The supported event classes are: *
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom * source will send to Security Lake. The supported event classes are: *
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEventClasses(java.util.Collection)} or {@link #withEventClasses(java.util.Collection)} if you want to * override the existing values. *
* * @param eventClasses * The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the * custom source will send to Security Lake. The supported event classes are: *
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom * source will send to Security Lake. The supported event classes are: *
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* ACCESS_ACTIVITY
*
* FILE_ACTIVITY
*
* KERNEL_ACTIVITY
*
* KERNEL_EXTENSION
*
* MEMORY_ACTIVITY
*
* MODULE_ACTIVITY
*
* PROCESS_ACTIVITY
*
* REGISTRY_KEY_ACTIVITY
*
* REGISTRY_VALUE_ACTIVITY
*
* RESOURCE_ACTIVITY
*
* SCHEDULED_JOB_ACTIVITY
*
* SECURITY_FINDING
*
* ACCOUNT_CHANGE
*
* AUTHENTICATION
*
* AUTHORIZATION
*
* ENTITY_MANAGEMENT_AUDIT
*
* DHCP_ACTIVITY
*
* NETWORK_ACTIVITY
*
* DNS_ACTIVITY
*
* FTP_ACTIVITY
*
* HTTP_ACTIVITY
*
* RDP_ACTIVITY
*
* SMB_ACTIVITY
*
* SSH_ACTIVITY
*
* CONFIG_STATE
*
* INVENTORY_INFO
*
* EMAIL_ACTIVITY
*
* API_ACTIVITY
*
* CLOUD_API
*
* Specify the name for a third-party custom source. This must be a Regionally unique value. *
* * @param sourceName * Specify the name for a third-party custom source. This must be a Regionally unique value. */ public void setSourceName(String sourceName) { this.sourceName = sourceName; } /** ** Specify the name for a third-party custom source. This must be a Regionally unique value. *
* * @return Specify the name for a third-party custom source. This must be a Regionally unique value. */ public String getSourceName() { return this.sourceName; } /** ** Specify the name for a third-party custom source. This must be a Regionally unique value. *
* * @param sourceName * Specify the name for a third-party custom source. This must be a Regionally unique value. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomLogSourceRequest withSourceName(String sourceName) { setSourceName(sourceName); return this; } /** ** Specify the source version for the third-party custom source, to limit log collection to a specific version of * custom data source. *
* * @param sourceVersion * Specify the source version for the third-party custom source, to limit log collection to a specific * version of custom data source. */ public void setSourceVersion(String sourceVersion) { this.sourceVersion = sourceVersion; } /** ** Specify the source version for the third-party custom source, to limit log collection to a specific version of * custom data source. *
* * @return Specify the source version for the third-party custom source, to limit log collection to a specific * version of custom data source. */ public String getSourceVersion() { return this.sourceVersion; } /** ** Specify the source version for the third-party custom source, to limit log collection to a specific version of * custom data source. *
* * @param sourceVersion * Specify the source version for the third-party custom source, to limit log collection to a specific * version of custom data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomLogSourceRequest withSourceVersion(String sourceVersion) { setSourceVersion(sourceVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()).append(","); if (getEventClasses() != null) sb.append("EventClasses: ").append(getEventClasses()).append(","); if (getSourceName() != null) sb.append("SourceName: ").append(getSourceName()).append(","); if (getSourceVersion() != null) sb.append("SourceVersion: ").append(getSourceVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCustomLogSourceRequest == false) return false; CreateCustomLogSourceRequest other = (CreateCustomLogSourceRequest) obj; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; if (other.getEventClasses() == null ^ this.getEventClasses() == null) return false; if (other.getEventClasses() != null && other.getEventClasses().equals(this.getEventClasses()) == false) return false; if (other.getSourceName() == null ^ this.getSourceName() == null) return false; if (other.getSourceName() != null && other.getSourceName().equals(this.getSourceName()) == false) return false; if (other.getSourceVersion() == null ^ this.getSourceVersion() == null) return false; if (other.getSourceVersion() != null && other.getSourceVersion().equals(this.getSourceVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); hashCode = prime * hashCode + ((getEventClasses() == null) ? 0 : getEventClasses().hashCode()); hashCode = prime * hashCode + ((getSourceName() == null) ? 0 : getSourceName().hashCode()); hashCode = prime * hashCode + ((getSourceVersion() == null) ? 0 : getSourceVersion().hashCode()); return hashCode; } @Override public CreateCustomLogSourceRequest clone() { return (CreateCustomLogSourceRequest) super.clone(); } }