@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
.DestinationType
public String getDestinationType()
Returns the destination type, either cloudwatch-logs
or kinesis-firehose
.
cloudwatch-logs
or kinesis-firehose
.DestinationType
public 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
.DestinationType
public 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
.DestinationType
public 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.LogFormat
public String getLogFormat()
Returns the log format, either JSON or TEXT.
LogFormat
public LogDeliveryConfiguration withLogFormat(String logFormat)
Returns the log format, either JSON or TEXT.
logFormat
- Returns the log format, either JSON or TEXT.LogFormat
public LogDeliveryConfiguration withLogFormat(LogFormat logFormat)
Returns the log format, either JSON or TEXT.
logFormat
- Returns the log format, either JSON or TEXT.LogFormat
public 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
| error
LogDeliveryConfigurationStatus
public String getStatus()
Returns the log delivery configuration status. Values are one of enabling
| disabling
|
modifying
| active
| error
enabling
|
disabling
| modifying
| active
| error
LogDeliveryConfigurationStatus
public 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
| error
LogDeliveryConfigurationStatus
public 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
| error
LogDeliveryConfigurationStatus
public 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 Object
Object.toString()
public LogDeliveryConfiguration clone()