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

com.amazonaws.services.rds.model.StartActivityStreamRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2016-2021 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.rds.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 StartActivityStreamRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. *

*/ private String resourceArn; /** *

* Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or asynchronously. *

*/ private String mode; /** *

* The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The Amazon * Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

*/ private String kmsKeyId; /** *

* Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. *

*/ private Boolean applyImmediately; /** *

* Specifies whether the database activity stream includes engine-native audit fields. This option only applies to * an Oracle DB instance. By default, no engine-native audit fields are included. *

*/ private Boolean engineNativeAuditFieldsIncluded; /** *

* The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** *

* The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. *

* * @return The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. */ public String getResourceArn() { return this.resourceArn; } /** *

* The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the DB cluster, for example, * arn:aws:rds:us-east-1:12345667890:cluster:das-cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public StartActivityStreamRequest withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *

* Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or asynchronously. *

* * @param mode * Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or * asynchronously. * @see ActivityStreamMode */ public void setMode(String mode) { this.mode = mode; } /** *

* Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or asynchronously. *

* * @return Specifies the mode of the database activity stream. Database events such as a change or access generate * an activity stream event. The database session can handle these events either synchronously or * asynchronously. * @see ActivityStreamMode */ public String getMode() { return this.mode; } /** *

* Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or asynchronously. *

* * @param mode * Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or * asynchronously. * @return Returns a reference to this object so that method calls can be chained together. * @see ActivityStreamMode */ public StartActivityStreamRequest withMode(String mode) { setMode(mode); return this; } /** *

* Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or asynchronously. *

* * @param mode * Specifies the mode of the database activity stream. Database events such as a change or access generate an * activity stream event. The database session can handle these events either synchronously or * asynchronously. * @return Returns a reference to this object so that method calls can be chained together. * @see ActivityStreamMode */ public StartActivityStreamRequest withMode(ActivityStreamMode mode) { this.mode = mode.toString(); return this; } /** *

* The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The Amazon * Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

* * @param kmsKeyId * The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The * Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The Amazon * Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

* * @return The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The * Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The Amazon * Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

* * @param kmsKeyId * The Amazon Web Services KMS key identifier for encrypting messages in the database activity stream. The * Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. * @return Returns a reference to this object so that method calls can be chained together. */ public StartActivityStreamRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. *

* * @param applyImmediately * Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. */ public void setApplyImmediately(Boolean applyImmediately) { this.applyImmediately = applyImmediately; } /** *

* Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. *

* * @return Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. */ public Boolean getApplyImmediately() { return this.applyImmediately; } /** *

* Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. *

* * @param applyImmediately * Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. * @return Returns a reference to this object so that method calls can be chained together. */ public StartActivityStreamRequest withApplyImmediately(Boolean applyImmediately) { setApplyImmediately(applyImmediately); return this; } /** *

* Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. *

* * @return Specifies whether or not the database activity stream is to start as soon as possible, regardless of the * maintenance window for the database. */ public Boolean isApplyImmediately() { return this.applyImmediately; } /** *

* Specifies whether the database activity stream includes engine-native audit fields. This option only applies to * an Oracle DB instance. By default, no engine-native audit fields are included. *

* * @param engineNativeAuditFieldsIncluded * Specifies whether the database activity stream includes engine-native audit fields. This option only * applies to an Oracle DB instance. By default, no engine-native audit fields are included. */ public void setEngineNativeAuditFieldsIncluded(Boolean engineNativeAuditFieldsIncluded) { this.engineNativeAuditFieldsIncluded = engineNativeAuditFieldsIncluded; } /** *

* Specifies whether the database activity stream includes engine-native audit fields. This option only applies to * an Oracle DB instance. By default, no engine-native audit fields are included. *

* * @return Specifies whether the database activity stream includes engine-native audit fields. This option only * applies to an Oracle DB instance. By default, no engine-native audit fields are included. */ public Boolean getEngineNativeAuditFieldsIncluded() { return this.engineNativeAuditFieldsIncluded; } /** *

* Specifies whether the database activity stream includes engine-native audit fields. This option only applies to * an Oracle DB instance. By default, no engine-native audit fields are included. *

* * @param engineNativeAuditFieldsIncluded * Specifies whether the database activity stream includes engine-native audit fields. This option only * applies to an Oracle DB instance. By default, no engine-native audit fields are included. * @return Returns a reference to this object so that method calls can be chained together. */ public StartActivityStreamRequest withEngineNativeAuditFieldsIncluded(Boolean engineNativeAuditFieldsIncluded) { setEngineNativeAuditFieldsIncluded(engineNativeAuditFieldsIncluded); return this; } /** *

* Specifies whether the database activity stream includes engine-native audit fields. This option only applies to * an Oracle DB instance. By default, no engine-native audit fields are included. *

* * @return Specifies whether the database activity stream includes engine-native audit fields. This option only * applies to an Oracle DB instance. By default, no engine-native audit fields are included. */ public Boolean isEngineNativeAuditFieldsIncluded() { return this.engineNativeAuditFieldsIncluded; } /** * 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 (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getMode() != null) sb.append("Mode: ").append(getMode()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getApplyImmediately() != null) sb.append("ApplyImmediately: ").append(getApplyImmediately()).append(","); if (getEngineNativeAuditFieldsIncluded() != null) sb.append("EngineNativeAuditFieldsIncluded: ").append(getEngineNativeAuditFieldsIncluded()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartActivityStreamRequest == false) return false; StartActivityStreamRequest other = (StartActivityStreamRequest) obj; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getMode() == null ^ this.getMode() == null) return false; if (other.getMode() != null && other.getMode().equals(this.getMode()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getApplyImmediately() == null ^ this.getApplyImmediately() == null) return false; if (other.getApplyImmediately() != null && other.getApplyImmediately().equals(this.getApplyImmediately()) == false) return false; if (other.getEngineNativeAuditFieldsIncluded() == null ^ this.getEngineNativeAuditFieldsIncluded() == null) return false; if (other.getEngineNativeAuditFieldsIncluded() != null && other.getEngineNativeAuditFieldsIncluded().equals(this.getEngineNativeAuditFieldsIncluded()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getApplyImmediately() == null) ? 0 : getApplyImmediately().hashCode()); hashCode = prime * hashCode + ((getEngineNativeAuditFieldsIncluded() == null) ? 0 : getEngineNativeAuditFieldsIncluded().hashCode()); return hashCode; } @Override public StartActivityStreamRequest clone() { return (StartActivityStreamRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy