public static interface LoggingEnabled.Builder extends SdkPojo, CopyableBuilder<LoggingEnabled.Builder,LoggingEnabled>
Modifier and Type | Method and Description |
---|---|
LoggingEnabled.Builder |
targetBucket(String targetBucket)
Specifies the bucket where you want Amazon S3 to store server access logs.
|
LoggingEnabled.Builder |
targetGrants(Collection<TargetGrant> targetGrants)
|
LoggingEnabled.Builder |
targetGrants(Consumer<TargetGrant.Builder>... targetGrants)
This is a convenience that creates an instance of the
List avoiding the need to
create one manually via List . |
LoggingEnabled.Builder |
targetGrants(TargetGrant... targetGrants)
|
LoggingEnabled.Builder |
targetPrefix(String targetPrefix)
A prefix for all log object keys.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
LoggingEnabled.Builder targetBucket(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.
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.LoggingEnabled.Builder targetGrants(Collection<TargetGrant> targetGrants)
targetGrants
- LoggingEnabled.Builder targetGrants(TargetGrant... targetGrants)
targetGrants
- LoggingEnabled.Builder targetGrants(Consumer<TargetGrant.Builder>... targetGrants)
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targetGrants(List)
.targetGrants
- a consumer that will call methods on List.Builder
#targetGrants(List)
LoggingEnabled.Builder targetPrefix(String targetPrefix)
A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
targetPrefix
- A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single
bucket, you can use a prefix to distinguish which log files came from which bucket.Copyright © 2019. All rights reserved.