Class RetentionPolicyParameters


  • public final class RetentionPolicyParameters
    extends Object
    Parameters that define the retention policy for flow log.
    • Constructor Detail

      • RetentionPolicyParameters

        public RetentionPolicyParameters()
    • Method Detail

      • days

        public Integer days()
        Get the days property: Number of days to retain flow log records.
        Returns:
        the days value.
      • withDays

        public RetentionPolicyParameters withDays​(Integer days)
        Set the days property: Number of days to retain flow log records.
        Parameters:
        days - the days value to set.
        Returns:
        the RetentionPolicyParameters object itself.
      • enabled

        public Boolean enabled()
        Get the enabled property: Flag to enable/disable retention.
        Returns:
        the enabled value.
      • withEnabled

        public RetentionPolicyParameters withEnabled​(Boolean enabled)
        Set the enabled property: Flag to enable/disable retention.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the RetentionPolicyParameters object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.