Class EnsureLogGroupOptions.Builder
java.lang.Object
codes.grow.packages.cloudwatchlogs.EnsureLogGroupOptions.Builder
- Enclosing class:
EnsureLogGroupOptions
Builder of
EnsureLogGroupOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets kmsKeyId: KMS key for a new group; an existing group with a different key raisesConflictException.retentionDays(Integer value) Sets retentionDays: retention in days (one ofRETENTION_DAYS); 0 = never expire; null = leave as is.Sets tags: tags to add (existing tags are kept; values of the same keys are overwritten).
-
Method Details
-
retentionDays
Sets retentionDays: retention in days (one ofRETENTION_DAYS); 0 = never expire; null = leave as is.- Parameters:
value- the value- Returns:
- this builder
-
kmsKeyId
Sets kmsKeyId: KMS key for a new group; an existing group with a different key raisesConflictException.- Parameters:
value- the value- Returns:
- this builder
-
tags
Sets tags: tags to add (existing tags are kept; values of the same keys are overwritten).- Parameters:
value- the value- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-