@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableLoggingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
EnableLoggingRequest() |
Modifier and Type | Method and Description |
---|---|
EnableLoggingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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 |
getLogDestinationType()
The log destination type.
|
List<String> |
getLogExports()
The collection of exported log types.
|
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 |
setLogDestinationType(String logDestinationType)
The log destination type.
|
void |
setLogExports(Collection<String> logExports)
The collection of exported log types.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withLogDestinationType(LogDestinationType logDestinationType)
The log destination type.
|
EnableLoggingRequest |
withLogDestinationType(String logDestinationType)
The log destination type.
|
EnableLoggingRequest |
withLogExports(Collection<String> logExports)
The collection of exported log types.
|
EnableLoggingRequest |
withLogExports(String... logExports)
The collection of exported log types.
|
EnableLoggingRequest |
withS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster on which logging is to be started.
Example: examplecluster
clusterIdentifier
- The identifier of the cluster on which logging is to be started.
Example: examplecluster
public String getClusterIdentifier()
The identifier of the cluster on which logging is to be started.
Example: examplecluster
Example: examplecluster
public EnableLoggingRequest withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster on which logging is to be started.
Example: examplecluster
clusterIdentifier
- The identifier of the cluster on which logging is to be started.
Example: examplecluster
public void setBucketName(String 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
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
public String getBucketName()
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
public EnableLoggingRequest withBucketName(String 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
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
public void setS3KeyPrefix(String 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
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
public String getS3KeyPrefix()
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
public EnableLoggingRequest withS3KeyPrefix(String 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
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
public void setLogDestinationType(String logDestinationType)
The log destination type. An enum with possible values of s3
and cloudwatch
.
logDestinationType
- The log destination type. An enum with possible values of s3
and cloudwatch
.LogDestinationType
public String getLogDestinationType()
The log destination type. An enum with possible values of s3
and cloudwatch
.
s3
and cloudwatch
.LogDestinationType
public EnableLoggingRequest withLogDestinationType(String logDestinationType)
The log destination type. An enum with possible values of s3
and cloudwatch
.
logDestinationType
- The log destination type. An enum with possible values of s3
and cloudwatch
.LogDestinationType
public EnableLoggingRequest withLogDestinationType(LogDestinationType logDestinationType)
The log destination type. An enum with possible values of s3
and cloudwatch
.
logDestinationType
- The log destination type. An enum with possible values of s3
and cloudwatch
.LogDestinationType
public List<String> getLogExports()
The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.
connectionlog
,
useractivitylog
, and userlog
.public void setLogExports(Collection<String> logExports)
The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.
logExports
- The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.public EnableLoggingRequest withLogExports(String... logExports)
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
setLogExports(java.util.Collection)
or withLogExports(java.util.Collection)
if you want to
override the existing values.
logExports
- The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.public EnableLoggingRequest withLogExports(Collection<String> logExports)
The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.
logExports
- The collection of exported log types. Possible values are connectionlog
,
useractivitylog
, and userlog
.public String toString()
toString
in class Object
Object.toString()
public EnableLoggingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()