public static class SNSAppender.SNSAppenderBuilder extends AbstractAppenderBuilder<SNSAppender.SNSAppenderBuilder> implements SNSAppenderConfig, org.apache.logging.log4j.core.util.Builder<SNSAppender>
| Constructor and Description |
|---|
SNSAppenderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SNSAppender |
build() |
long |
getBatchDelay()
Returns the
batchDelay configuration property. |
String |
getName() |
String |
getSubject()
Returns the
subject configuration property. |
String |
getTopicArn()
Returns the
topicArn configuration property, null
if the appender was configured via name. |
String |
getTopicName()
Returns the
topicName configuration property, null
if the appender was configured via ARN. |
boolean |
isAutoCreate()
Returns the
autoCreate configuration property. |
SNSAppender.SNSAppenderBuilder |
setAutoCreate(boolean value)
Sets the
autoCreate configuration property. |
SNSAppender.SNSAppenderBuilder |
setName(String value) |
SNSAppender.SNSAppenderBuilder |
setSubject(String value)
Sets the
subject configuration property. |
SNSAppender.SNSAppenderBuilder |
setTopicArn(String value)
Sets the
topicArn configuration property. |
SNSAppender.SNSAppenderBuilder |
setTopicName(String value)
Sets the
topicName configuration property. |
getAssumedRole, getClientEndpoint, getClientFactory, getClientRegion, getConfiguration, getDiscardAction, getDiscardThreshold, getFilter, getInitializationTimeout, getLayout, getTruncateOversizeMessages, isEnableBatchLogging, isSynchronous, isUseShutdownHook, setAssumedRole, setBatchDelay, setClientEndpoint, setClientFactory, setClientRegion, setConfiguration, setDiscardAction, setDiscardThreshold, setEnableBatchLogging, setFilter, setInitializationTimeout, setLayout, setSynchronous, setTruncateOversizeMessages, setUseShutdownHookclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAssumedRole, getClientEndpoint, getClientFactory, getClientRegion, getConfiguration, getDiscardAction, getDiscardThreshold, getFilter, getInitializationTimeout, getLayout, getTruncateOversizeMessages, isEnableBatchLogging, isSynchronous, isUseShutdownHookpublic SNSAppender.SNSAppenderBuilder setName(String value)
public String getName()
getName in interface AbstractAppenderConfigpublic SNSAppender.SNSAppenderBuilder setTopicName(String value)
topicName configuration property.public String getTopicName()
topicName configuration property, null
if the appender was configured via ARN.getTopicName in interface SNSAppenderConfigpublic SNSAppender.SNSAppenderBuilder setTopicArn(String value)
topicArn configuration property.public String getTopicArn()
topicArn configuration property, null
if the appender was configured via name.getTopicArn in interface SNSAppenderConfigpublic SNSAppender.SNSAppenderBuilder setAutoCreate(boolean value)
autoCreate configuration property.public boolean isAutoCreate()
autoCreate configuration property.isAutoCreate in interface SNSAppenderConfigpublic SNSAppender.SNSAppenderBuilder setSubject(String value)
subject configuration property.public String getSubject()
subject configuration property.getSubject in interface SNSAppenderConfigpublic long getBatchDelay()
AbstractAppenderBuilderbatchDelay configuration property.getBatchDelay in interface AbstractAppenderConfiggetBatchDelay in class AbstractAppenderBuilder<SNSAppender.SNSAppenderBuilder>public SNSAppender build()
build in interface org.apache.logging.log4j.core.util.Builder<SNSAppender>Copyright © 2022. All rights reserved.