Class CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancing.CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty>
- Enclosing interface:
CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty
@Stability(Stable)
public static final class CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty>
A builder for
CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.emitInterval(Number emitInterval) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEmitInterval()Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEnabled()s3BucketName(String s3BucketName) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getS3BucketName()s3BucketName(IBucketRef s3BucketName) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getS3BucketName()s3BucketPrefix(String s3BucketPrefix)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emitInterval
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder emitInterval(Number emitInterval) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEmitInterval()- Parameters:
emitInterval- The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes. Default: 60 minutes- Returns:
this
-
enabled
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder enabled(Boolean enabled) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEnabled()- Parameters:
enabled- Specifies whether access logs are enabled for the load balancer.- Returns:
this
-
enabled
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getEnabled()- Parameters:
enabled- Specifies whether access logs are enabled for the load balancer.- Returns:
this
-
s3BucketName
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder s3BucketName(String s3BucketName) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getS3BucketName()- Parameters:
s3BucketName- The name of the Amazon S3 bucket where the access logs are stored.- Returns:
this
-
s3BucketName
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder s3BucketName(IBucketRef s3BucketName) Sets the value ofCfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.getS3BucketName()- Parameters:
s3BucketName- The name of the Amazon S3 bucket where the access logs are stored.- Returns:
this
-
s3BucketPrefix
@Stability(Stable) public CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty.Builder s3BucketPrefix(String s3BucketPrefix) - Parameters:
s3BucketPrefix- The logical hierarchy you created for your Amazon S3 bucket, for examplemy-bucket-prefix/prod. If the prefix is not provided, the log is placed at the root level of the bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty>- Returns:
- a new instance of
CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-