public static final class CfnLoadBalancer.AccessLoggingPolicyProperty.Builder
extends java.lang.Object
CfnLoadBalancer.AccessLoggingPolicyProperty
Constructor and Description |
---|
Builder() |
public CfnLoadBalancer.AccessLoggingPolicyProperty.Builder enabled(java.lang.Boolean enabled)
CfnLoadBalancer.AccessLoggingPolicyProperty.getEnabled()
enabled
- Specifies whether access logs are enabled for the load balancer. This parameter is required.this
public CfnLoadBalancer.AccessLoggingPolicyProperty.Builder enabled(IResolvable enabled)
CfnLoadBalancer.AccessLoggingPolicyProperty.getEnabled()
enabled
- Specifies whether access logs are enabled for the load balancer. This parameter is required.this
public CfnLoadBalancer.AccessLoggingPolicyProperty.Builder s3BucketName(java.lang.String s3BucketName)
CfnLoadBalancer.AccessLoggingPolicyProperty.getS3BucketName()
s3BucketName
- The name of the Amazon S3 bucket where the access logs are stored. This parameter is required.this
public CfnLoadBalancer.AccessLoggingPolicyProperty.Builder emitInterval(java.lang.Number emitInterval)
CfnLoadBalancer.AccessLoggingPolicyProperty.getEmitInterval()
emitInterval
- The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutesthis
public CfnLoadBalancer.AccessLoggingPolicyProperty.Builder s3BucketPrefix(java.lang.String s3BucketPrefix)
CfnLoadBalancer.AccessLoggingPolicyProperty.getS3BucketPrefix()
s3BucketPrefix
- The logical hierarchy you created for your Amazon S3 bucket, for example `my-bucket-prefix/prod` .
If the prefix is not provided, the log is placed at the root level of the bucket.this
public CfnLoadBalancer.AccessLoggingPolicyProperty build()
CfnLoadBalancer.AccessLoggingPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided