Interface LogGroup.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LogGroup.Builder,LogGroup>, SdkBuilder<LogGroup.Builder,LogGroup>, SdkPojo
Enclosing class:
LogGroup

public static interface LogGroup.Builder extends SdkPojo, CopyableBuilder<LogGroup.Builder,LogGroup>
  • Method Details

    • logGroupName

      LogGroup.Builder logGroupName(String logGroupName)

      The name of the log group.

      Parameters:
      logGroupName - The name of the log group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      LogGroup.Builder creationTime(Long creationTime)

      The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

      Parameters:
      creationTime - The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retentionInDays

      LogGroup.Builder retentionInDays(Integer retentionInDays)
      Sets the value of the RetentionInDays property for this object.
      Parameters:
      retentionInDays - The new value for the RetentionInDays property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilterCount

      LogGroup.Builder metricFilterCount(Integer metricFilterCount)

      The number of metric filters.

      Parameters:
      metricFilterCount - The number of metric filters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :* after the log group name.

      Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a trailing :*.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :* after the log group name.

      Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a trailing :*.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storedBytes

      LogGroup.Builder storedBytes(Long storedBytes)

      The number of bytes stored.

      Parameters:
      storedBytes - The number of bytes stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      LogGroup.Builder kmsKeyId(String kmsKeyId)

      The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.

      Parameters:
      kmsKeyId - The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataProtectionStatus

      LogGroup.Builder dataProtectionStatus(String dataProtectionStatus)

      Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.

      Parameters:
      dataProtectionStatus - Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataProtectionStatus

      LogGroup.Builder dataProtectionStatus(DataProtectionStatus dataProtectionStatus)

      Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.

      Parameters:
      dataProtectionStatus - Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • inheritedPropertiesWithStrings

      LogGroup.Builder inheritedPropertiesWithStrings(Collection<String> inheritedProperties)

      Displays all the properties that this log group has inherited from account-level settings.

      Parameters:
      inheritedProperties - Displays all the properties that this log group has inherited from account-level settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inheritedPropertiesWithStrings

      LogGroup.Builder inheritedPropertiesWithStrings(String... inheritedProperties)

      Displays all the properties that this log group has inherited from account-level settings.

      Parameters:
      inheritedProperties - Displays all the properties that this log group has inherited from account-level settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inheritedProperties

      LogGroup.Builder inheritedProperties(Collection<InheritedProperty> inheritedProperties)

      Displays all the properties that this log group has inherited from account-level settings.

      Parameters:
      inheritedProperties - Displays all the properties that this log group has inherited from account-level settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inheritedProperties

      LogGroup.Builder inheritedProperties(InheritedProperty... inheritedProperties)

      Displays all the properties that this log group has inherited from account-level settings.

      Parameters:
      inheritedProperties - Displays all the properties that this log group has inherited from account-level settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupClass

      LogGroup.Builder logGroupClass(String logGroupClass)

      This specifies the log group class for this log group. There are two classes:

      • The Standard log class supports all CloudWatch Logs features.

      • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

      For details about the features supported by each class, see Log classes

      Parameters:
      logGroupClass - This specifies the log group class for this log group. There are two classes:

      • The Standard log class supports all CloudWatch Logs features.

      • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

      For details about the features supported by each class, see Log classes

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupClass

      LogGroup.Builder logGroupClass(LogGroupClass logGroupClass)

      This specifies the log group class for this log group. There are two classes:

      • The Standard log class supports all CloudWatch Logs features.

      • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

      For details about the features supported by each class, see Log classes

      Parameters:
      logGroupClass - This specifies the log group class for this log group. There are two classes:

      • The Standard log class supports all CloudWatch Logs features.

      • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

      For details about the features supported by each class, see Log classes

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupArn

      LogGroup.Builder logGroupArn(String logGroupArn)

      The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing :* after the log group name.

      Use this version to refer to the ARN in the following situations:

      Parameters:
      logGroupArn - The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing :* after the log group name.

      Use this version to refer to the ARN in the following situations:

      Returns:
      Returns a reference to this object so that method calls can be chained together.