public class EnableLoggingResult extends Object 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 when logs were delivered.
|
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 when logs were delivered.
|
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; useful for testing and
debugging.
|
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 when logs were delivered.
|
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.
|
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 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 EnableLoggingResult withLoggingEnabled(Boolean loggingEnabled)
true
if logging is on, false
if logging is
off.
Returns a reference to this object so that method calls can be chained together.
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 String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the S3 bucket where the log files are stored.public EnableLoggingResult withBucketName(String bucketName)
Returns a reference to this object so that method calls can be chained together.
bucketName
- The name of the S3 bucket where the log files are stored.public String getS3KeyPrefix()
public void setS3KeyPrefix(String s3KeyPrefix)
s3KeyPrefix
- The prefix applied to the log file names.public EnableLoggingResult withS3KeyPrefix(String s3KeyPrefix)
Returns a reference to this object so that method calls can be chained together.
s3KeyPrefix
- The prefix applied to the log file names.public Date getLastSuccessfulDeliveryTime()
public void setLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
lastSuccessfulDeliveryTime
- The last time when logs were delivered.public EnableLoggingResult withLastSuccessfulDeliveryTime(Date lastSuccessfulDeliveryTime)
Returns a reference to this object so that method calls can be chained together.
lastSuccessfulDeliveryTime
- The last time when logs were delivered.public Date getLastFailureTime()
public void setLastFailureTime(Date lastFailureTime)
lastFailureTime
- The last time when logs failed to be delivered.public EnableLoggingResult withLastFailureTime(Date lastFailureTime)
Returns a reference to this object so that method calls can be chained together.
lastFailureTime
- The last time when logs failed to be delivered.public String getLastFailureMessage()
public void setLastFailureMessage(String lastFailureMessage)
lastFailureMessage
- The message indicating that logs failed to be delivered.public EnableLoggingResult withLastFailureMessage(String lastFailureMessage)
Returns a reference to this object so that method calls can be chained together.
lastFailureMessage
- The message indicating that logs failed to be delivered.public String toString()
toString
in class Object
Object.toString()
public EnableLoggingResult clone()
Copyright © 2015. All rights reserved.