@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableLoggingResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Describes the status of logging for a cluster.
Constructor and Description |
---|
EnableLoggingResult() |
Modifier and Type | Method and Description |
---|---|
EnableLoggingResult |
clone() |
boolean |
equals(Object obj) |
String |
getBucketName()
The name of the S3 bucket where the log files are stored.
|
String |
getLastFailureMessage()
The message indicating that logs failed to be delivered.
|
Date |
getLastFailureTime()
The last time when logs failed to be delivered.
|
Date |
getLastSuccessfulDeliveryTime()
The last time that logs were delivered.
|
String |
getLogDestinationType()
The log destination type.
|
List<String> |
getLogExports()
The collection of exported log types.
|
Boolean |
getLoggingEnabled()
true if logging is on, false if logging is off. |
String |
getS3KeyPrefix()
The prefix applied to the log file names.
|
int |
hashCode() |
Boolean |
isLoggingEnabled()
true if logging is on, false if logging is off. |
void |
setBucketName(String bucketName)
The name of the S3 bucket where the log files are stored.
|
void |
setLastFailureMessage(String lastFailureMessage)
The message indicating that logs failed to be delivered.
|
void |
setLastFailureTime(Date lastFailureTime)
The last time when logs failed to be delivered.
|
void |
setLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
|
void |
setLogDestinationType(String logDestinationType)
The log destination type.
|
void |
setLogExports(Collection<String> logExports)
The collection of exported log types.
|
void |
setLoggingEnabled(Boolean loggingEnabled)
true if logging is on, false if logging is off. |
void |
setS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
|
String |
toString()
Returns a string representation of this object.
|
EnableLoggingResult |
withBucketName(String bucketName)
The name of the S3 bucket where the log files are stored.
|
EnableLoggingResult |
withLastFailureMessage(String lastFailureMessage)
The message indicating that logs failed to be delivered.
|
EnableLoggingResult |
withLastFailureTime(Date lastFailureTime)
The last time when logs failed to be delivered.
|
EnableLoggingResult |
withLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
|
EnableLoggingResult |
withLogDestinationType(LogDestinationType logDestinationType)
The log destination type.
|
EnableLoggingResult |
withLogDestinationType(String logDestinationType)
The log destination type.
|
EnableLoggingResult |
withLogExports(Collection<String> logExports)
The collection of exported log types.
|
EnableLoggingResult |
withLogExports(String... logExports)
The collection of exported log types.
|
EnableLoggingResult |
withLoggingEnabled(Boolean loggingEnabled)
true if logging is on, false if logging is off. |
EnableLoggingResult |
withS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setLoggingEnabled(Boolean loggingEnabled)
true
if logging is on, false
if logging is off.
loggingEnabled
- true
if logging is on, false
if logging is off.public Boolean getLoggingEnabled()
true
if logging is on, false
if logging is off.
true
if logging is on, false
if logging is off.public EnableLoggingResult withLoggingEnabled(Boolean loggingEnabled)
true
if logging is on, false
if logging is off.
loggingEnabled
- true
if logging is on, false
if logging is off.public Boolean isLoggingEnabled()
true
if logging is on, false
if logging is off.
true
if logging is on, false
if logging is off.public void setBucketName(String bucketName)
The name of the S3 bucket where the log files are stored.
bucketName
- The name of the S3 bucket where the log files are stored.public String getBucketName()
The name of the S3 bucket where the log files are stored.
public EnableLoggingResult withBucketName(String bucketName)
The name of the S3 bucket where the log files are stored.
bucketName
- The name of the S3 bucket where the log files are stored.public void setS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
s3KeyPrefix
- The prefix applied to the log file names.public String getS3KeyPrefix()
The prefix applied to the log file names.
public EnableLoggingResult withS3KeyPrefix(String s3KeyPrefix)
The prefix applied to the log file names.
s3KeyPrefix
- The prefix applied to the log file names.public void setLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
lastSuccessfulDeliveryTime
- The last time that logs were delivered.public Date getLastSuccessfulDeliveryTime()
The last time that logs were delivered.
public EnableLoggingResult withLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
lastSuccessfulDeliveryTime
- The last time that logs were delivered.public void setLastFailureTime(Date lastFailureTime)
The last time when logs failed to be delivered.
lastFailureTime
- The last time when logs failed to be delivered.public Date getLastFailureTime()
The last time when logs failed to be delivered.
public EnableLoggingResult withLastFailureTime(Date lastFailureTime)
The last time when logs failed to be delivered.
lastFailureTime
- The last time when logs failed to be delivered.public void setLastFailureMessage(String lastFailureMessage)
The message indicating that logs failed to be delivered.
lastFailureMessage
- The message indicating that logs failed to be delivered.public String getLastFailureMessage()
The message indicating that logs failed to be delivered.
public EnableLoggingResult withLastFailureMessage(String lastFailureMessage)
The message indicating that logs failed to be delivered.
lastFailureMessage
- The message indicating that logs failed to be delivered.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 EnableLoggingResult 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 EnableLoggingResult 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 EnableLoggingResult 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 EnableLoggingResult 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 EnableLoggingResult clone()