/* * 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.redshift.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 EnableLoggingRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The identifier of the cluster on which logging is to be started. *
*
* Example: examplecluster
*
* The name of an existing S3 bucket where the log files are to be stored. *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** The prefix applied to the log file names. *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The * hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
*
* The log destination type. An enum with possible values of s3
and cloudwatch
.
*
* The collection of exported log types. Possible values are connectionlog
,
* useractivitylog
, and userlog
.
*
* The identifier of the cluster on which logging is to be started. *
*
* Example: examplecluster
*
* Example: examplecluster
*/
public void setClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
}
/**
*
* The identifier of the cluster on which logging is to be started. *
*
* Example: examplecluster
*
* Example: examplecluster
*/
public String getClusterIdentifier() {
return this.clusterIdentifier;
}
/**
*
* The identifier of the cluster on which logging is to be started. *
*
* Example: examplecluster
*
* Example: examplecluster
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnableLoggingRequest withClusterIdentifier(String clusterIdentifier) {
setClusterIdentifier(clusterIdentifier);
return this;
}
/**
*
* The name of an existing S3 bucket where the log files are to be stored. *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** The name of an existing S3 bucket where the log files are to be stored. *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** The name of an existing S3 bucket where the log files are to be stored. *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** Constraints: *
** Must be in the same region as the cluster *
** The cluster must have read bucket and put object permissions *
** The prefix applied to the log file names. *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The * hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. * The hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
** The prefix applied to the log file names. *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The * hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. * The hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
** The prefix applied to the log file names. *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The * hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
** Constraints: *
** Cannot exceed 512 characters *
** Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. * The hexadecimal codes for invalid characters are: *
** x00 to x20 *
** x22 *
** x27 *
** x5c *
** x7f or larger *
*
* The log destination type. An enum with possible values of s3
and cloudwatch
.
*
s3
and cloudwatch
.
* @see LogDestinationType
*/
public void setLogDestinationType(String logDestinationType) {
this.logDestinationType = logDestinationType;
}
/**
*
* The log destination type. An enum with possible values of s3
and cloudwatch
.
*
s3
and cloudwatch
.
* @see LogDestinationType
*/
public String getLogDestinationType() {
return this.logDestinationType;
}
/**
*
* The log destination type. An enum with possible values of s3
and cloudwatch
.
*
s3
and cloudwatch
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogDestinationType
*/
public EnableLoggingRequest withLogDestinationType(String logDestinationType) {
setLogDestinationType(logDestinationType);
return this;
}
/**
*
* The log destination type. An enum with possible values of s3
and cloudwatch
.
*
s3
and cloudwatch
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogDestinationType
*/
public EnableLoggingRequest withLogDestinationType(LogDestinationType logDestinationType) {
this.logDestinationType = logDestinationType.toString();
return this;
}
/**
*
* The collection of exported log types. Possible values are connectionlog
,
* useractivitylog
, and userlog
.
*
connectionlog
,
* useractivitylog
, and userlog
.
*/
public java.util.List
* The collection of exported log types. Possible values are connectionlog
,
* useractivitylog
, and userlog
.
*
connectionlog
,
* useractivitylog
, and userlog
.
*/
public void setLogExports(java.util.Collection
* The collection of exported log types. Possible values are connectionlog
,
* useractivitylog
, and userlog
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogExports(java.util.Collection)} or {@link #withLogExports(java.util.Collection)} if you want to * override the existing values. *
* * @param logExports * The collection of exported log types. Possible values areconnectionlog
,
* useractivitylog
, and userlog
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnableLoggingRequest withLogExports(String... logExports) {
if (this.logExports == null) {
setLogExports(new com.amazonaws.internal.SdkInternalList
* The collection of exported log types. Possible values are connectionlog
,
* useractivitylog
, and userlog
.
*
connectionlog
,
* useractivitylog
, and userlog
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnableLoggingRequest withLogExports(java.util.Collection