@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LogDeliveryConfiguration extends Object implements Serializable, Cloneable
Returns the destination, format and type of the logs.
| Constructor and Description |
|---|
LogDeliveryConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
LogDeliveryConfiguration |
clone() |
boolean |
equals(Object obj) |
DestinationDetails |
getDestinationDetails()
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
String |
getDestinationType()
Returns the destination type, either
cloudwatch-logs or kinesis-firehose. |
String |
getLogFormat()
Returns the log format, either JSON or TEXT.
|
String |
getLogType()
Refers to slow-log.
|
String |
getMessage()
Returns an error message for the log delivery configuration.
|
String |
getStatus()
Returns the log delivery configuration status.
|
int |
hashCode() |
void |
setDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
void |
setDestinationType(String destinationType)
Returns the destination type, either
cloudwatch-logs or kinesis-firehose. |
void |
setLogFormat(String logFormat)
Returns the log format, either JSON or TEXT.
|
void |
setLogType(String logType)
Refers to slow-log.
|
void |
setMessage(String message)
Returns an error message for the log delivery configuration.
|
void |
setStatus(String status)
Returns the log delivery configuration status.
|
String |
toString()
Returns a string representation of this object.
|
LogDeliveryConfiguration |
withDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
LogDeliveryConfiguration |
withDestinationType(DestinationType destinationType)
Returns the destination type, either
cloudwatch-logs or kinesis-firehose. |
LogDeliveryConfiguration |
withDestinationType(String destinationType)
Returns the destination type, either
cloudwatch-logs or kinesis-firehose. |
LogDeliveryConfiguration |
withLogFormat(LogFormat logFormat)
Returns the log format, either JSON or TEXT.
|
LogDeliveryConfiguration |
withLogFormat(String logFormat)
Returns the log format, either JSON or TEXT.
|
LogDeliveryConfiguration |
withLogType(LogType logType)
Refers to slow-log.
|
LogDeliveryConfiguration |
withLogType(String logType)
Refers to slow-log.
|
LogDeliveryConfiguration |
withMessage(String message)
Returns an error message for the log delivery configuration.
|
LogDeliveryConfiguration |
withStatus(LogDeliveryConfigurationStatus status)
Returns the log delivery configuration status.
|
LogDeliveryConfiguration |
withStatus(String status)
Returns the log delivery configuration status.
|
public LogDeliveryConfiguration withLogType(String logType)
Refers to slow-log.
public LogDeliveryConfiguration withLogType(LogType logType)
Refers to slow-log.
public void setDestinationType(String destinationType)
Returns the destination type, either cloudwatch-logs or kinesis-firehose.
destinationType - Returns the destination type, either cloudwatch-logs or kinesis-firehose.DestinationTypepublic String getDestinationType()
Returns the destination type, either cloudwatch-logs or kinesis-firehose.
cloudwatch-logs or kinesis-firehose.DestinationTypepublic LogDeliveryConfiguration withDestinationType(String destinationType)
Returns the destination type, either cloudwatch-logs or kinesis-firehose.
destinationType - Returns the destination type, either cloudwatch-logs or kinesis-firehose.DestinationTypepublic LogDeliveryConfiguration withDestinationType(DestinationType destinationType)
Returns the destination type, either cloudwatch-logs or kinesis-firehose.
destinationType - Returns the destination type, either cloudwatch-logs or kinesis-firehose.DestinationTypepublic void setDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
destinationDetails - Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.public DestinationDetails getDestinationDetails()
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
public LogDeliveryConfiguration withDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
destinationDetails - Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.public void setLogFormat(String logFormat)
Returns the log format, either JSON or TEXT.
logFormat - Returns the log format, either JSON or TEXT.LogFormatpublic String getLogFormat()
Returns the log format, either JSON or TEXT.
LogFormatpublic LogDeliveryConfiguration withLogFormat(String logFormat)
Returns the log format, either JSON or TEXT.
logFormat - Returns the log format, either JSON or TEXT.LogFormatpublic LogDeliveryConfiguration withLogFormat(LogFormat logFormat)
Returns the log format, either JSON or TEXT.
logFormat - Returns the log format, either JSON or TEXT.LogFormatpublic void setStatus(String status)
Returns the log delivery configuration status. Values are one of enabling | disabling |
modifying | active | error
status - Returns the log delivery configuration status. Values are one of enabling |
disabling | modifying | active | errorLogDeliveryConfigurationStatuspublic String getStatus()
Returns the log delivery configuration status. Values are one of enabling | disabling |
modifying | active | error
enabling |
disabling | modifying | active | errorLogDeliveryConfigurationStatuspublic LogDeliveryConfiguration withStatus(String status)
Returns the log delivery configuration status. Values are one of enabling | disabling |
modifying | active | error
status - Returns the log delivery configuration status. Values are one of enabling |
disabling | modifying | active | errorLogDeliveryConfigurationStatuspublic LogDeliveryConfiguration withStatus(LogDeliveryConfigurationStatus status)
Returns the log delivery configuration status. Values are one of enabling | disabling |
modifying | active | error
status - Returns the log delivery configuration status. Values are one of enabling |
disabling | modifying | active | errorLogDeliveryConfigurationStatuspublic void setMessage(String message)
Returns an error message for the log delivery configuration.
message - Returns an error message for the log delivery configuration.public String getMessage()
Returns an error message for the log delivery configuration.
public LogDeliveryConfiguration withMessage(String message)
Returns an error message for the log delivery configuration.
message - Returns an error message for the log delivery configuration.public String toString()
toString in class ObjectObject.toString()public LogDeliveryConfiguration clone()