@Generated(value="software.amazon.awssdk:codegen") public final class LoggingEnabled extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LoggingEnabled.Builder,LoggingEnabled>
Container for logging information. Presence of this element indicates that logging is enabled. Parameters TargetBucket and TargetPrefix are required in this case.
Modifier and Type | Class and Description |
---|---|
static interface |
LoggingEnabled.Builder |
Modifier and Type | Method and Description |
---|---|
static LoggingEnabled.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LoggingEnabled.Builder> |
serializableBuilderClass() |
String |
targetBucket()
Specifies the bucket where you want Amazon S3 to store server access logs.
|
List<TargetGrant> |
targetGrants()
Returns the value of the TargetGrants property for this object.
|
String |
targetPrefix()
This element lets you specify a prefix for the keys that the log files will be stored under.
|
LoggingEnabled.Builder |
toBuilder() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String targetBucket()
Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.
public List<TargetGrant> targetGrants()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String targetPrefix()
This element lets you specify a prefix for the keys that the log files will be stored under.
public LoggingEnabled.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<LoggingEnabled.Builder,LoggingEnabled>
public static LoggingEnabled.Builder builder()
public static Class<? extends LoggingEnabled.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.