@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LogDeliveryConfigurationRequest extends Object implements Serializable, Cloneable
Specifies the destination, format and type of the logs.
| Constructor and Description |
|---|
LogDeliveryConfigurationRequest() |
| Modifier and Type | Method and Description |
|---|---|
LogDeliveryConfigurationRequest |
clone() |
boolean |
equals(Object obj) |
DestinationDetails |
getDestinationDetails()
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
String |
getDestinationType()
Specify either
cloudwatch-logs or kinesis-firehose as the destination type. |
Boolean |
getEnabled()
Specify if log delivery is enabled.
|
String |
getLogFormat()
Specifies either JSON or TEXT
|
String |
getLogType()
Refers to slow-log.
|
int |
hashCode() |
Boolean |
isEnabled()
Specify if log delivery is enabled.
|
void |
setDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
void |
setDestinationType(String destinationType)
Specify either
cloudwatch-logs or kinesis-firehose as the destination type. |
void |
setEnabled(Boolean enabled)
Specify if log delivery is enabled.
|
void |
setLogFormat(String logFormat)
Specifies either JSON or TEXT
|
void |
setLogType(String logType)
Refers to slow-log.
|
String |
toString()
Returns a string representation of this object.
|
LogDeliveryConfigurationRequest |
withDestinationDetails(DestinationDetails destinationDetails)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
|
LogDeliveryConfigurationRequest |
withDestinationType(DestinationType destinationType)
Specify either
cloudwatch-logs or kinesis-firehose as the destination type. |
LogDeliveryConfigurationRequest |
withDestinationType(String destinationType)
Specify either
cloudwatch-logs or kinesis-firehose as the destination type. |
LogDeliveryConfigurationRequest |
withEnabled(Boolean enabled)
Specify if log delivery is enabled.
|
LogDeliveryConfigurationRequest |
withLogFormat(LogFormat logFormat)
Specifies either JSON or TEXT
|
LogDeliveryConfigurationRequest |
withLogFormat(String logFormat)
Specifies either JSON or TEXT
|
LogDeliveryConfigurationRequest |
withLogType(LogType logType)
Refers to slow-log.
|
LogDeliveryConfigurationRequest |
withLogType(String logType)
Refers to slow-log.
|
public LogDeliveryConfigurationRequest withLogType(String logType)
Refers to slow-log.
public LogDeliveryConfigurationRequest withLogType(LogType logType)
Refers to slow-log.
public void setDestinationType(String destinationType)
Specify either cloudwatch-logs or kinesis-firehose as the destination type.
destinationType - Specify either cloudwatch-logs or kinesis-firehose as the destination type.DestinationTypepublic String getDestinationType()
Specify either cloudwatch-logs or kinesis-firehose as the destination type.
cloudwatch-logs or kinesis-firehose as the destination type.DestinationTypepublic LogDeliveryConfigurationRequest withDestinationType(String destinationType)
Specify either cloudwatch-logs or kinesis-firehose as the destination type.
destinationType - Specify either cloudwatch-logs or kinesis-firehose as the destination type.DestinationTypepublic LogDeliveryConfigurationRequest withDestinationType(DestinationType destinationType)
Specify either cloudwatch-logs or kinesis-firehose as the destination type.
destinationType - Specify either cloudwatch-logs or kinesis-firehose as the destination type.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 LogDeliveryConfigurationRequest 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)
Specifies either JSON or TEXT
logFormat - Specifies either JSON or TEXTLogFormatpublic String getLogFormat()
Specifies either JSON or TEXT
LogFormatpublic LogDeliveryConfigurationRequest withLogFormat(String logFormat)
Specifies either JSON or TEXT
logFormat - Specifies either JSON or TEXTLogFormatpublic LogDeliveryConfigurationRequest withLogFormat(LogFormat logFormat)
Specifies either JSON or TEXT
logFormat - Specifies either JSON or TEXTLogFormatpublic void setEnabled(Boolean enabled)
Specify if log delivery is enabled. Default true.
enabled - Specify if log delivery is enabled. Default true.public Boolean getEnabled()
Specify if log delivery is enabled. Default true.
true.public LogDeliveryConfigurationRequest withEnabled(Boolean enabled)
Specify if log delivery is enabled. Default true.
enabled - Specify if log delivery is enabled. Default true.public Boolean isEnabled()
Specify if log delivery is enabled. Default true.
true.public String toString()
toString in class ObjectObject.toString()public LogDeliveryConfigurationRequest clone()