/* * 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the resource type RDSDBInstance
involved in a GuardDuty finding.
*
* The identifier associated to the database instance that was involved in the finding. *
*/ private String dbInstanceIdentifier; /** ** The database engine of the database instance involved in the finding. *
*/ private String engine; /** ** The version of the database engine that was involved in the finding. *
*/ private String engineVersion; /** ** The identifier of the database cluster that contains the database instance ID involved in the finding. *
*/ private String dbClusterIdentifier; /** ** The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. *
*/ private String dbInstanceArn; /** ** Instance tag key-value pairs associated with the database instance ID. *
*/ private java.util.List* The identifier associated to the database instance that was involved in the finding. *
* * @param dbInstanceIdentifier * The identifier associated to the database instance that was involved in the finding. */ public void setDbInstanceIdentifier(String dbInstanceIdentifier) { this.dbInstanceIdentifier = dbInstanceIdentifier; } /** ** The identifier associated to the database instance that was involved in the finding. *
* * @return The identifier associated to the database instance that was involved in the finding. */ public String getDbInstanceIdentifier() { return this.dbInstanceIdentifier; } /** ** The identifier associated to the database instance that was involved in the finding. *
* * @param dbInstanceIdentifier * The identifier associated to the database instance that was involved in the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withDbInstanceIdentifier(String dbInstanceIdentifier) { setDbInstanceIdentifier(dbInstanceIdentifier); return this; } /** ** The database engine of the database instance involved in the finding. *
* * @param engine * The database engine of the database instance involved in the finding. */ public void setEngine(String engine) { this.engine = engine; } /** ** The database engine of the database instance involved in the finding. *
* * @return The database engine of the database instance involved in the finding. */ public String getEngine() { return this.engine; } /** ** The database engine of the database instance involved in the finding. *
* * @param engine * The database engine of the database instance involved in the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withEngine(String engine) { setEngine(engine); return this; } /** ** The version of the database engine that was involved in the finding. *
* * @param engineVersion * The version of the database engine that was involved in the finding. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** The version of the database engine that was involved in the finding. *
* * @return The version of the database engine that was involved in the finding. */ public String getEngineVersion() { return this.engineVersion; } /** ** The version of the database engine that was involved in the finding. *
* * @param engineVersion * The version of the database engine that was involved in the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** The identifier of the database cluster that contains the database instance ID involved in the finding. *
* * @param dbClusterIdentifier * The identifier of the database cluster that contains the database instance ID involved in the finding. */ public void setDbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; } /** ** The identifier of the database cluster that contains the database instance ID involved in the finding. *
* * @return The identifier of the database cluster that contains the database instance ID involved in the finding. */ public String getDbClusterIdentifier() { return this.dbClusterIdentifier; } /** ** The identifier of the database cluster that contains the database instance ID involved in the finding. *
* * @param dbClusterIdentifier * The identifier of the database cluster that contains the database instance ID involved in the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withDbClusterIdentifier(String dbClusterIdentifier) { setDbClusterIdentifier(dbClusterIdentifier); return this; } /** ** The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. *
* * @param dbInstanceArn * The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. */ public void setDbInstanceArn(String dbInstanceArn) { this.dbInstanceArn = dbInstanceArn; } /** ** The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. *
* * @return The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. */ public String getDbInstanceArn() { return this.dbInstanceArn; } /** ** The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. *
* * @param dbInstanceArn * The Amazon Resource Name (ARN) that identifies the database instance involved in the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withDbInstanceArn(String dbInstanceArn) { setDbInstanceArn(dbInstanceArn); return this; } /** ** Instance tag key-value pairs associated with the database instance ID. *
* * @return Instance tag key-value pairs associated with the database instance ID. */ public java.util.List* Instance tag key-value pairs associated with the database instance ID. *
* * @param tags * Instance tag key-value pairs associated with the database instance ID. */ public void setTags(java.util.Collection* Instance tag key-value pairs associated with the database instance ID. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Instance tag key-value pairs associated with the database instance ID. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Instance tag key-value pairs associated with the database instance ID. *
* * @param tags * Instance tag key-value pairs associated with the database instance ID. * @return Returns a reference to this object so that method calls can be chained together. */ public RdsDbInstanceDetails withTags(java.util.Collection