com.amazonaws.services.redshift.model
Class EnableLoggingRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.redshift.model.EnableLoggingRequest
All Implemented Interfaces:
Serializable

public class EnableLoggingRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the EnableLogging operation.

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

See Also:
AmazonRedshift.enableLogging(EnableLoggingRequest), Serialized Form

Constructor Summary
EnableLoggingRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBucketName()
          The name of an existing S3 bucket where the log files are to be stored.
 String getClusterIdentifier()
          The identifier of the cluster on which logging is to be started.
 String getS3KeyPrefix()
          The prefix applied to the log file names.
 int hashCode()
           
 void setBucketName(String bucketName)
          The name of an existing S3 bucket where the log files are to be stored.
 void setClusterIdentifier(String clusterIdentifier)
          The identifier of the cluster on which logging is to be started.
 void setS3KeyPrefix(String s3KeyPrefix)
          The prefix applied to the log file names.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EnableLoggingRequest withBucketName(String bucketName)
          The name of an existing S3 bucket where the log files are to be stored.
 EnableLoggingRequest withClusterIdentifier(String clusterIdentifier)
          The identifier of the cluster on which logging is to be started.
 EnableLoggingRequest withS3KeyPrefix(String s3KeyPrefix)
          The prefix applied to the log file names.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnableLoggingRequest

public EnableLoggingRequest()
Method Detail

getClusterIdentifier

public String getClusterIdentifier()
The identifier of the cluster on which logging is to be started.

Example: examplecluster

Returns:
The identifier of the cluster on which logging is to be started.

Example: examplecluster


setClusterIdentifier

public void setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster on which logging is to be started.

Example: examplecluster

Parameters:
clusterIdentifier - The identifier of the cluster on which logging is to be started.

Example: examplecluster


withClusterIdentifier

public EnableLoggingRequest withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster on which logging is to be started.

Example: examplecluster

Returns a reference to this object so that method calls can be chained together.

Parameters:
clusterIdentifier - The identifier of the cluster on which logging is to be started.

Example: examplecluster

Returns:
A reference to this updated object so that method calls can be chained together.

getBucketName

public String getBucketName()
The name of an existing S3 bucket where the log files are to be stored.

Constraints:

Returns:
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

setBucketName

public void setBucketName(String bucketName)
The name of an existing S3 bucket where the log files are to be stored.

Constraints:

Parameters:
bucketName - 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

withBucketName

public EnableLoggingRequest withBucketName(String bucketName)
The name of an existing S3 bucket where the log files are to be stored.

Constraints:

Returns a reference to this object so that method calls can be chained together.

Parameters:
bucketName - 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
Returns:
A reference to this updated object so that method calls can be chained together.

getS3KeyPrefix

public String getS3KeyPrefix()
The prefix applied to the log file names.

Constraints:

Returns:
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

setS3KeyPrefix

public void setS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.

Constraints:

Parameters:
s3KeyPrefix - 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

withS3KeyPrefix

public EnableLoggingRequest withS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.

Constraints:

Returns a reference to this object so that method calls can be chained together.

Parameters:
s3KeyPrefix - 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
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.