Interface LogGroup.Builder

    • Method Detail

      • 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

        LogGroup.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the log group.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the log group.
        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, DataProtectionStatus
      • 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, LogGroupClass
      • 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:
        LogGroupClass, LogGroupClass