public class EnableLoggingResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the status of logging for a cluster.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The name of the S3 bucket where the log files are stored.
|
private java.lang.String |
lastFailureMessage
The message indicating that logs failed to be delivered.
|
private java.util.Date |
lastFailureTime
The last time when logs failed to be delivered.
|
private java.util.Date |
lastSuccessfulDeliveryTime
The last time that logs were delivered.
|
private java.lang.Boolean |
loggingEnabled
true if logging is on, false if logging is off. |
private java.lang.String |
s3KeyPrefix
The prefix applied to the log file names.
|
Constructor and Description |
---|
EnableLoggingResult() |
Modifier and Type | Method and Description |
---|---|
EnableLoggingResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucketName()
The name of the S3 bucket where the log files are stored.
|
java.lang.String |
getLastFailureMessage()
The message indicating that logs failed to be delivered.
|
java.util.Date |
getLastFailureTime()
The last time when logs failed to be delivered.
|
java.util.Date |
getLastSuccessfulDeliveryTime()
The last time that logs were delivered.
|
java.lang.Boolean |
getLoggingEnabled()
true if logging is on, false if logging is off. |
java.lang.String |
getS3KeyPrefix()
The prefix applied to the log file names.
|
int |
hashCode() |
java.lang.Boolean |
isLoggingEnabled()
true if logging is on, false if logging is off. |
void |
setBucketName(java.lang.String bucketName)
The name of the S3 bucket where the log files are stored.
|
void |
setLastFailureMessage(java.lang.String lastFailureMessage)
The message indicating that logs failed to be delivered.
|
void |
setLastFailureTime(java.util.Date lastFailureTime)
The last time when logs failed to be delivered.
|
void |
setLastSuccessfulDeliveryTime(java.util.Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
|
void |
setLoggingEnabled(java.lang.Boolean loggingEnabled)
true if logging is on, false if logging is off. |
void |
setS3KeyPrefix(java.lang.String s3KeyPrefix)
The prefix applied to the log file names.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableLoggingResult |
withBucketName(java.lang.String bucketName)
The name of the S3 bucket where the log files are stored.
|
EnableLoggingResult |
withLastFailureMessage(java.lang.String lastFailureMessage)
The message indicating that logs failed to be delivered.
|
EnableLoggingResult |
withLastFailureTime(java.util.Date lastFailureTime)
The last time when logs failed to be delivered.
|
EnableLoggingResult |
withLastSuccessfulDeliveryTime(java.util.Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
|
EnableLoggingResult |
withLoggingEnabled(java.lang.Boolean loggingEnabled)
true if logging is on, false if logging is off. |
EnableLoggingResult |
withS3KeyPrefix(java.lang.String s3KeyPrefix)
The prefix applied to the log file names.
|
private java.lang.Boolean loggingEnabled
true
if logging is on, false
if logging is off.
private java.lang.String bucketName
The name of the S3 bucket where the log files are stored.
private java.lang.String s3KeyPrefix
The prefix applied to the log file names.
private java.util.Date lastSuccessfulDeliveryTime
The last time that logs were delivered.
private java.util.Date lastFailureTime
The last time when logs failed to be delivered.
private java.lang.String lastFailureMessage
The message indicating that logs failed to be delivered.
public void setLoggingEnabled(java.lang.Boolean loggingEnabled)
true
if logging is on, false
if logging is off.
loggingEnabled
- true if logging is on, false
public java.lang.Boolean getLoggingEnabled()
true
if logging is on, false
if logging is off.
false
public EnableLoggingResult withLoggingEnabled(java.lang.Boolean loggingEnabled)
true
if logging is on, false
if logging is off.
loggingEnabled
- true if logging is on, false
public java.lang.Boolean isLoggingEnabled()
true
if logging is on, false
if logging is off.
false
public void setBucketName(java.lang.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 java.lang.String getBucketName()
The name of the S3 bucket where the log files are stored.
public EnableLoggingResult withBucketName(java.lang.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(java.lang.String s3KeyPrefix)
The prefix applied to the log file names.
s3KeyPrefix
- The prefix applied to the log file names.public java.lang.String getS3KeyPrefix()
The prefix applied to the log file names.
public EnableLoggingResult withS3KeyPrefix(java.lang.String s3KeyPrefix)
The prefix applied to the log file names.
s3KeyPrefix
- The prefix applied to the log file names.public void setLastSuccessfulDeliveryTime(java.util.Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
lastSuccessfulDeliveryTime
- The last time that logs were delivered.public java.util.Date getLastSuccessfulDeliveryTime()
The last time that logs were delivered.
public EnableLoggingResult withLastSuccessfulDeliveryTime(java.util.Date lastSuccessfulDeliveryTime)
The last time that logs were delivered.
lastSuccessfulDeliveryTime
- The last time that logs were delivered.public void setLastFailureTime(java.util.Date lastFailureTime)
The last time when logs failed to be delivered.
lastFailureTime
- The last time when logs failed to be delivered.public java.util.Date getLastFailureTime()
The last time when logs failed to be delivered.
public EnableLoggingResult withLastFailureTime(java.util.Date lastFailureTime)
The last time when logs failed to be delivered.
lastFailureTime
- The last time when logs failed to be delivered.public void setLastFailureMessage(java.lang.String lastFailureMessage)
The message indicating that logs failed to be delivered.
lastFailureMessage
- The message indicating that logs failed to be delivered.public java.lang.String getLastFailureMessage()
The message indicating that logs failed to be delivered.
public EnableLoggingResult withLastFailureMessage(java.lang.String lastFailureMessage)
The message indicating that logs failed to be delivered.
lastFailureMessage
- The message indicating that logs failed to be delivered.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EnableLoggingResult clone()
clone
in class java.lang.Object